Video Series
Seedance 2.0 Mini API
- One model for text-to-video, first/last-frame video and video from mixed references: send only
prompt, addfirst_image_url(and optionallylast_image_url), or add reference images, videos and audio. - First and last frames cannot be combined with reference media; such a request is rejected with HTTP 400 before any charge.
- Reference audio needs at least one reference image or video;
reference_audiosalone returns HTTP 400 before billing. - Refer to references in the prompt as @Image1, @Video1, @Audio1 (numbered from 1 in array order; images, videos and audio are numbered separately).
- Videos of 4 to 15 seconds at 480p or 720p (no 1080p), with a synchronized soundtrack unless
generate_audioisfalse. - Asynchronous:
POST /v1/videosreturns a task id; pollGET /v1/videos/{id}orGET /v1/tasks/{id}until the task completes, then download/v1/videos/{id}/content. - Result links are APIKO-signed and kept for 24 hours; download anything you need to keep.
- Billing
- Charged per second at the price of the chosen
resolution; prices are on the model page. - With reference videos, billed seconds = output duration + reference video length, where the reference length counts as at least the output duration; this case has its own lower per-second rate.
- Reference images and reference audio are not billed separately.
- With reference videos, the hold taken when the task is accepted assumes the longest total reference length this model allows (15 seconds, and at least the output duration); the difference is refunded when the task settles.
- An estimate is held when the task is accepted and settled to the actual usage when it finishes; a task that fails is refunded in full.
- Charged per second at the price of the chosen
POST
Authorizations
All requests use Bearer authentication:
Authorization: Bearer <API_KEY>.Create a key in Console → API Keys.
Routes
string
POST /v1/videos— create a video taskGET /v1/videos/{id}— query the task and readvideo_urlGET /v1/tasks/{id}— query the same task in the shared task format
Body
application/json
model
stringdefault:seedance-2.0-minirequired
Use this exact public model id.
Available options:
seedance-2.0-miniExample:
"seedance-2.0-mini"prompt
stringrequired
Video description; refer to references as @Image1, @Video1, @Audio1 in list order.
- Chinese and English are supported. Up to 20,000 characters; a longer prompt is rejected with HTTP 400 before any charge.
- Describe the shot, camera movement and sound; refer to references as @Image1, @Video1, @Audio1.
Minimum length:
1Maximum length:
20000Example:
"A paper boat drifting across a calm lake at sunrise"aspect_ratio
enum<string>default:16:9
Width-to-height ratio of the output video.
16:9 landscape, 9:16 portrait, 1:1 square, plus 4:3, 3:4 and 21:9; 16:9 when omitted.Available options:
16:9, 9:16, 1:1, 4:3, 3:4, 21:9Example:
"16:9"resolution
enum<string>default:720p
Output resolution of the video. Values are matched case-insensitively.
480pis the lowest price and720pthe default and the sharpest; 1080p and other values are rejected before any charge.- Each resolution has its own per-second price; see the model page.
Available options:
480p, 720pExample:
"720p"duration
integerdefault:5
Output length in seconds; OpenAI's seconds field is accepted instead.
- Length of the output video in seconds: any integer from 4 to 15; 5 when omitted.
seconds(a string such as"10", as in the OpenAI video API) is accepted as an alias; send one of the two.
Range:
4 ≤ x ≤ 15Example:
5generate_audio
booleandefault:true
Generate a synchronized soundtrack.
Defaults to
true: a soundtrack (ambience, effects or dialogue) synchronized with the picture. The price is the same either way.Example:
trueseed
integer
Integer from 0 to 2147483647. Fixing it keeps results closer when only small prompt details change.
Range:
0 ≤ x ≤ 2147483647Example:
42first_image_url
string<uri>
First frame; cannot be combined with reference media.
- Used as the first frame of the video; cannot be combined with reference media.
- Public HTTPS URLs only; files and base64 are not accepted.
Example:
"https://example.com/first-frame.png"last_image_url
string<uri>
Last frame; requires first_image_url.
- Used as the last frame of the video; only together with
first_image_url. - Public HTTPS URLs only; files and base64 are not accepted.
Example:
"https://example.com/last-frame.png"reference_image_urls
string<uri>[]
Reference images.
- Up to 9 images. The order is @Image1, @Image2, …
- Public HTTPS URLs only; files and base64 are not accepted.
Items:
1–9Example:
["https://example.com/reference.png"]reference_videos
string<uri>[]
Reference videos, 2-15 s each and 15 s in total; their length is billed at the reference-video rate together with the output. Submission holds the 15 s maximum and refunds the difference on completion.
- Up to 3 clips. The order is @Video1, @Video2, …
- Billed as input: their length (at least the output duration) is added to the billed seconds at the reference-video rate.
- Public HTTPS URLs only; files and base64 are not accepted.
Items:
1–3Example:
["https://example.com/reference.mp4"]reference_audios
string<uri>[]
Reference audio clips; need at least one reference image or video.
- Up to 3 clips; not billed separately. The order is @Audio1, @Audio2, …
- Needs at least one reference image or video.
- Public HTTPS URLs only; files and base64 are not accepted.
Items:
1–3Example:
["https://example.com/reference.mp3"]callback_url
string<uri>
Optional public HTTPS URL notified when the task finishes.
- When the task finishes, APIKO POSTs the same JSON as
GET /v1/tasks/{id}with headerX-Apiko-Task-Id, retrying up to 3 times. - Callbacks are not signed: re-fetch the task to confirm the result.
Example:
"https://your-domain.com/webhooks/apiko-task"Response
200 - application/json
Charged when the request is accepted; a task that ends in failed is refunded in full.
id
string
Video task id. Query it with
GET /v1/videos/{id} or GET /v1/tasks/{id}.Example:
"task_abc123"status
enum<string>
Task status. Poll every 5–10 seconds until it is
completed or failed.Available options:
queued, in_progress, completed, failedprogress
integer
Progress from
0 to 100.video_url
string<uri>
Present on
GET /v1/videos/{id} when the task is completed: an APIKO-signed link kept for 24 hours. GET /v1/tasks/{id} returns the same link as data[0].url.Errors
application/json
Errors use the shape { "error": { "message", "type", "param", "code" } }; most messages end with a request id to quote when you contact support.
400
error
Invalid request. Fix the request instead of retrying it; it is not charged.
- A field this page does not list, e.g.
seed is not supported. - A value outside the listed options or range, e.g.
duration must be an integer from …. - A missing or empty
prompt(prompt is required). - A reference URL that is not public HTTPS (
… must be a public HTTPS URL). last_image_urlwithoutfirst_image_url(last_image_url requires first_image_url).
401
error
Missing or invalid API key (
Invalid token).403
error
Insufficient balance (
code: "insufficient_user_quota"). Add credit in Console → Billing.404
error
GET /v1/videos/{id} or GET /v1/tasks/{id} for a task that does not exist or belongs to another account (Task not found).503
error
The model exists but none of its routes can take the request right now:
No available channel for model … (code: "model_not_found"). Retry later with backoff, or pick another model. A missing or misspelled model returns 404 with the same message; check the id instead of retrying.