Create a video task
Queues a Seedance render on your account and answers right away with a `task_id`; the video itself is not ready yet. Credits for the clip are held from this moment. Follow progress with `GET /v1/tasks/{task_id}`. There is no idempotency key, so resending a request that already succeeded starts a second video.
/v1/videos/generationsA secret key from Settings → API keys, sent as a Bearer token. Call the API with it from your own server only.
In: header
Which Seedance model renders the clip. The Models page lists the inputs, lengths and resolutions of each one.
"seedance-1.0-pro-fast" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5"What should happen on screen. Up to 2,000 characters for Seedance 1.0 Pro Fast, and 10,000 for the 2.0 family and 2.5.
1 <= lengthClip length in seconds. Ranges differ by model, from 2 to 12 on Seedance 1.0 Pro Fast to 4 to 30 on Seedance 2.5. Without it the task is priced as 5 seconds.
2 <= value <= 30Output resolution. Seedance 2.0 Mini stops at 720p. 1080p needs a Pro or Premium plan, or a credit pack on an account without a subscription. When omitted, the model default applies.
"480p" | "720p" | "1080p"Frame shape of the clip. adaptive lets the model choose, usually from the input image, and works on every model except Seedance 1.0 Pro Fast.
"16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive"Render a soundtrack with the picture. Applies to the Seedance 2.0 family and 2.5, where it is on unless you send false.
HTTPS links to JPEG, PNG or WebP files: at most 1 for Seedance 1.0 Pro Fast, 9 for the 2.0 family and 30 for 2.5. On Seedance 2.5 every image needs 300 to 6000 px per side, a width to height ratio between 0.4 and 2.5, and a size of 30 MB or less. With no video or audio attached, one image is used as the first frame, two as first and last frame, and three or more as references.
HTTPS links to MP4 or MOV reference clips: one for the Seedance 2.0 family, up to 10 for 2.5. On Seedance 2.5 each clip lasts 2 to 30 seconds (30 seconds across all clips), runs at 24 to 60 FPS, weighs 200 MB or less, measures 300 to 6000 px per side at a 0.4 to 2.5 aspect ratio, and has 409,600 to 8,295,044 pixels per frame.
HTTPS links to MP3 or WAV reference audio, Seedance 2.5 only. Up to 10 files lasting 2 to 30 seconds each, 30 seconds combined, at 15 MB or less per file.
File container for Seedance 2.5 output: mp4 unless you ask for mov.
"mp4" | "mov"Seedance 2.5 only. The optional content filter stays on by default. false switches it off and raises the credit price by 10%; when the request cannot be served without the filter, it fails with 422 before any credits are held.
Seedance 2.5 text to video only. Lets the model search the web to ground the prompt. On by default for prompt-only requests; send false to turn it off. true combined with any media URL returns 422.
Use one or two images as reference material (a character, a product, a style) rather than as first and last frame. Seedance 2.0 family and 2.5 only, and at least one media URL must be present.
Response Body
curl -X POST "https://magi2ai.io/v1/videos/generations" \ -H "Authorization: Bearer sk_sd_example" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.0-fast", "prompt": "Morning fog lifting off a mountain lake, slow aerial glide", "duration": 5, "quality": "720p" }'{
"task_id": "Vq3x8LmZ2tR9bK_wP0sYd",
"status": "pending",
"created_at": "2026-10-20T09:12:04.000Z"
}{
"error": {
"code": "invalid_request",
"message": "Request body must contain valid JSON.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid, expired, or revoked.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "insufficient_credits",
"message": "This request requires 31 credits, but only 12 are available.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "plan_upgrade_required",
"message": "Model Seedance 2.0 requires Lite plan or above",
"param": "model",
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "invalid_request",
"message": "Content-Type must be application/json.",
"param": "content-type",
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "invalid_request",
"message": "Unsupported model.",
"param": "model",
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "API rate limit exceeded. Try again later.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "internal_error",
"message": "The request could not be completed.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "provider_error",
"message": "The video provider could not start this task. Try again later.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}{
"error": {
"code": "service_unavailable",
"message": "Video generation is temporarily unavailable.",
"param": null,
"request_id": "req_2YgM6pg5oM2WkKpQ"
}
}Models and inputs
The five Seedance model IDs the Magi2 AI API accepts, what each one takes as input, which lengths and resolutions it renders, and how your media decides the generation mode.
Get a video task GET
Reads one Seedance task on your account. Keep polling while `status` is `pending` or `processing`, waiting a little longer between calls as the render goes on. Once the task is `completed`, `output.video_url` links to the file that Magi2 AI stored for you.