Skip to content

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>.

Models and limits

ModelRule groupresolutionseconds (inclusive)BillingFramestask_modeReference limit image/video/audio
seedance2.0Seedance 2.0 series480p / 720p / 1080p / 4KDefault 480p5–15Default 5Per second × resolution rateYesNo9 / 3 / 3No video at 1080p / 4K
seedance2.0-fastSeedance 2.0 series480p / 720pDefault 480p4–15Default 4Per second × resolution rateYesNo9 / 3 / 3
seedance2.0-miniSeedance 2.0 series480p / 720pDefault 480p4–15Default 4Per second × resolution rateNoNo9 / 3 / 3
seedance2.0-vipSeedance 2.0 series480p / 720p / 1080p / 4KDefault 480p5–15Default 5Per second × resolution rateYesNo9 / 3 / 3
seedance2.5Seedance 2.5 series480p / 720p / 1080p / 4KDefault 480p4–30Default 4Per second × resolution rateYesextend / editNot at 1080p / 4K10 / 5 / 5No video at 1080p / 4K
seedance2.5-flashSeedance 2.5 series480p / 720pDefault 480p4–30Default 4Per second × resolution rateYesextend / edit10 / 5 / 5
seedance2.5-vipSeedance 2.5 series480p / 720p / 1080p / 4KDefault 480p4–30Default 4Per second × resolution rateYesextend / edit10 / 5 / 5
seedance2.5-LLSeedance 2.5 LL720pRequired5–30Default 5Per task by resolution; duration-independentNoNo10 / 5 / 5

Headers

  • AuthorizationstringRequired

    Bearer <API_KEY>, a model API key created under API keys in the console.

  • Content-TypestringRequired

    application/json.

  • Idempotency-KeystringOptional

    Idempotency 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

  • modelstringRequired

    The 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
  • promptstringRequired

    Describe 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 / edit

    Duration in whole seconds. Each model’s inclusive range and default are in the model table above. The alias duration is accepted; if both are sent they must be equal.

    With task_mode: "extend" it is the added duration; with task_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 LL

    Resolution tier, one listed for the selected model in the model table, such as 480p, 720p, 1080p or 4K.

    For seedance2.0 and seedance2.5, 1080p and 4K take no input video: references must not contain video, and seedance2.5 cannot use task_mode at these tiers; use 720p or 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 alias resolution_name is accepted; if both are sent they must match.
  • aspect_ratiostringOptional

    Aspect ratio as width:height. The alias ratio is 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 accepts auto (or adaptive), letting the model pick the canvas from the frames; text-to-video, reference-guided generation, extend and edit treat auto as 16:9. For the seedance2.5 series (including -flash and -vip), frame-guided generation accepts only auto / adaptive and uses adaptive when the field is omitted; task queries report metadata.aspect_ratio as adaptive.
    Seedance 2.5 LL
    Supported: auto (or its equivalent adaptive), 16:9, 9:16, 1:1, 4:3, 3:4, 21:9; when omitted the model decides. The alias size is also accepted.
  • referencesobject[]Optional

    Reference media; the mode is inferred: omit it for text-to-video; one first_frame plus one last_frame image for frame-guided generation, as a pair with no other media; anything else is reference-guided. Do not combine with URL array fields such as images / 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.0 takes no video at 1080p / 4K.
    Seedance 2.5 series
    Images ≤ 10, videos ≤ 5, audio ≤ 5. seedance2.5 takes no video at 1080p / 4K.
    Seedance 2.5 LL
    Images ≤ 10, videos ≤ 5, audio ≤ 5. No frames; role must be reference or omitted.

    Limits

    • A publicly reachable https:// URL, or asset://<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)
    • typestringRequired

      Media type.

      Supported values

      • imageImage
      • videoVideo
      • audioAudio
    • rolestringOptionalDefault reference

      How the media is used.

      Supported values

      • referenceOrdinary reference
      • first_frameFirst frame, image only; Seedance 2.0 / 2.5 series only, except seedance2.0-mini
      • last_frameLast frame, image only; Seedance 2.0 / 2.5 series only, except seedance2.0-mini
    • sourcestringRequired

      Media URL: a public HTTPS URL or asset://<asset ID>; see the limits above.

  • images / videos / audiosstring[]Optional

    Shorthand for reference URLs by type, equivalent to references with role: "reference" and the same limits; do not combine with references. Aliases: image_urls, imageUrls, reference_images, referenceImages, reference_image_urls for images, and the same pattern for video and audio. Several aliases of one type must carry identical arrays.

  • first_image / last_imagestringOptional

    Only for: Seedance 2.0 series, Seedance 2.5 series

    Shorthand for the first and last frame images, equivalent to first_frame / last_frame in references. Send both; do not combine with references.

  • task_modestringOptional

    Only for: Seedance 2.5 series

    Extend or edit an existing video; omit for ordinary generation. Only the Seedance 2.5 series (seedance2.5 and suffixed versions such as -flash and -vip) supports it; seedance2.5-LL and the Seedance 2.0 series do not. Follow the task_mode column of the model table, and do not use it at resolutions that column marks as unsupported (1080p / 4K on seedance2.5). Billed on the requested seconds; the source video is free.

    Supported values

    • extendContinue from the end; seconds is the added duration
    • editEdit the video; seconds must equal the source duration

    Limits

    • seconds is required, and references must hold exactly one type: "video", role: "reference" source video, with no images, audio, other videos or frames.
  • billing_modestringOptional

    Only for: Seedance 2.5 LL

    Optional; if sent it must be per_video.

