Video Series
Seedance 2.5 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.
- With
first_image_urlthe video keeps the first frame's aspect ratio, soaspect_ratiomust be left out; sending both is rejected with HTTP 400 before any charge. - Reference audio may be the only reference:
reference_audioswithout reference images or videos is accepted. - 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 30 seconds at 480p, 720p or 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 (30 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.5required
Use this exact public model id.
Available options:
seedance-2.5Example:
"seedance-2.5"prompt
string
Required for standard and draft generation. Omit when using draft_task_id. Refer to media as @Image1, @Video1, or @Audio1 in list order.
- Chinese and English, plus Spanish, Indonesian, Portuguese, Japanese, Malay, Thai, Arabic, Vietnamese and Korean. 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"draft
boolean
Set to true to generate a 480p draft on a draft-capable channel. The resulting task ID can be used for a final render.
draft_task_id
string
Public task ID of a successful draft from the past 7 days. The final render is 1080p and inherits the draft inputs and duration on its original channel.
Minimum length:
1Maximum length:
128aspect_ratio
enum<string>default:16:9
Not accepted with first_image_url: a frame task keeps the first frame's aspect ratio.
16:9landscape,9:16portrait,1:1square, plus4:3,3:4and21:9; 16:9 when omitted.- Leave it out with
first_image_url: the video keeps the first frame's ratio.
Available options:
16:9, 9:16, 1:1, 4:3, 3:4, 21:9Example:
"16:9"resolution
enum<string>
Defaults to 720p for standard generation. Draft generation accepts only 480p, and final rendering accepts only 1080p.
- Standard requests accept
480p,720pand1080p. Drafts use480p. Final renders accept only1080pand use it by default. - 1080p output is 10-bit H.265 (HEVC); transcode it if your player or pipeline only decodes H.264. There is no 4K.
- Each resolution has its own per-second price; see the model page.
Available options:
480p, 720p, 1080pExample:
"480p"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 30; 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 ≤ 30Example:
5generate_audio
booleandefault:true
Generate a synchronized soundtrack.
Defaults to
true: a mono soundtrack (voice, effects or music) 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 or aspect_ratio.
- Used as the first frame of the video, which keeps its aspect ratio; cannot be combined with reference media or
aspect_ratio. - 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 30 images. The order is @Image1, @Image2, …
- Public HTTPS URLs only; files and base64 are not accepted.
Items:
1–30Example:
["https://example.com/reference.png"]reference_videos
string<uri>[]
Reference videos, 2-30 s each and 30 s in total; their length is billed as input, at least as long as the output. Submission holds the 30 s maximum and refunds the difference on completion.
- Up to 10 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–10Example:
["https://example.com/reference.mp4"]reference_audios
string<uri>[]
Reference audio clips, 2-30 s each and 30 s in total; may be sent without images or videos.
- Up to 10 clips; not billed separately. The order is @Audio1, @Audio2, …
- Public HTTPS URLs only; files and base64 are not accepted.
Items:
1–10Example:
["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
promptin a standard or draft generation request (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.