Перейти к основному содержанию
POST
Main changes vs 2.0: max duration 15s → 30s; references 9 images + 3 videos + 3 audios → 30 images + 10 videos + 10 audios; audio-only reference supported; mov output added.
Note: resolution supports 480p / 720p / 1080p (2.0’s 4k is not available on 2.5).

Authentication

string
обязательно
Bearer token auth. Get a key from the API Key page.

Request parameters

string
обязательно
Fixed value: seedance-2.5
boolean
по умолчанию:"false"
Выполнять ли проверку содержимого перед отправкой задачи генерации видео.
  • true: проверить промпты и входные изображения с помощью omni-moderation-latest
  • false или параметр не указан: не отправлять запрос на проверку, без дополнительных затрат и задержки (по умолчанию)
Проверяемые данные:
  • Текст: prompt, negative_prompt
  • Изображения: image_urls, image_with_roles[].url, first_frame_image, last_frame_image
  • Приватные изображения asset://: найти и проверить исходный публичный URL
  • Изображения Base64: проверить после преобразования в публичный URL
video_urls, audio_urls, а также приватные видео- и аудиоматериалы не проверяются, поскольку модель модерации не поддерживает видео и аудио.Поддерживаемые ID моделей: seedance-2.0, seedance-2.0-fast, seedance-2.0-mini, seedance-2.0-face, seedance-2.0-fast-face, seedance-2-0 (прежнее имя) и seedance-2.5.Сам вызов модерации не оплачивается пользователем, отправившим запрос на генерацию видео.
  • При обнаружении запрещенного содержимого синхронно возвращается HTTP 400 (nsfw_content_detected). Задача и task_id не создаются, квота генерации видео не списывается
  • Если сервис модерации недоступен, истекло время ожидания или ответ некорректен, действует режим fail-open и генерация продолжается. Этот параметр не является абсолютной гарантией безопасности содержимого
  • Входные данные, которые нельзя преобразовать в публичный URL изображения, пропускаются; неподдерживаемые модели молча игнорируют nsfw_check: true
Пример:
Ответ при обнаружении:
boolean
Установите true для черновика 480p. Поддерживается только seedance-2.5. Без параметра выполняется обычная генерация.
  • resolution — только 480p; при пропуске также 480p
  • Нельзя сочетать с draft_task_id
  • Черновик действителен 3 дня с момента создания; после успеха из него можно создать итоговое видео 1080p
Процесс описан в разделе Режим черновика.
string
Создает итоговое видео 1080p из завершенного черновика. Укажите ID задачи APIMart из ответа отправки черновика (data[0].task_id), а не URL видео.
  • Только seedance-2.5; модель должна совпадать с моделью черновика
  • Черновик должен принадлежать пользователю текущего API Key, успешно завершиться и быть создан не более 3 дней назад
  • resolution — только 1080p; при пропуске также 1080p
  • Нельзя сочетать с draft: true или повторно передавать наследуемые поля: prompt, материалы, длительность и другие
Изменяемые поля и ограничения: Режим черновика.
string
Обязателен для обычной генерации и черновиков. С draft_task_id передавать запрещено: итоговое видео наследует запрос черновика.Prompt. Reference media with @图片1 / @视频1 / @音频1 (1-based index matching array order). English aliases in prompts may also be used depending on model behavior; keep indices aligned with arrays.Example: "Use @视频1 for first-person framing throughout, @音频1 as BGM, first frame is @图片1"
string
по умолчанию:"720p"
Resolution — only:
  • 480p
  • 720p (default)
  • 1080p
Unsupported values like 2k / 4k return a sync 400.Исключение режима черновика: draft: true допускает только 480p и использует его по умолчанию; draft_task_id — только 1080p, также по умолчанию.
string
по умолчанию:"adaptive"
Aspect ratio (field name aspect_ratio is also accepted).Values: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive (default)
Edit, extend, and first/last-frame jobs have hard size constraints — see Task types and constraints.
integer
по умолчанию:"5"
Duration in seconds:
  • 4 ~ 30
  • -1: model picks duration (pre-charge at the 30s cap; settle to actual length after completion)
If omitted: generate and bill 5 seconds.
boolean
по умолчанию:"true"
Whether to generate audio (alias field name: audio).
  • true: with audio (default)
  • false: silent video
boolean
по умолчанию:"false"
Add an “AI generated” watermark. Default false.
integer
Random seed. Different seeds usually yield different results for the same request; the same seed is similar but not guaranteed identical.
string
по умолчанию:"mp4"
Output container:
  • mp4 (default)
  • mov: higher color precision — recommended for edit / extend workflows
