XBAI API
Video ModelsSeedance

Seedance 2.0 Fast

The faster Seedance 2.0 variant with the same request shape.

POST/api/v1/jobs/createTask

Seedance 2.0 Fast is the faster variant of Seedance 2.0 with the same parameters. It supports text-to-video, first/last-frame image-to-video, and multimodal references, produces 4 to 15 seconds of 480p or 720p video, and can generate a matching audio track.

Set model to seedance-2.0-fast. The request is asynchronous: store the returned taskId, then query the task or wait for the callback.

Request example

cURL
curl -X POST https://api.xbaiapi.com/api/v1/jobs/createTask \
  -H "Authorization: Bearer xb-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2.0-fast",
    "input": {
      "prompt": "a cat stretching on a sunlit windowsill",
      "resolution": "720p",
      "duration": 5,
      "ratio": "16:9",
      "generateAudio": true,
      "imageUrls": []
    },
    "callBackUrl": "https://your-server.com/webhook"
  }'

Parameters

FieldTypeRequiredNotes
modelstringYesFixed value seedance-2.0-fast
input.promptstringConditionalUp to 20480 characters; optional for first/last-frame image-to-video
input.resolutionstringNo480p or 720p, defaults to 720p
input.durationnumberNoInteger seconds from 4 to 15, defaults to 5. Automatic duration -1 is currently unavailable
input.ratiostringNoadaptive, 16:9, 9:16, 1:1, 4:3, 3:4, or 21:9. Defaults to adaptive
input.generateAudiobooleanNoDefaults to true
input.firstFrameUrlstringNoFirst frame; providing it selects image-to-video and is required in that mode
input.lastFrameUrlstringNoOptional last frame; requires a first frame
input.imageUrlsstring[]NoUp to 9 multimodal reference images, up to 30 MB each
input.videoUrlsstring[]NoUp to 3 reference videos, 2 to 15 seconds and up to 50 MB each; total duration at most 15 seconds
input.audioUrlsstring[]NoUp to 3 reference audio clips, 2 to 15 seconds and up to 50 MB each; total duration at most 15 seconds; requires a reference image or video
input.webSearchbooleanNoText-to-video only; defaults to false
input.realPersonModebooleanNoImage-to-video and multimodal only; defaults to true
input.conversionSlotsstring[]NoAsset conversion slots; defaults to ["all"]; image-to-video accepts firstFrameUrl and lastFrameUrl; multimodal accepts image1 through image9 and video1 through video3
input.returnLastFramebooleanNoRequest a last frame; defaults to false. The public task result still returns only the video
input.seednumberNoInteger from -1 to 2147483647; defaults to -1
callBackUrlstringNoOmit it and poll the query endpoint instead

Without media, the request uses text-to-video. firstFrameUrl selects first/last-frame image-to-video. Any reference media list selects multimodal generation. First/last frames cannot be combined with reference lists. Media can be a publicly reachable HTTP(S) URL or a Base64 media data URI. File sizes and durations are checked by the generation service.

Your account is charged by output duration. See pricing for CNY Token reference prices.

Response

Success response
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "xb_a1b2c3d4e5f6...",
    "creditsCharged": 165
  }
}

When the task succeeds, read the video URL from resultJson.resultUrls in the query response.

On this page