Skip to content

Bytedance Seedance 2.5 ​

This page is generated from the upstream official OpenAPI documentation. Endpoints, parameters and examples match the official docs; brand and API domain are replaced with ModelFold.

Endpoint ​

POST /jobs/createTask

Full URL: https://ai.modelfold.online/v1/jobs/createTask

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Query Task Status ​

After submitting a task, use the unified query endpoint to check progress and retrieve results:

  • Get Task Details — Learn how to query task status and retrieve generation results

TIP

In production environments, it is recommended to use the callBackUrl parameter to receive automatic notifications upon completion, rather than polling the status API.

Note

  • Image-to-Video (First Frame), Image-to-Video (First & Last Frames), and Multimodal Reference-to-Video (including reference images, videos, and audio) are three mutually exclusive scenarios and cannot be used simultaneously.
  • Multimodal Reference-to-Video can indirectly achieve a "First/Last Frame + Multimodal Reference" effect by specifying reference images as the first or last frame via prompts. If you need to strictly guarantee that the first and last frames are identical to the specified images, prioritize using Image-to-Video (First & Last Frames)

Key Features ​

  • Text-to-Video — Generate videos directly from text descriptions without input images
  • Image-to-Video — First frame, or first and last frames
  • Multimodal Reference — Up to 30 images, 10 videos and 10 audio clips
  • Audio Generation — Optional audio generation for enhanced video content

TIP

With reference video(s), billing uses a lower per-second price × (total reference-video duration + output duration); reference images and reference audio do not add billable seconds. With duration = -1, billing follows the duration actually generated. For current prices, see ai.modelfold.online/pricing.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be bytedance/seedance-2-5 for this endpoint Default:"bytedance/seedance-2-5"。 Allowed values:bytedance/seedance-2-5。 示例:bytedance/seedance-2-5。
callBackUrlstringNoThe URL to receive generation task completion updates. Optional but recommended for production use.
- System will POST task status and results to this URL when generation completes
- Callback includes generated content URLs and task information
- Your callback endpoint should accept POST requests with JSON payload containing results
- Alternatively, use the Get Task Details endpoint to poll task status
- To ensure callback security, see Webhook Verification Guide for signature verification implementation 示例:https://your-domain.com/api/callback。
inputobjectYesInput parameters for the generation task
  input.promptstringNoThe text prompt used to generate the video.. ( Max length: 20480 characters) 示例:A serene beach at sunset with waves gently crashing on the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky。
  input.first_frame_urlstringNoFirst frame image url or asset://{assetId}
(for example: asset://asset-20260404242101-76djj)
Cannot be used simultaneously with reference_image_urls, reference_video_urls, or reference_audio_urls.
  input.last_frame_urlstringNoEnd frame image url or asset://{assetId}
(for example: asset://asset-20260404242101-76djj)
last_frame_url cannot be passed alone; first_frame_url must be provided together with it.
  input.reference_image_urlsarray&lt;string&gt;NoEnter a list of image URLs or asset://{assetId} (for example: asset://asset-20260404242101-76djj).
Single image requirements:
Format: jpeg, png, webp.
Aspect ratio (width/height): (0.4, 2.5)
Width and height (px): (300, 6000)
Size: Single image less than 30 MB.
Up to 30 images.
Mutually exclusive with the first/last-frame scenario;
  input.reference_video_urlsarray&lt;string&gt;NoEnter a list of video URLs or asset://{assetId} (for example: asset://asset-20260404242101-76djj) .
Single video requirements:
Video format: mp4, mov, mkv.
Resolution: 480p, 720p
Dimensions:
Aspect ratio (width/height): [0.4, 2.5]
Width/height (px): [300, 6000]
Total pixels: [640×640=409600, 834×1112=927408], i.e., the product of width and height must meet the range requirement of [409600, 927408].
Size: Single video not exceeding 200 MB.
Frame rate (FPS): [24, 60]
Single video duration: [2, 30] seconds;
Mutually exclusive with the first/last-frame scenario; Total duration of reference videos must not exceed 30 seconds.
  input.reference_audio_urlsarray&lt;string&gt;NoEnter a list of audio URLs or asset://{assetId} (for example: asset://asset-20260404242101-76djj) .
Single audio requirements:
Format: wav, mp3, aac, ogg
Size: Single audio file size not exceeding 15 MB.
Single audio duration: [2, 30] seconds; mutually exclusive with first/last frames; total duration of reference audio must not exceed 30 seconds.
  input.return_last_framebooleanNoWhether to also return the last frame of the generated video as a JPEG (in resultJson.lastFrameUrl). Default false. Default:false。 示例:false。
  input.generate_audiobooleanNoWhether to generate audio synchronized with the video. Default: true. Default:true。 示例:false。
  input.resolutionstringNoVideo resolution - 480p for faster generation, 720p for balance. Default:"720p"。 Allowed values:480p / 720p / 1080p。 示例:720p。
  input.aspect_ratiostringNoVideo aspect ratio configuration. Default:"adaptive"。 Allowed values:1:1 / 4:3 / 3:4 / 16:9 / 9:16 / 21:9 / adaptive。 示例:adaptive。
  input.durationintegerNoVideo duration in 4-30 seconds.
Special values -1:
Pass -1 for automatic duration selection — the model picks a suitable duration itself (for video-editing tasks, it matches the input video's length; for other task types, it selects within the valid range), instead of you specifying an exact value. Default:5。 示例:5。
  input.output_formatstringNoVideo output format. Default:"mp4"。 Allowed values:mp4 / mov。 示例:mp4。
  input.web_searchbooleanNoEnable online search.
  input.draftbooleanNoEnable draft mode. When enabled, only 480p resolution is allowed. Draft task ID is valid for 7 days from draft creation. Default:false。 示例:false。
  input.nsfw_checkerbooleanNoDefaults to false. When false, no additional content filtering is applied and results are returned directly by the model.

Request Example ​

bash
curl -X POST "https://ai.modelfold.online/v1/jobs/createTask" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bytedance/seedance-2-5",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "A tranquil beach at sunset, with gentle waves lapping the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky.",
    "reference_image_urls": [
      "https://example.com/your-image.png"
    ],
    "reference_video_urls": [
      "https://example.com/your-video.mp4"
    ],
    "reference_audio_urls": [
      "https://example.com/your-audio.mp3"
    ],
    "return_last_frame": false,
    "generate_audio": false,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 15
  }
}'
json
{
  "model": "bytedance/seedance-2-5",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "A tranquil beach at sunset, with gentle waves lapping the shore, palm trees swaying in the breeze, and seagulls flying across the orange sky.",
    "reference_image_urls": [
      "https://example.com/your-image.png"
    ],
    "reference_video_urls": [
      "https://example.com/your-video.mp4"
    ],
    "reference_audio_urls": [
      "https://example.com/your-audio.mp3"
    ],
    "return_last_frame": false,
    "generate_audio": false,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "duration": 15
  }
}

