curl --request POST \
--url https://api.modellix.ai/api/v1/vidu/viduq3-ad \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.",
"assets": [
{
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
script_name: 'City Sunrise',
script_content: 'Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.',
assets: [
{
id: 'asset_001',
type: 'character',
name: 'Protagonist',
image_uri: 'https://example.com/protagonist.png'
}
]
})
};
fetch('https://api.modellix.ai/api/v1/vidu/viduq3-ad', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/vidu/viduq3-ad"
payload = {
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY
@Protagonist stands by the window and smiles.
@Protagonist: Today is a good day.",
"assets": [
{
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/vidu/viduq3-ad"
payload := strings.NewReader("{\n \"script_name\": \"City Sunrise\",\n \"script_content\": \"Scene 1 INT. LIVING ROOM - DAY\\n@Protagonist stands by the window and smiles.\\n@Protagonist: Today is a good day.\",\n \"assets\": [\n {\n \"id\": \"asset_001\",\n \"type\": \"character\",\n \"name\": \"Protagonist\",\n \"image_uri\": \"https://example.com/protagonist.png\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.modellix.ai/api/v1/vidu/viduq3-ad")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"script_name\": \"City Sunrise\",\n \"script_content\": \"Scene 1 INT. LIVING ROOM - DAY\\n@Protagonist stands by the window and smiles.\\n@Protagonist: Today is a good day.\",\n \"assets\": [\n {\n \"id\": \"asset_001\",\n \"type\": \"character\",\n \"name\": \"Protagonist\",\n \"image_uri\": \"https://example.com/protagonist.png\"\n }\n ]\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/vidu/viduq3-ad';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
script_name: 'City Sunrise',
script_content: 'Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.',
assets: [
{
id: 'asset_001',
type: 'character',
name: 'Protagonist',
image_uri: 'https://example.com/protagonist.png'
}
]
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/vidu/viduq3-ad",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'script_name' => 'City Sunrise',
'script_content' => 'Scene 1 INT. LIVING ROOM - DAY
@Protagonist stands by the window and smiles.
@Protagonist: Today is a good day.',
'assets' => [
[
'id' => 'asset_001',
'type' => 'character',
'name' => 'Protagonist',
'image_uri' => 'https://example.com/protagonist.png'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/vidu/viduq3-ad")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"script_name\": \"City Sunrise\",\n \"script_content\": \"Scene 1 INT. LIVING ROOM - DAY\\n@Protagonist stands by the window and smiles.\\n@Protagonist: Today is a good day.\",\n \"assets\": [\n {\n \"id\": \"asset_001\",\n \"type\": \"character\",\n \"name\": \"Protagonist\",\n \"image_uri\": \"https://example.com/protagonist.png\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY
@Protagonist stands by the window and smiles.
@Protagonist: Today is a good day.",
"assets": [
[
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
]
]
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/vidu/viduq3-ad")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/vidu/viduq3-ad' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.",
"assets": [
{
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
}
]
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-vidu-ad-001",
"model_id": "vidu/viduq3-ad",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-vidu-ad-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'first_frame_image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Vidu Q3 AD
[Core Function] Vidu Q3 AD is a keyframe-driven short-play (short drama) Image-to-Video model that turns a film-style script plus character, scene, and prop reference images into a complete multi-shot short video, automatically planning shots and compositing them in one pass. [Strengths] It excels at multi-shot narrative coherence and keeping referenced characters, scenes, and props consistent across shots, driven directly from keyframe reference images without manual shot-by-shot prompting. [Best For] Highly recommended for: short ad films and brand stories, scripted short dramas, multi-scene narrative clips generated from a script, and character-driven reels built from a small cast of reference assets. [Limitations] Do NOT use this model to simply animate a single image (use a standard image-to-video model such as Vidu Q3 Pro/Turbo I2V instead); it requires script_content in traditional screenplay format (scene + characters + dialogue) plus 1-14 reference assets each with an image_uri, outputs 1080p in 16:9 or 9:16, and does not expose per-shot duration or style controls (duration is auto-planned). Asset type must be one of character/scene/tool. [Routing] Choose Vidu Q3 AD when the user provides a script and reference images and wants an automatically directed multi-shot short drama from keyframes. For animating a single image into one continuous clip, route to viduq3-pro-i2v / viduq3-turbo-i2v; for the standard short-play flow with placement/quality/duration/style controls, route to Vidu Q3 Drama.
curl --request POST \
--url https://api.modellix.ai/api/v1/vidu/viduq3-ad \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.",
"assets": [
{
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
script_name: 'City Sunrise',
script_content: 'Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.',
assets: [
{
id: 'asset_001',
type: 'character',
name: 'Protagonist',
image_uri: 'https://example.com/protagonist.png'
}
]
})
};
fetch('https://api.modellix.ai/api/v1/vidu/viduq3-ad', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.modellix.ai/api/v1/vidu/viduq3-ad"
payload = {
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY
@Protagonist stands by the window and smiles.
@Protagonist: Today is a good day.",
"assets": [
{
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.modellix.ai/api/v1/vidu/viduq3-ad"
payload := strings.NewReader("{\n \"script_name\": \"City Sunrise\",\n \"script_content\": \"Scene 1 INT. LIVING ROOM - DAY\\n@Protagonist stands by the window and smiles.\\n@Protagonist: Today is a good day.\",\n \"assets\": [\n {\n \"id\": \"asset_001\",\n \"type\": \"character\",\n \"name\": \"Protagonist\",\n \"image_uri\": \"https://example.com/protagonist.png\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.modellix.ai/api/v1/vidu/viduq3-ad")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"script_name\": \"City Sunrise\",\n \"script_content\": \"Scene 1 INT. LIVING ROOM - DAY\\n@Protagonist stands by the window and smiles.\\n@Protagonist: Today is a good day.\",\n \"assets\": [\n {\n \"id\": \"asset_001\",\n \"type\": \"character\",\n \"name\": \"Protagonist\",\n \"image_uri\": \"https://example.com/protagonist.png\"\n }\n ]\n}")
.asString();const url = 'https://api.modellix.ai/api/v1/vidu/viduq3-ad';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
script_name: 'City Sunrise',
script_content: 'Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.',
assets: [
{
id: 'asset_001',
type: 'character',
name: 'Protagonist',
image_uri: 'https://example.com/protagonist.png'
}
]
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.modellix.ai/api/v1/vidu/viduq3-ad",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'script_name' => 'City Sunrise',
'script_content' => 'Scene 1 INT. LIVING ROOM - DAY
@Protagonist stands by the window and smiles.
@Protagonist: Today is a good day.',
'assets' => [
[
'id' => 'asset_001',
'type' => 'character',
'name' => 'Protagonist',
'image_uri' => 'https://example.com/protagonist.png'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.modellix.ai/api/v1/vidu/viduq3-ad")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"script_name\": \"City Sunrise\",\n \"script_content\": \"Scene 1 INT. LIVING ROOM - DAY\\n@Protagonist stands by the window and smiles.\\n@Protagonist: Today is a good day.\",\n \"assets\": [\n {\n \"id\": \"asset_001\",\n \"type\": \"character\",\n \"name\": \"Protagonist\",\n \"image_uri\": \"https://example.com/protagonist.png\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyimport Foundation
let parameters = [
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY
@Protagonist stands by the window and smiles.
@Protagonist: Today is a good day.",
"assets": [
[
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
]
]
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api.modellix.ai/api/v1/vidu/viduq3-ad")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.modellix.ai/api/v1/vidu/viduq3-ad' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"script_name": "City Sunrise",
"script_content": "Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day.",
"assets": [
{
"id": "asset_001",
"type": "character",
"name": "Protagonist",
"image_uri": "https://example.com/protagonist.png"
}
]
}'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-vidu-ad-001",
"model_id": "vidu/viduq3-ad",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-vidu-ad-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'first_frame_image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Vidu Q3 AD keyframe short-play request. Field names are passed through to Vidu as-is. Note the asset image field is image_uri, not image_url. Unlike Q3 Drama, this model does NOT support placement, quality, duration, or style.
Episode name (max 20 characters)
1 - 20"City Sunrise"
Script content in traditional screenplay format (scene heading + characters + dialogue). English up to 5000 characters.
1 - 5000"Scene 1 INT. LIVING ROOM - DAY\n@Protagonist stands by the window and smiles.\n@Protagonist: Today is a good day."
Reference assets (1-14; 3-10 recommended). One asset maps to exactly one image.
1 - 14 elementsShow child attributes
Show child attributes
Output resolution (1080p only)
1080p "1080p"
Video aspect ratio
16:9, 9:16 "9:16"