Skip to main content

Documentation Index

Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Seedance 2.0 Fast is a ByteDance video generation model for fast text-to-video, first-and-last-frame animation, and multimodal reference workflows. Use this page when you are ready to call the API after trying the model in the APIXO playground.
CapabilityValue
Model IDseedance-2-0-fast
Modestext-to-video, first_and_last_frames, omni_reference
PromptRequired, non-empty text
Resolution480p, 720p
Duration4-15 seconds, default 5
Aspect ratiosauto, 16:9, 4:3, 1:1, 3:4, 9:16, 21:9
Reference imagesfirst_and_last_frames: 1-2 images; omni_reference: 1-9 images
Reference videosomni_reference only, 1-3 videos, each 2-15 seconds, total up to 15 seconds
Reference audioomni_reference only, 1-3 audio files, each 2-15 seconds, total up to 15 seconds
Audio and searchOptional generated audio and web search controls

Endpoint and authentication

Base URL:
https://api.apixo.ai/api/v1
MethodEndpointPurpose
POST/generateTask/seedance-2-0-fastSubmit a generation task
GET/statusTask/seedance-2-0-fast?taskId={taskId}Poll task status and retrieve results
All requests require your APIXO API key:
Authorization: Bearer YOUR_API_KEY
Submit requests also require:
Content-Type: application/json

Copy-paste async quickstart

This minimal request submits a text-to-video task and returns a taskId.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/seedance-2-0-fast" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "text-to-video",
      "prompt": "a cinematic tracking shot through a rainy neon street",
      "resolution": "720p",
      "duration": 5,
      "aspect_ratio": "16:9",
      "sound": true,
      "web_search": false
    }
  }'
Successful response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678"
  }
}
Save the taskId; you need it to poll for the final result.

Poll for result

curl -X GET "https://api.apixo.ai/api/v1/statusTask/seedance-2-0-fast?taskId=task_12345678" \
  -H "Authorization: Bearer YOUR_API_KEY"
Processing response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "processing",
    "createTime": 1767965610929
  }
}
Success response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "success",
    "resultJson": "{\"resultUrls\":[\"https://file.apixo.ai/video.mp4\"]}",
    "createTime": 1767965610929,
    "completeTime": 1767965910929,
    "costTime": 300000
  }
}
Failed response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "failed",
    "failCode": "PromptInvalid",
    "failMsg": "Prompt is invalid or rejected by provider",
    "createTime": 1767965610929,
    "completeTime": 1767965620132
  }
}
Parse resultJson after state becomes success:
const payload = JSON.parse(data.resultJson);
const videoUrls = payload.resultUrls;

Request body

Text-to-video

{
  "request_type": "async",
  "input": {
    "mode": "text-to-video",
    "prompt": "a cinematic tracking shot through a rainy neon street",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9",
    "sound": true,
    "web_search": false
  }
}

First-and-last-frames

{
  "request_type": "async",
  "input": {
    "mode": "first_and_last_frames",
    "prompt": "turn the still frames into a smooth cinematic camera move",
    "image_urls": [
      "https://example.com/frame-start.png",
      "https://example.com/frame-end.png"
    ],
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "9:16",
    "sound": true,
    "web_search": false
  }
}

Omni-reference

{
  "request_type": "async",
  "input": {
    "mode": "omni_reference",
    "prompt": "create a stylish product ad using the visual references and voice rhythm",
    "image_urls": [
      "https://example.com/product-shot.png"
    ],
    "video_urls": [
      "https://example.com/ref-motion.mp4"
    ],
    "audio_urls": [
      "https://example.com/ref-audio.mp3"
    ],
    "resolution": "480p",
    "duration": 6,
    "aspect_ratio": "auto",
    "sound": true,
    "web_search": false
  }
}

Parameters

request_type
string
default:"async"
required
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
callback_url
string
Required when request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.
input
object
required
Seedance 2.0 Fast input parameters.

Mode-specific constraints

  • text-to-video uses the prompt and generation settings only.
  • first_and_last_frames requires image_urls with 1-2 images. The first image is the starting frame; the second image, when present, is the ending frame.
  • omni_reference can combine image_urls, video_urls, and audio_urls.
  • omni_reference requests with only audio_urls, and no images or videos, are rejected.
  • Reference media must be publicly reachable URLs so the API can fetch or probe them.

Response format

Submit task response

