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 1.5 Pro is a ByteDance video generation model for short text-to-video and image-to-video clips. Use this page when you are ready to call the API after trying the model in the APIXO playground.
CapabilityValue
Model IDseedance-1-5-pro
Modestext-to-video, image-to-video
Prompt length3-2500 characters
Reference images1-2 URLs for image-to-video; the second image is used as the end frame
Aspect ratios1:1, 3:4, 4:3, 9:16, 16:9, 21:9
Resolutions480p, 720p
Duration4-12 seconds; use 4, 8, or 12 for predictable tier matching
AudioRequired sound toggle

Endpoint and authentication

Base URL:
https://api.apixo.ai/api/v1
MethodEndpointPurpose
POST/generateTask/seedance-1-5-proSubmit a generation task
GET/statusTask/seedance-1-5-pro?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-1-5-pro" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "text-to-video",
      "prompt": "a calm seaside sunrise with gentle camera dolly movement",
      "resolution": "720p",
      "duration": 8,
      "sound": false,
      "aspect_ratio": "16:9",
      "fixed_lens": 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-1-5-pro?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/xxx.mp4\"]}",
    "createTime": 1767965610929,
    "completeTime": 1767965695412,
    "costTime": 84483
  }
}
Failed response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "failed",
    "failCode": "SensitiveContent",
    "failMsg": "Content violates upstream policy, please adjust the prompt",
    "createTime": 1767965610929,
    "completeTime": 1767965620132,
    "costTime": 9203
  }
}
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 clean product showcase on a neutral background, subtle lighting shifts, steady camera",
    "resolution": "720p",
    "duration": 8,
    "sound": false,
    "aspect_ratio": "16:9",
    "fixed_lens": true
  }
}

Image-to-video

{
  "request_type": "async",
  "input": {
    "mode": "image-to-video",
    "prompt": "animate this landscape with moving clouds and soft wind",
    "image_urls": [
      "https://example.com/start-frame.jpg",
      "https://example.com/end-frame.jpg"
    ],
    "resolution": "480p",
    "duration": 4,
    "sound": true,
    "aspect_ratio": "1:1",
    "fixed_lens": 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 1.5 Pro input parameters.
Do not send 1080p for this model through the current API; backend validation accepts only 480p and 720p.

Response format

Submit task response

POST /generateTask/seedance-1-5-pro 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. 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 completion when available.

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-1-5-pro" \
  -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": "image-to-video",
      "prompt": "turn the two frames into a smooth cinematic transition with ambient sound",
      "image_urls": [
        "https://example.com/start-frame.jpg",
        "https://example.com/end-frame.jpg"
      ],
      "resolution": "720p",
      "duration": 8,
      "sound": true,
      "aspect_ratio": "16:9",
      "fixed_lens": false
    }
  }'
The callback payload uses the same unified response shape as the status endpoint when the task reaches a final state. See Webhooks for delivery requirements and retry behavior.

Billing

Seedance 1.5 Pro is billed per second. The selected resolution, duration, and sound value determine the total cost.
ResolutionsoundAPIXO price
480pfalse$0.01 / second
480ptrue$0.02 / second
720pfalse$0.02 / second
720ptrue$0.04 / second
Total cost is the per-second price multiplied by the billable duration. For example, 720p with sound: false for 8 seconds costs $0.16. For current route and market comparison pricing, see Pricing.

Latency and polling

Actual latency may vary by prompt complexity, input images, route selection, and current queue load.
DurationTypical generation timeRecommended first pollPoll interval
4 seconds40s-60s40s after task creation5s-10s
8 seconds60s-90s60s after task creation5s-10s
12 seconds90s-120s90s after task creation5s-10s
Video generation takes longer than image generation. For production workloads, use callback mode to avoid frequent polling.
Rate limits and concurrency can vary by account, API key, and route. If you receive 429, slow down requests and retry with backoff. For account-level details, see System APIs.

Errors and troubleshooting

HTTP errors

CodeMeaningWhat to do
400Invalid request body, missing required field, unsupported mode, unsupported resolution, invalid duration, or rejected prompt/imageFix 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
429Rate limit or concurrency limit reachedRetry with exponential backoff
500Server error or unmapped upstream errorRetry with backoff; contact support if it repeats
502Upstream errorRetry with backoff
504Upstream timeoutRetry or use callback mode for long-running jobs

Task failure codes

Fail codeMeaningWhat to do
PromptInvalidThe prompt was rejected or malformedRewrite the prompt and retry
SensitiveContentThe prompt or generated content violated upstream policyChange the prompt or reference image
ImageFormatIncorrectA reference image could not be accepted upstreamUse a public JPG, PNG, or WebP image URL
RateLimitedThe upstream route rate limited the taskRetry later with backoff
TimeoutThe upstream route timed outRetry, simplify the prompt, or use callback mode
InsufficientBalanceThe route could not continue because of balance or quotaAdd balance before retrying
Unknown errorThe upstream error did not match a known mappingRetry or contact support with the taskId

Common validation fixes

SymptomFix
mode is missingSet input.mode to text-to-video or image-to-video
image_urls is missing for image-to-videoProvide 1-2 public image URLs
resolution is rejectedUse 480p or 720p
duration is rejectedSend an integer from 4 to 12
sound is rejectedSend a boolean: true or false
Prompt length errorKeep the trimmed prompt within 3-2500 characters
See Error Codes for the full error reference.