POST
Quote a drama before creating it

Authorizations

Authorization
string
header
required

Provide your API key in the Authorization header using Bearer auth

Body

application/json

Request to create a drama. Provide prompt, script or both.

text_model
string
required

Text model (understand, story, storyboard)

Minimum string length: 1
Example:

"openai/gpt-5.4"

image_model
string
required

Image model (reference images, keyframes, poster)

Minimum string length: 1
Example:

"openai/gpt-image-2"

video_model
string
required

Video model (clips); must support the aspect ratio

Minimum string length: 1
Example:

"bytedance/seedance-1.5-pro"

prompt
string

One-sentence brief (genre, characters, style…)

Maximum string length: 20000
Example:

"重生回到高考前一天的女孩,决定改写全家人的命运"

script
string

Script text: the drama is adapted from it

Maximum string length: 100000
style
string

Visual style, such as "cinematic realism" or "anime"

Maximum string length: 2000
Example:

"都市逆袭,节奏快,暖色调"

aspect_ratio
string

Aspect ratio: 9:16 (default, portrait) or 16:9 (landscape)

Example:

"9:16"

resolution
string

Resolution: 480p / 720p (default) / 1080p

Example:

"720p"

language
string

Language of dialogue: zh / en; detected from the prompt or script when omitted

Example:

"zh"

episodes
integer<int32>

Planned number of episodes (1–100, default 1)

Required range: 1 <= x <= 100
Example:

3

episode_seconds
integer<int32>

Episode length in seconds (30–300, default 60)

Required range: 30 <= x <= 300
Example:

60

image_quality
string

Image quality (when the model supports it)

Example:

"high"

web_research
boolean

Research the web while understanding the brief (when the text model supports it)

auto_confirm
boolean

Continue automatically after each step instead of waiting for confirmation

auto_continue
boolean

Start the next episode automatically when one is completed

budget_usd
number

Budget for episode 1 in USD; the run pauses when it would be exceeded

Required range: x >= 0
Example:

20

end_user
string

End-user identifier

Maximum string length: 128
Example:

"user_42"

metadata
object

Your metadata (up to 16 keys)

Response

OK

A quote before creating a drama (POST /v1/dramas/quote).

object
string

Object type

Example:

"drama.quote"

estimated_cost_usd
number

Amount held when the drama is created, in USD: model cost + workflow fee of the first segment (up to the first confirmation; the whole episode when auto_confirm=true)

Example:

0.12

model_cost_usd
number

Model cost part, in USD

Example:

0.08

fee_usd
number

Workflow fee part, in USD

Example:

0.04

steps
string[]

Steps in the first segment

Steps in the first segment

Example:
episode_cost_usd
number

Estimated total for the whole of episode 1, in USD

Example:

6.8

within_budget
boolean

When budget_usd is set: whether the first segment fits in it (creating returns 402 workflow_budget_exceeded when it does not)

Example:

true