POST /generateTask/seedance-2-0-fast returns a task ID when the task is accepted:
code
integer
API status code. 200 means the task was accepted.
message
string
Human-readable status message.
data.taskId
string
Unique task identifier used with the status endpoint.

Status response fields

taskId
string
Unique task identifier.
state
string
Current task state: pending, processing, success, or failed.
resultJson
string
JSON string containing the generated video URLs in resultUrls. Present when state is success.
failCode
string
Machine-readable failure code. Present when state is failed.
failMsg
string
Human-readable failure message. Present when state is failed.
createTime
integer
Task creation timestamp in Unix milliseconds.
completeTime
integer
Task completion timestamp in Unix milliseconds. Present after completion.
costTime
integer
Processing duration in milliseconds. Present after successful completion or when available from the task log.

Webhook callback mode

Use callback mode when your backend should receive the final result automatically instead of polling.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/seedance-2-0-fast" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "callback",
    "callback_url": "https://your-server.com/webhooks/apixo",
    "input": {
      "mode": "first_and_last_frames",
      "prompt": "turn the still frames into a smooth cinematic camera move",
      "image_urls": [
        "https://example.com/frame-start.png",
        "https://example.com/frame-end.png"
      ],
      "resolution": "720p",
      "duration": 5,
      "aspect_ratio": "9:16",
      "sound": true,
      "web_search": false
    }
  }'
See Webhooks for delivery requirements and retry behavior.

Billing

Seedance 2.0 Fast is billed per second. The selected resolution and whether omni_reference includes video_urls determine the unit price.
ConfigurationAPIXO price
480p, without video reference$0.076 / second
480p, with video reference$0.047 / second
720p, without video reference$0.156 / second
720p, with video reference$0.095 / second
Billing formulas:
  • Without video reference: output duration seconds x per-second rate
  • With video reference: (output duration seconds + total reference video seconds) x per-second rate
text-to-video and first_and_last_frames always use the “without video reference” rate. In omni_reference mode, “with video reference” applies only when video_urls is provided. Image and audio references do not add extra billable seconds. For current route and market comparison pricing, see Pricing.

Latency and polling

Actual latency may vary by prompt complexity, reference media, provider route, and current queue load.
WorkflowTypical generation timeRecommended first pollPoll interval
Text-to-video3-6 minutes200-300s after task creation10-20s
First-and-last-frames3-6 minutes200-300s after task creation10-20s
Omni-reference3-6 minutes200-300s after task creation10-20s
For production workloads, use callback mode to reduce polling overhead during longer video tasks.
No visible status change during the first few minutes can be normal for this model. Keep polling with backoff instead of immediately retrying the same task.
Result URLs can be temporary. Download generated videos promptly after task completion.

Errors and troubleshooting

HTTP errors

CodeMeaningWhat to do
400Invalid request body, missing parameter, unsupported value, or invalid reference mediaFix the request before retrying
401Missing or invalid API keyCheck the Authorization header
402Insufficient balance or quotaAdd balance or switch account/key
403Key or route cannot access the modelCheck permissions and route strategy
404Task not foundCheck the taskId and model endpoint
429Rate limit or concurrency limit reachedRetry with exponential backoff
500Server error or unmapped provider failureRetry with backoff
502Upstream provider errorRetry with backoff
504Upstream timeoutRetry or use callback mode for long-running jobs

Common request validation errors

ErrorMeaningWhat to do
Missing required parameterinput, mode, prompt, or a mode-specific required field is missingAdd the required field
Invalid parameter typeA field has the wrong JSON typeUse strings for text fields and URLs, booleans for sound and web_search, and integers for duration
Invalid parameter valueA value is outside the supported set or rangeCheck mode, resolution, duration, aspect_ratio, and reference media durations
Param length exceededToo many reference URLs were providedKeep image_urls, video_urls, and audio_urls within the documented limits
ImageNotAccessA referenced URL could not be accessedUse public, direct media URLs

Task failure codes

Fail codeMeaningWhat to do
PromptInvalidPrompt or input was rejected by the providerAdjust the prompt or references
SensitiveContentInput or output was flagged by safety checksChange the prompt or input media
RateLimitedProvider or account rate limit was reachedRetry with exponential backoff
TimeoutProvider timed outRetry later or use callback mode
Unknown errorProvider returned an unmapped failureRetry with backoff or contact support with the taskId
See Error Codes for the full error reference.