- Text to video
- Multimodal reference
- Video editing
- Video extension
- First and last frames
- Query task
Create task
POST /v1/video/generationscURL
Request headers
string
required
Bearer authentication in the form
Bearer YOUR_API_KEY.string
default:"application/json"
required
Data exchange format.
Request body
string
required
AnyFast model ID. Use
seedance-2.5. For specific-content requests, select the Direct resource group and use seedance-2.5-nsfw.object[]
required
Input content. Text-to-video requires at least one text item.
string
required
Use
text for the prompt item.string
required
Prompt describing the subject, action, scene, visual style, camera movement, and audio intent.
boolean
default:true
Generate synchronized dialogue, sound effects, and background audio.
string
default:"720p"
Output resolution. Supported values:
480p, 720p, 1080p. The 1080p option uses 10-bit H.265/HEVC output.string
default:"adaptive"
Output ratio. Supported values:
21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive.integer
default:-1
Output duration. Use
-1 for an automatically selected duration or choose an integer from 4 through 30.object[]
Optional text-to-video tools. Set
tools[].type to web_search to let the model search current information before generation.Create response
200
string
Task ID used to query the result.
string
Task ID, identical to
id.string
Returned object type. For this endpoint,
video.string
AnyFast model ID used by the task.
string
Initial task status. A newly accepted task is
queued.integer
Initial task progress percentage.
integer
Creation time as a Unix timestamp in seconds.
Shared optional controls
These fields apply to every creation capability.string
Public HTTP(S) endpoint that receives a POST callback when the task reaches
SUCCESS or FAILURE. The callback body matches the task result returned by GET /v1/video/generations/{id}.Callback payload examples
- Success
- Failure
integer
default:172800
Maximum queued or running lifetime in seconds before the task expires.
integer
default:0
Task execution priority.
string
Stable end-user identifier used for safety tracing.
integer
default:-1
Random seed. Use
-1 to select a random seed.string
default:"default"
Task service tier.
string
default:"mp4"
Output video container format. Supported values:
mp4, mov. Use the exact field name output_format; out_format is not supported and may be ignored.boolean
default:false
Add an AI-generated watermark to the lower-right corner.
boolean
default:false
Return the generated video’s final frame as an image.
Input limits
Images
- Accepted inputs: public URL, Base64 data URI, or asset ID.
- Formats: JPEG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF.
- Width-to-height ratio: 0.4–2.5. Each side: 300–6,000 px. Each image must be smaller than 30 MB.
- Supply one image for first-frame generation, two for first-and-last-frame generation, or 1–30 reference images.
Videos
- Accepted inputs: public URL or asset ID. Containers: MP4 or MOV. Video codecs: H.264/AVC or H.265/HEVC. Audio codecs: AAC, MP3, and PCM for MOV.
- Input resolution: 480p or 720p. Frame rate: 24–60 FPS. Width-to-height ratio: 0.4–2.5. Each side: 300–6,000 px. Pixels per frame: 407,696–8,295,044. Maximum file size: 200 MB.
- Each video must be 2–30 seconds for non-editing tasks and 4–30 seconds for editing. Supply up to 10 reference videos with no more than 30 seconds total.
Audio
- Accepted inputs: public URL, Base64 data URI, or asset ID. Formats: WAV or MP3.
- Each clip must be 2–30 seconds and no larger than 15 MB. Supply up to 10 clips with no more than 30 seconds total.