Returns

HTTP 200 with a video task object.

  • idstringRequired

    Task ID beginning with task_. Use it to query and download.

  • task_idstringOptional

    Compatibility copy of id.

  • objectstringOptional

    Always video.

  • modelstringOptional

    The requested model ID.

  • statusstringOptional

    Task status. Use status, not progress, to decide completion.

    Supported values

    • queuedWaiting; keep polling
    • in_progressGenerating; keep polling
    • completedDone; read metadata.url
    • failedFailed; read error.message. The charge is refunded by the server
    • unknownStatus not yet known; keep polling the same task and do not resubmit
  • progressintegerOptional

    Progress 0–100, for display only.

  • created_atintegerOptional

    Creation time in Unix seconds.

  • completed_atintegerOptional

    Completion time in Unix seconds; present once completed.

  • secondsstringOptional

    Task duration in seconds, as a string.

  • metadataobjectOptional

    Task parameters and result URL.

    Show child fields (4)
    • resolutionstringOptional

      Resolution tier.

    • aspect_ratiostringOptional

      Aspect ratio.

    • urlstringOptional

      Video URL. Usable only when status is completed. Before that it may already show this site’s /v1/videos/{id}/content URL, 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}/content URL (send the API key that created the task). Use the returned URL as-is.

    • billed_secondsstringOptional

      Billed seconds; returned for some per-second tasks after settlement.

  • errorobjectOptional

    Present only when status is failed.

    Show child fields (2)
    • codestringOptional

      Always video_generation_failed.

    • messagestringOptional

      Failure 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.

HTTPcodeCause and action
400invalid_requestMissing field, invalid value or format, or an unsupported field; see message.
400video_pricing_combination_unsupportedThe model does not offer this resolution or duration.
400asset_reference_not_foundThe 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.
403video_pricing_model_disabledThe model is no longer on sale.
403insufficient_user_quotaInsufficient balance or key quota; top up or raise the quota.
409idempotency_conflictThe Idempotency-Key was used with a different body.
409task_submission_recovery_pendingThe original submission is unresolved; do not resubmit.
429—Rate or concurrency limit; retry later.
503video_pricing_not_configuredThe 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.
Create a text-to-video task
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())
Response · queued
{
  "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"
  }
}
Frame-guided (Seedance 2.0 / 2.5 series, except seedance2.0-mini)
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())
Response · queued
{
  "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"
  }
}
Mixed reference media
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())
Response · queued
{
  "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"
  }
}
Seedance 2.5 LL · resolution required
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())
Response · queued
{
  "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"
  }
}
Extend a video by 5 seconds
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())
Response · queued
{
  "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"
  }
}
API reference overview
Authentication, media URLs, idempotency and errors.
Integration guide
The full flow from API key to downloaded result.
Last updated