MAGI-2

Sand AI's MAGI-2 on the Kinovi API — native 1080p text-to-video, image-to-video (first/last frame), and multimodal reference-to-video, 4–30 s with synced audio.

Model ID
magi-2/text-to-video
Type
Video
Provider
Sand AI
From
$0.0800 / s

Models in this series

MAGI-2 ships as three faces, all outputting native 1080p video at a single flat per-second price.

Model IDModeInputsModel page
magi-2/text-to-videoText to videoPrompt onlyMAGI-2 Text to Video
magi-2/image-to-videoImage to video1 image (first frame) or 2 images (first + last frame) in imageUrls + promptMAGI-2 Image to Video
magi-2/reference-to-videoReference to videoUp to 10 images (imageUrls), 5 videos (videoUrls), and 5 audio clips (audioUrls) + promptMAGI-2 Reference to Video

Quickstart

Two calls: submit a task with createTask, then poll recordInfo with the returned taskId until status is success or fail.

Every request carries Authorization: Bearer <yourApiKey>. Create and manage keys at kinovi.ai/api-keys; see the API reference for rate limits and error codes.

Submit a task

POST https://kinovi.ai/api/v1/jobs/createTask

{
  "model": "magi-2/text-to-video",
  "inputs": {
    "prompt": "A slow aerial glide over terraced misty mountain rice paddies at sunrise, soft golden clouds drifting between peaks.",
    "aspectRatio": "16:9",
    "duration": 5,
    "generateAudio": true
  }
}

Response 200 OK — the task is queued and credits are reserved. Use taskId to poll for the result.

{
  "taskId": "task_01j9examplemagi200001"
}

Error responses

HTTPBodyWhen
400{ "message": "Invalid inputs for model", "errors": [ … ] }Invalid face combination (e.g. imageUrls on text-to-video, >2 images or 21:9 on image-to-video, or duration outside 4–30). Nothing is charged.
401{ "message": "Invalid API Key" }Missing or wrong Authorization header.
402{ "message": "Insufficient credits", "required": 86, "available": 0 }Not enough credits for this duration.
429{ "message": "Concurrency limit reached (…)", "limit": 5, "current": 5 }Too many tasks in progress; wait for one to finish.

Query the result

GET https://kinovi.ai/api/v1/jobs/recordInfo?taskId=task_…

Poll every few seconds until status is success or fail.

statusMeaning
waitingQueued, not started yet
generatingRunning
successDone — read output[].url
failFailed — see error.code / error.message; credits are refunded

Parameters

Send these inside the createTask body. model and inputs.prompt are required on all faces. There is no resolution parameter — MAGI-2 always renders at 1080p.

Reference media fields take any publicly reachable URL — host the files yourself, or upload them to Kinovi first with POST /api/v1/uploads and pass the returned url (see Uploading Assets).

FieldTypeDefaultApplies toDescription
modelstringrequiredAllmagi-2/text-to-video · magi-2/image-to-video · magi-2/reference-to-video.
inputs.promptstringrequiredAllScene, subject, and motion description. Max 15,000 characters.
inputs.durationinteger5AllClip length in whole seconds, 4 to 30.
inputs.aspectRatiostring16:9 (T2V, Ref)AllT2V & Ref: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 21:9. I2V: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 (21:9 rejected; single-frame I2V follows the first frame's ratio).
inputs.generateAudiobooleantrueAllGenerate synced audio. Does not change price.
inputs.imageUrlsstring[]–I2V (required), RefI2V: 1 image (first frame) or 2 images (first + last frame). Ref: up to 10 reference images. imageUrl / uploadedUrls accepted as mutually exclusive aliases. Your own hosted URLs or Kinovi uploads.
inputs.videoUrlsstring[]–Ref onlyUp to 5 reference videos, each 2–30 s (combined footage over 30 s is trimmed upstream). Your own hosted URLs or Kinovi uploads.
inputs.audioUrlsstring[]–Ref onlyUp to 5 reference audio clips (MP3 / WAV), each 2–30 s (combined audio over 30 s is trimmed upstream). Your own hosted URLs or Kinovi uploads.
callBackUrlstring–AllOptional webhook called when the task finishes.

Full request (magi-2/reference-to-video)

{
  "model": "magi-2/reference-to-video",
  "inputs": {
    "prompt": "The character from the reference image walks across the lantern-lit street, matching the pacing of the reference clip.",
    "imageUrls": [
      "https://static.kinovi.ai/generated-images/task_ff01ii3zvib7ndbx8negnh6q-0.png"
    ],
    "videoUrls": [
      "https://static.kinovi.ai/videos/seedance_video_1775631198994_17cd129c.mp4"
    ],
    "audioUrls": [],
    "aspectRatio": "16:9",
    "duration": 5,
    "generateAudio": true
  },
  "callBackUrl": "https://example.com/hooks/kinovi"
}

Pricing

All three MAGI-2 faces share a single native 1080p per-second rate. generateAudio and reference media do not change the rate. Live prices: Text to Video · Image to Video · Reference to Video.

1080p
per second$0.0800 / s

duration × the rate is charged at submit; failed tasks are refunded in full.

Response

Result fields

{
  "taskId": "task_01j9examplemagi200001",
  "model": "magi-2/text-to-video",
  "status": "success",
  "creditsUsed": 86.21,
  "output": [
    {
      "url": "https://static.kinovi.ai/videos/magi2_example.mp4",
      "width": 1920,
      "height": 1080,
      "mediaType": "video/mp4"
    }
  ],
  "error": null,
  "createTime": 1790090613532,
  "completeTime": 1790090821440
}

Examples

Text to video (magi-2/text-to-video)

curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "magi-2/text-to-video",
    "inputs": {
      "prompt": "A wooden sailboat glides across glassy alpine water at sunset, golden reflections rippling on the surface.",
      "aspectRatio": "16:9",
      "duration": 5,
      "generateAudio": true
    }
  }'

Image to video (magi-2/image-to-video)

curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "magi-2/image-to-video",
    "inputs": {
      "prompt": "Smooth camera orbit around the coffee cup as steam curls upward.",
      "imageUrls": [
        "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-0.png",
        "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-1.png"
      ],
      "aspectRatio": "16:9",
      "duration": 5,
      "generateAudio": true
    }
  }'

FAQ

Why is there no resolution parameter on MAGI-2?

MAGI-2 always outputs native 1080p video across all three faces at $0.0800 / s.

Does magi-2/image-to-video support 21:9?

No. 21:9 is supported on magi-2/text-to-video and magi-2/reference-to-video, but rejected on magi-2/image-to-video.

What happens if my reference videos or audio exceed 30 seconds combined?

The upstream service trims combined reference footage or audio past 30 seconds automatically rather than failing validation.