string
по умолчанию:"auto"
Sub-task type hint: auto / reference / edit / extend.Passing reference / edit / extend validates that type’s constraints at submit time. Invalid requests return 400, create no task, and charge nothing. See Task types and constraints.
array<string>
Reference image URLs, all treated as reference_image.Supports:
  • Public URL: https://example.com/pic.jpg
  • Private asset: asset://cm9xxxxxxxx
For first/last frames use image_with_roles.
  • Max 30 images
  • Prefer image_with_roles for first/last-frame roles
array<object>
Images with explicit roles.Example:
If video_urls / audio_urls are present, first_frame / last_frame are auto-converted to reference_image (multimodal reference job).
array<string>
Reference videos (reference_video).Input: video URL or asset ID (asset://...).See Reference video specs.
array<string>
Reference audio URLs (reference_audio). Public URLs or asset://....Max 10; total duration ≤ 30s (each clip 2~30s).
2.5 supports audio-only reference (no image/video required).
boolean
по умолчанию:"false"
When true, the successful result also includes the last-frame image for chaining.
array<object>
Tool list for enhancements such as web search.Example:

Media limits

Reference video specs

  • Input: video URL or asset ID (asset://...)
  • Container: mp4, mov — codecs in the table below
  • Resolution: 480p, 720p, 1080p
  • Duration: each clip [2, 30] s; up to 10 reference videos; total duration of all videos ≤ 30s
  • Per-video dimensions:
    • Aspect ratio (width/height): [0.4, 2.5]
    • Side length (px): [300, 6000]
    • Total pixels: [640×640=409600, 3326×2494=8295044], i.e. width × height must fall in [409600, 8295044]
  • Size: each video ≤ 200 MB
  • Frame rate (FPS): [24, 60]

Supported codecs

Task types and constraints

The service infers task type from references and prompt intent. The last three types hard-constrain size / duration; violations fail asynchronously after the job starts (e.g. InvalidParameter.TaskTypeConstraint):

Turn async errors into sync errors with omni_reference_task_type

Passing reference / edit / extend declares the sub-task type so its constraints are validated at submit time. Invalid requests return 400 immediately: no task is created and nothing is charged — you do not have to poll until failed. Notes:
  • If edit omits duration, the platform sets it to -1. Omitting duration otherwise defaults to 5 seconds, which conflicts with the upstream edit requirement of -1. The trade-off is a 30-second prepaid hold (same as duration: -1); unused amount is refunded after completion. For a smaller hold, skip edit and use default auto.
  • If edit sends duration explicitly, it must be -1. Any other value returns 400 (output length follows the source video).
  • ⚠️ You can still fail asynchronously with InvalidParameter.TaskTypeMismatch. Upstream re-classifies the job from the prompt; a mismatch with your declared type is rejected. Keep prompt wording aligned (edit: “edit / delete / replace…”; extend: “extend forward/backward / continue…”).
  • All Seedance 2.5 channels share the same validation and upstream payload; switching channels does not change this behavior.

Asset library

You can pass public URLs as references, or upload into the library first and use asset://. Prefer the library when:
  1. Real human faces must use the library — raw URLs are blocked by content moderation; only approved library assets can be used
  2. Assets are reused often — upload once, skip repeated moderation on later jobs, faster submits
  3. URLs are signed temporary links — the platform stores a durable copy on ingest so later use does not depend on the original URL staying alive
  4. Library assets are synced to all available channels so multi-channel routing can use them wherever the job lands
The library is shared with the 2.0 family; approved asset:// IDs work in both 2.0 and 2.5 generation requests. Full submit fields: also see Private avatar assets.

Upload assets

The response includes a local task id. Poll with Get task status (GET /v1/tasks/{id}). After approval, list assets to obtain the asset:// ID.

Media limits (validated at submit)

Violations return 400 immediately (which asset index and which rule), without starting moderation or consuming moderation quota: Error example:
For 30s video assets, submit with "model": "seedance-2.5" (2.0 cannot use assets longer than 15s).
If the platform cannot probe the media (e.g. network blip), it may pass through and leave the decision to moderation.

Use in generation requests

Reference approved assets with asset:// in image_urls / image_with_roles / video_urls / audio_urls:
Multi-channel: after ingest, assets sync to all available channels so any routed channel can use them. If a channel’s copy is missing, the platform may re-upload from the original URL as a fallback (if that URL is already expired, that channel is skipped and another takes over).

Management APIs (quick reference)

Asset APIs are free of charge (auth + rate limits only); they do not create billing records.

FAQ

Q: How long does moderation take?
Images usually seconds; video and real-person assets may take minutes. Poll the task id until a terminal status.
Q: Moderation failed with no clear reason?
Some failures omit a detailed reason (often a transient fetch failure). The platform already retries once; if it still fails, change the URL (ensure it is publicly downloadable) and resubmit.
Q: Same asset for both 2.0 and 2.5 — upload twice?
No. Upload once; asset:// works for both generations. Cross-channel / cross-model sync is handled by the platform.
Q: Can I pass a real-person face as a raw URL?
Real-person assets must go through the library first.

Billing

Ниже правила для обычной генерации и черновиков. Для итогового видео см. Оплата режима черновика.
  • Billed by seconds × resolution tier.
  • With reference video input: billable seconds = total input video duration (≤30s) + output duration, at the input-reference rate tier.
  • duration = -1 (auto): pre-charge at the 30s cap; settle to actual output after completion.
  • Omit duration: generate and bill 5 seconds.
  • Failed jobs or content moderation blocks: full refund (charge only on successful output).

Режим черновика

Создайте черновик 480p для проверки изображения, затем используйте его ID для итогового видео 1080p. Итог наследует запрос, материалы, длительность, соотношение сторон, seed, настройку звука и тип задачи, чтобы соответствовать черновику.

Шаг 1: Создать черновик 480p

Добавьте "draft": true к обычному запросу. Ограничения материалов и типов задач те же. Без resolution используется 480p; 720p или 1080p возвращают 400.
Прочитайте ID черновика из data[0].task_id. Опрашивайте статус задачи и отправляйте итоговое видео только после data.status=completed.
Рекомендуемый интервал — 5–15 секунд. pending — очередь, processing — генерация, completed — успех, failed — ошибка. Адрес видео находится в массиве data.result.videos[].url; используйте url[0].

Шаг 2: Создать итоговое видео 1080p

Укажите ID из шага 1 в draft_task_id. Без resolution используется 1080p; другие разрешения возвращают 400.
Итоговое видео получает новый ID задачи. Результат запрашивается через GET /v1/tasks/{task_id}. Эти поля наследуются от черновика. Не передавайте их повторно: даже одинаковые значения вызывают 400: prompt, image_urls, image_with_roles, video_urls, audio_urls, duration, size, aspect_ratio, seed, generate_audio, audio, omni_reference_task_type, generation_type, camerafixed, web_search, tools. Можно изменить следующие параметры вывода:
draft: true и draft_task_id взаимоисключающие. Ни черновик, ни итоговое видео не поддерживают service_tier.Черновик действителен 3 дня с создания. Несуществующая, чужая, незавершенная, нечерновая или просроченная задача вызывает 400 при отправке итогового видео, без создания задачи и списания средств.
Итоговое видео использует тот же маршрут, что и черновик; сервис связывает их автоматически. Если маршрут временно недоступен, отправка возвращает 400. Повторите позже с тем же draft_task_id. Из действующего черновика можно создавать несколько итоговых видео. Каждое является отдельной задачей и оплачивается отдельно.

Оплата режима черновика

Черновик оплачивается как обычное видео 480p. Длительность входных референсных видео учитывается как обычно, суммарно до 30 секунд. Итоговое видео оплачивается в 1080p. Если на шаге 1 были исходные референсные видео, применяется уровень 1080P-input, иначе — обычный 1080P. Расчёт выполняется по цене за токен соответствующего уровня. Оплачиваемая длительность видеовхода для итогового видео равна суммарной длительности исходных референсных видео из шага 1, не более 30 секунд. Само сгенерированное Draft-видео не считается видеовходом. POST для итогового видео по-прежнему ссылается на draft_task_id; повторно передавать референсные материалы и другие наследуемые поля запрещено. Отсутствие повторной отправки материалов не исключает их исходную длительность из расчёта оплаты. Например, если на шаге 1 запрошено 11 секунд вывода при 22 секундах исходных референсных видео, токены итогового видео оцениваются по 11 + 22 = 33 секундам и цене за токен уровня 1080P-input. Успешные задачи рассчитываются по фактическим токенам: излишек возвращается, нехватка списывается дополнительно. При ошибке — полный возврат. Ставки и скидки определяются ценой модели.
Ширина и высота — выходные размеры задачи в пикселях. После успеха data.usage.completion_tokens содержит число токенов для сверки.

Request examples

Text-to-video (30s)

Multimodal reference (image + video + audio)

Video edit

First–last frame

Private asset

Common errors

Response (submit)

integer
Status code; 200 on success
array
Submit response with status / task_id

Completed task (GET /v1/tasks/{task_id})

After submit, poll with Get task status. When status is completed, the payload looks like this.

Completed response example

Completed fields

Notes

  • Failed tasks (status=failed): cost is always 0 (pre-charge fully refunded); reason in data.error.message
  • usage may be missing for a few seconds after completion (settlement lag); query again shortly

Differences from 2.0