Response ​

200 — Request successful ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_bytedance_1765186743319"
  }
}

Callback ​

videoTaskCompleted ​

Callback URL: {request.body#/callBackUrl} (the callBackUrl in the request body).

The system sends this callback when the bytedance/seedance-2-5 task succeeds or fails.

Callback body parameters

参数类型必填说明
codeinteger是Unified callback code: 200 for success, 501 for failure. Allowed values:200 / 501。 示例:200。
msgstring是Unified callback message. Allowed values:Playground task completed successfully. / Playground task failed.。 示例:Playground task completed successfully.。
dataobject是—
  data.taskIdstring是The unique task identifier.
  data.modelstring是The model used for the task. Allowed values:bytedance/seedance-2-5。 示例:bytedance/seedance-2-5。
  data.statestring是Terminal task state. Allowed values:success / fail。 示例:success。
  data.paramstring是JSON string containing the submitted task parameters.
  data.resultJsonstring否JSON string. On success it contains resultUrls; when return_last_frame is true it also contains lastFrameUrl (JPEG). Present only when state is success.
  data.failCodestring否Failure code, a numeric string such as "400" or "500". Present only when state is fail.
  data.failMsgstring否Failure reason. Present only when state is fail.
  data.costTimeinteger否Processing time in seconds. Present on both success and failure callbacks.
  data.completeTimeinteger否Task completion timestamp.
  data.createTimeinteger否Task creation timestamp.
  data.updateTimeinteger否Use completeTime as the completion time; updateTime may equal createTime.
  data.creditsConsumednumber否Credits consumed by the task; 0 for failed tasks.

Task completed successfully

json
{
  "code": 200,
  "msg": "Playground task completed successfully.",
  "data": {
    "taskId": "task_example_video_webhook_001",
    "model": "bytedance/seedance-2-5",
    "state": "success",
    "param": "{\"input\":\"{}\",\"callBackUrl\":\"https://example.com/callback\",\"model\":\"bytedance/seedance-2-5\"}",
    "resultJson": "{\"resultUrls\":[\"https://example.com/generated-video.mp4\"],\"lastFrameUrl\":[\"https://example.com/last-frame.jpg\"]}",
    "costTime": 12,
    "completeTime": 1234567890,
    "createTime": 1234560000,
    "updateTime": 1234567890,
    "creditsConsumed": 1.23
  }
}

Task failed

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "task_example_video_webhook_001",
    "model": "bytedance/seedance-2-5",
    "state": "fail",
    "param": "{\"input\":\"{}\",\"callBackUrl\":\"https://example.com/callback\",\"model\":\"bytedance/seedance-2-5\"}",
    "failCode": "400",
    "failMsg": "<error detail>",
    "costTime": 12,
    "creditsConsumed": 0
  }
}

ModelFold — one API for all the best AI models.