Create video
POST/v1/videos
Create an asynchronous video task. The task object is returned immediately; then poll GET /v1/videos/{video_id} every 3–5 seconds until status is completed or failed.
Only the fields on this page are accepted; any other field returns 400 unsupported field: <name>.
Seedance 2.0 / 2.5 series and Seedance 2.5 LL accept different fields, values and limits; see “By model group” under each parameter. Use only the values listed here; others may be rejected or fail the task.
Models and limits
| Model | Rule group | resolution | seconds (inclusive) | Billing | Frames | task_mode | Reference limit image/video/audio |
|---|---|---|---|---|---|---|---|
seedance2.0 | Seedance 2.0 series | 480p / 720p / 1080p / 4KDefault 480p | 5–15Default 5 | Per second × resolution rate | Yes | extend / editNot at 1080p / 4K | 9 / 3 / 3No video at 1080p / 4K |
seedance2.0-fast | Seedance 2.0 series | 480p / 720pDefault 480p | 4–15Default 4 | Per second × resolution rate | Yes | extend / edit | 9 / 3 / 3 |
seedance2.0-mini | Seedance 2.0 series | 480p / 720pDefault 480p | 4–15Default 4 | Per second × resolution rate | No | extend / edit | 9 / 3 / 3 |
seedance2.0-vip | Seedance 2.0 series | 480p / 720p / 1080p / 4KDefault 480p | 5–15Default 5 | Per second × resolution rate | Yes | extend / edit | 9 / 3 / 3 |
seedance2.5 | Seedance 2.5 series | 480p / 720p / 1080p / 4KDefault 480p | 4–30Default 4 | Per second × resolution rate | Yes | extend / editNot at 1080p / 4K | 10 / 5 / 5No video at 1080p / 4K |
seedance2.5-flash | Seedance 2.5 series | 480p / 720pDefault 480p | 4–30Default 4 | Per second × resolution rate | Yes | extend / edit | 10 / 5 / 5 |
seedance2.5-vip | Seedance 2.5 series | 480p / 720p / 1080p / 4KDefault 480p | 4–30Default 4 | Per second × resolution rate | Yes | extend / edit | 10 / 5 / 5 |
seedance2.5-LL | Seedance 2.5 LL | 720pRequired | 5–30Default 5 | Per task by resolution; duration-independent | No | No | 10 / 5 / 5 |
Headers
AuthorizationstringRequiredBearer <API_KEY>, a model API key created under API keys in the console.Content-TypestringRequiredapplication/json.Idempotency-KeystringOptionalIdempotency key, up to 256 bytes; generate a UUID per new task. After a timeout or network error, retrying with the same key and identical body returns the original task without another charge. Never reuse a key for a different body.
Limits
- While the original submission is unresolved, do not resubmit with a new key, or you may create and pay for a duplicate; retry later with the same key or check task logs.
Request bodyJSON
modelstringRequiredThe video model ID, case-sensitive. Available models are listed below. If your API key restricts models, only the allowed ones can be called.
- Seedance 2.0 series
seedance2.0seedance2.0-fastseedance2.0-miniseedance2.0-vip- Seedance 2.5 series
seedance2.5seedance2.5-flashseedance2.5-vip- Seedance 2.5 LL
seedance2.5-LL
promptstringRequiredDescribe the scene, motion and camera; must not be empty. Refer to media as
@图片1,@视频1,@音频1, numbered from 1 per media type in request order.By model group
- Seedance 2.0 series · Seedance 2.5 series
- Up to 10,000 characters.
- Seedance 2.5 LL
- Up to 45,000 characters.
secondsintegerRequired for extend / editDuration in whole seconds. Each model’s inclusive range and default are in the model table above. The alias
durationis accepted; if both are sent they must be equal.With
task_mode: "extend"it is the added duration; withtask_mode: "edit"it must equal the source duration.By model group
- Seedance 2.0 series · Seedance 2.5 series
- Billed per second: seconds × the rate of the selected resolution.
- Seedance 2.5 LL
- Only a JSON integer such as
5, not the string"5". Billed per task; the price depends only on the resolution.
resolutionstringRequired for Seedance 2.5 LLResolution tier, one listed for the selected model in the model table, such as
480p,720p,1080por4K.For
seedance2.0andseedance2.5,1080pand4Ktake no input video:task_modeis unavailable andreferencesmust not contain video; use720por lower when you need video input.By model group
- Seedance 2.0 series · Seedance 2.5 series
- Defaults to
480p. - Seedance 2.5 LL
- Required; currently only
720p. It selects the price tier and does not control the output resolution. The aliasresolution_nameis accepted; if both are sent they must match.
aspect_ratiostringOptionalAspect ratio as width:height. The alias
ratiois accepted; if both are sent they must match.By model group
- Seedance 2.0 series · Seedance 2.5 series
- Supported:
16:9(default),9:16,1:1,4:3,3:4,21:9. Frame-guided generation also acceptsauto(oradaptive), letting the model pick the canvas from the frames; text-to-video, reference-guided generation, extend and edit treatautoas16:9. For theseedance2.5series (including-flashand-vip), frame-guided generation accepts onlyauto/adaptiveand usesadaptivewhen the field is omitted; task queries reportmetadata.aspect_ratioasadaptive. - Seedance 2.5 LL
- Supported:
auto(or its equivalentadaptive),16:9,9:16,1:1,4:3,3:4,21:9; when omitted the model decides. The aliassizeis also accepted.
referencesobject[]OptionalReference media; the mode is inferred: omit it for text-to-video; one
first_frameplus onelast_frameimage for frame-guided generation, as a pair with no other media; anything else is reference-guided. Do not combine with URL array fields such asimages/videos/audios.By model group
- Seedance 2.0 series
- Images ≤ 9, videos ≤ 3, audio ≤ 3; audio must come with at least one image or video.
seedance2.0takes no video at1080p/4K. - Seedance 2.5 series
- Images ≤ 10, videos ≤ 5, audio ≤ 5.
seedance2.5takes no video at1080p/4K. - Seedance 2.5 LL
- Images ≤ 10, videos ≤ 5, audio ≤ 5. No frames;
rolemust bereferenceor omitted.
Limits
- A publicly reachable
https://URL, orasset://<asset ID>from your asset library (the asset must belong to the owner of the API key). - Not supported:
http://,localhost, private-network addresses, URLs with credentials or a#fragment. The URL must not depend on cookies, auth headers, hotlink protection or short-lived signatures. - Each URL may appear only once per request, including across media types.
- Supported formats: images PNG / JPEG / WebP; video MP4 / MOV; audio MP3 / WAV. The model provider also checks resolution, frame rate, duration and content policy; a rejected file fails the task with the reason in
error.message.
Show child fields (3)
typestringRequiredMedia type.
Supported values
imageImagevideoVideoaudioAudio
rolestringOptionalDefaultreferenceHow the media is used.
Supported values
referenceOrdinary referencefirst_frameFirst frame, image only; Seedance 2.0 / 2.5 series only, exceptseedance2.0-minilast_frameLast frame, image only; Seedance 2.0 / 2.5 series only, exceptseedance2.0-mini
sourcestringRequiredMedia URL: a public HTTPS URL or
asset://<asset ID>; see the limits above.
images / videos / audiosstring[]OptionalShorthand for reference URLs by type, equivalent to
referenceswithrole: "reference"and the same limits; do not combine withreferences. Aliases:image_urls,imageUrls,reference_images,referenceImages,reference_image_urlsfor images, and the same pattern for video and audio. Several aliases of one type must carry identical arrays.first_image / last_imagestringOptionalOnly for: Seedance 2.0 series, Seedance 2.5 series
Shorthand for the first and last frame images, equivalent to
first_frame/last_frameinreferences. Send both; do not combine withreferences.task_modestringOptionalOnly for: Seedance 2.0 series, Seedance 2.5 series
Extend or edit an existing video; omit for ordinary generation. Only models showing extend / edit in the task_mode column support it, and not at the resolutions that column marks as unsupported (
1080p/4Konseedance2.0andseedance2.5). Billed on the requestedseconds; the source video is free.Supported values
extendContinue from the end;secondsis the added durationeditEdit the video;secondsmust equal the source duration
Limits
secondsis required, andreferencesmust hold exactly onetype: "video",role: "reference"source video, with no images, audio, other videos or frames.
billing_modestringOptionalOnly for: Seedance 2.5 LL
Optional; if sent it must be
per_video.
Returns
HTTP 200 with a video task object.
idstringRequiredTask ID beginning with
task_. Use it to query and download.task_idstringOptionalCompatibility copy of
id.objectstringOptionalAlways
video.modelstringOptionalThe requested model ID.
statusstringOptionalTask status. Use
status, notprogress, to decide completion.Supported values
queuedWaiting; keep pollingin_progressGenerating; keep pollingcompletedDone; readmetadata.urlfailedFailed; readerror.message. The charge is refunded by the serverunknownStatus not yet known; keep polling the same task and do not resubmit
progressintegerOptionalProgress 0–100, for display only.
created_atintegerOptionalCreation time in Unix seconds.
completed_atintegerOptionalCompletion time in Unix seconds; present once completed.
secondsstringOptionalTask duration in seconds, as a string.
metadataobjectOptionalTask parameters and result URL.
Show child fields (4)
resolutionstringOptionalResolution tier.
aspect_ratiostringOptionalAspect ratio.
urlstringOptionalVideo URL. Usable only when
statusiscompleted. Before that it may already show this site’s/v1/videos/{id}/contentURL, which returns 400 until the task finishes.Once completed it is either a public storage URL (do not send your API key) or this site’s
/v1/videos/{id}/contentURL (send the API key that created the task). Use the returned URL as-is.billed_secondsstringOptionalBilled seconds; returned for some per-second tasks after settlement.
errorobjectOptionalPresent only when
statusisfailed.Show child fields (2)
codestringOptionalAlways
video_generation_failed.messagestringOptionalFailure reason, such as unreadable media or a content policy rejection.
Errors
Field validation errors return {"code": "...", "message": "...", "data": null}. Authentication, routing and pricing errors return {"error": {"message": "...", "type": "...", "code": "..."}}. None of these create a task or charge you.
| HTTP | code | Cause and action |
|---|---|---|
| 400 | invalid_request | Missing field, invalid value or format, or an unsupported field; see message. |
| 400 | video_pricing_combination_unsupported | The model does not offer this resolution or duration. |
| 400 | asset_reference_not_found | The asset:// asset does not exist or is not yours. |
| 401 | — | The API key is invalid, expired or disabled. |
| 403 | — | The key does not allow this model, or the IP is restricted. |
| 403 | video_pricing_model_disabled | The model is no longer on sale. |
| 403 | insufficient_user_quota | Insufficient balance or key quota; top up or raise the quota. |
| 409 | idempotency_conflict | The Idempotency-Key was used with a different body. |
| 409 | task_submission_recovery_pending | The original submission is unresolved; do not resubmit. |
| 429 | — | Rate or concurrency limit; retry later. |
| 503 | video_pricing_not_configured | The model has no active price and cannot be called now. |
| Timeout / 5xx | — | The task may exist. Retry with the same Idempotency-Key and body, or check task logs first, to avoid a duplicate charge. |
curl -X POST https://ling-light.com/v1/videos \
-H "Authorization: Bearer $LINGLIGHT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance2.0",
"prompt": "An orange cat watching rain on a windowsill, slow push-in",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}'const response = await fetch('https://ling-light.com/v1/videos', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LINGLIGHT_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"model": "seedance2.0",
"prompt": "An orange cat watching rain on a windowsill, slow push-in",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}),
})
console.log(response.status, await response.json())import os
import uuid
import requests
response = requests.post(
"https://ling-light.com/v1/videos",
headers={
"Authorization": f"Bearer {os.environ['LINGLIGHT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"model": "seedance2.0",
"prompt": "An orange cat watching rain on a windowsill, slow push-in",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
},
timeout=60,
)
print(response.status_code, response.json()){
"id": "task_xxxxxxxxxxxxxxxx",
"task_id": "task_xxxxxxxxxxxxxxxx",
"object": "video",
"model": "seedance2.0",
"status": "queued",
"progress": 0,
"created_at": 1795660800,
"seconds": "5",
"metadata": {
"aspect_ratio": "16:9",
"resolution": "720p",
"url": "https://ling-light.com/v1/videos/task_xxxxxxxxxxxxxxxx/content"
}
}curl -X POST https://ling-light.com/v1/videos \
-H "Authorization: Bearer $LINGLIGHT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance2.5",
"prompt": "The person walks from @图片1 to @图片2; the camera stays steady",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "auto",
"references": [
{
"type": "image",
"role": "first_frame",
"source": "https://cdn.example.com/first.png"
},
{
"type": "image",
"role": "last_frame",
"source": "https://cdn.example.com/last.png"
}
]
}'const response = await fetch('https://ling-light.com/v1/videos', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LINGLIGHT_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"model": "seedance2.5",
"prompt": "The person walks from @图片1 to @图片2; the camera stays steady",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "auto",
"references": [
{
"type": "image",
"role": "first_frame",
"source": "https://cdn.example.com/first.png"
},
{
"type": "image",
"role": "last_frame",
"source": "https://cdn.example.com/last.png"
}
]
}),
})
console.log(response.status, await response.json())import os
import uuid
import requests
response = requests.post(
"https://ling-light.com/v1/videos",
headers={
"Authorization": f"Bearer {os.environ['LINGLIGHT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"model": "seedance2.5",
"prompt": "The person walks from @图片1 to @图片2; the camera stays steady",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "auto",
"references": [
{
"type": "image",
"role": "first_frame",
"source": "https://cdn.example.com/first.png",
},
{
"type": "image",
"role": "last_frame",
"source": "https://cdn.example.com/last.png",
},
],
},
timeout=60,
)
print(response.status_code, response.json()){
"id": "task_xxxxxxxxxxxxxxxx",
"task_id": "task_xxxxxxxxxxxxxxxx",
"object": "video",
"model": "seedance2.5",
"status": "queued",
"progress": 0,
"created_at": 1795660800,
"seconds": "5",
"metadata": {
"aspect_ratio": "adaptive",
"resolution": "720p",
"url": "https://ling-light.com/v1/videos/task_xxxxxxxxxxxxxxxx/content"
}
}curl -X POST https://ling-light.com/v1/videos \
-H "Authorization: Bearer $LINGLIGHT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance2.5",
"prompt": "The girl in @图片1 turns to the camera; motion follows @视频1 and voice follows @音频1",
"seconds": 8,
"resolution": "480p",
"aspect_ratio": "16:9",
"references": [
{
"type": "image",
"source": "https://cdn.example.com/girl.png"
},
{
"type": "video",
"source": "https://cdn.example.com/motion.mp4"
},
{
"type": "audio",
"source": "asset://a1B2c3D4e5F6"
}
]
}'const response = await fetch('https://ling-light.com/v1/videos', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LINGLIGHT_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"model": "seedance2.5",
"prompt": "The girl in @图片1 turns to the camera; motion follows @视频1 and voice follows @音频1",
"seconds": 8,
"resolution": "480p",
"aspect_ratio": "16:9",
"references": [
{
"type": "image",
"source": "https://cdn.example.com/girl.png"
},
{
"type": "video",
"source": "https://cdn.example.com/motion.mp4"
},
{
"type": "audio",
"source": "asset://a1B2c3D4e5F6"
}
]
}),
})
console.log(response.status, await response.json())import os
import uuid
import requests
response = requests.post(
"https://ling-light.com/v1/videos",
headers={
"Authorization": f"Bearer {os.environ['LINGLIGHT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"model": "seedance2.5",
"prompt": "The girl in @图片1 turns to the camera; motion follows @视频1 and voice follows @音频1",
"seconds": 8,
"resolution": "480p",
"aspect_ratio": "16:9",
"references": [
{
"type": "image",
"source": "https://cdn.example.com/girl.png",
},
{
"type": "video",
"source": "https://cdn.example.com/motion.mp4",
},
{
"type": "audio",
"source": "asset://a1B2c3D4e5F6",
},
],
},
timeout=60,
)
print(response.status_code, response.json()){
"id": "task_xxxxxxxxxxxxxxxx",
"task_id": "task_xxxxxxxxxxxxxxxx",
"object": "video",
"model": "seedance2.5",
"status": "queued",
"progress": 0,
"created_at": 1795660800,
"seconds": "8",
"metadata": {
"aspect_ratio": "16:9",
"resolution": "480p",
"url": "https://ling-light.com/v1/videos/task_xxxxxxxxxxxxxxxx/content"
}
}curl -X POST https://ling-light.com/v1/videos \
-H "Authorization: Bearer $LINGLIGHT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance2.5-LL",
"prompt": "The character from @图片1 runs along the beach at sunset",
"seconds": 10,
"resolution": "720p",
"aspect_ratio": "16:9",
"references": [
{
"type": "image",
"source": "https://cdn.example.com/character.png"
}
]
}'const response = await fetch('https://ling-light.com/v1/videos', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LINGLIGHT_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"model": "seedance2.5-LL",
"prompt": "The character from @图片1 runs along the beach at sunset",
"seconds": 10,
"resolution": "720p",
"aspect_ratio": "16:9",
"references": [
{
"type": "image",
"source": "https://cdn.example.com/character.png"
}
]
}),
})
console.log(response.status, await response.json())import os
import uuid
import requests
response = requests.post(
"https://ling-light.com/v1/videos",
headers={
"Authorization": f"Bearer {os.environ['LINGLIGHT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"model": "seedance2.5-LL",
"prompt": "The character from @图片1 runs along the beach at sunset",
"seconds": 10,
"resolution": "720p",
"aspect_ratio": "16:9",
"references": [
{
"type": "image",
"source": "https://cdn.example.com/character.png",
},
],
},
timeout=60,
)
print(response.status_code, response.json()){
"id": "task_xxxxxxxxxxxxxxxx",
"task_id": "task_xxxxxxxxxxxxxxxx",
"object": "video",
"model": "seedance2.5-LL",
"status": "queued",
"progress": 0,
"created_at": 1795660800,
"seconds": "10",
"metadata": {
"aspect_ratio": "16:9",
"resolution": "720p",
"url": "https://ling-light.com/v1/videos/task_xxxxxxxxxxxxxxxx/content"
}
}curl -X POST https://ling-light.com/v1/videos \
-H "Authorization: Bearer $LINGLIGHT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance2.5",
"task_mode": "extend",
"prompt": "Continue naturally from the end of @视频1 in the same style",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"references": [
{
"type": "video",
"role": "reference",
"source": "https://cdn.example.com/source.mp4"
}
]
}'const response = await fetch('https://ling-light.com/v1/videos', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LINGLIGHT_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"model": "seedance2.5",
"task_mode": "extend",
"prompt": "Continue naturally from the end of @视频1 in the same style",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"references": [
{
"type": "video",
"role": "reference",
"source": "https://cdn.example.com/source.mp4"
}
]
}),
})
console.log(response.status, await response.json())import os
import uuid
import requests
response = requests.post(
"https://ling-light.com/v1/videos",
headers={
"Authorization": f"Bearer {os.environ['LINGLIGHT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"model": "seedance2.5",
"task_mode": "extend",
"prompt": "Continue naturally from the end of @视频1 in the same style",
"seconds": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"references": [
{
"type": "video",
"role": "reference",
"source": "https://cdn.example.com/source.mp4",
},
],
},
timeout=60,
)
print(response.status_code, response.json()){
"id": "task_xxxxxxxxxxxxxxxx",
"task_id": "task_xxxxxxxxxxxxxxxx",
"object": "video",
"model": "seedance2.5",
"status": "queued",
"progress": 0,
"created_at": 1795660800,
"seconds": "5",
"metadata": {
"aspect_ratio": "16:9",
"resolution": "720p",
"url": "https://ling-light.com/v1/videos/task_xxxxxxxxxxxxxxxx/content"
}
}