MAGI-2

For scenes with dialogue and synchronized sound, animation from images, or video guided by character, motion or audio references.

Cost

5.5 tokens/s

VideoProvider: Sand-ai

Try MAGI-2 in Givon AI

Open a working project for regular creation, or use Playground to inspect the model parameters.

Use through API

Request fields, constraints, and ready-to-use examples for developers. The user workflow starts above.

Run generation
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"video","model":"magi-2","input":{"prompt":"cinematic drone shot over a city at night","aspectRatio":"16:9","resolution":"1080p","duration":5,"audioEnabled":true,"referenceAssetUris":["asset://asset_..."]}}'

Input fields

* required
promptprompt

Generation prompt describing the scene, action and direction.

Type
string
Default
—
Allowed
up to 15000 chars
aspectRatioaspectRatio
Type
string
Default
16:9
Allowed
21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive
resolutionresolution
Type
string
Default
1080p
Allowed
1080p
durationduration
Type
number
Default
5
Allowed
4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
audioEnabledaudioEnabled
Type
boolean
Default
true
Allowed
boolean
Start imagestartImage

Asset input for the startImage slot.

Type
string
Default
—
Allowed
image · asset, https, data
End imageendImage

Asset input for the endImage slot.

Type
string
Default
—
Allowed
image · asset, https, data
Reference videoreferenceVideo

Asset input for the referenceVideo slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 2referenceVideo2

Asset input for the referenceVideo2 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 3referenceVideo3

Asset input for the referenceVideo3 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 4referenceVideo4

Asset input for the referenceVideo4 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Reference video 5referenceVideo5

Asset input for the referenceVideo5 slot.

Type
string
Default
—
Allowed
video · asset, https, data
Speech audiospeechAudio

Asset input for the speechAudio slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Speech audio 2speechAudio2

Asset input for the speechAudio2 slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Speech audio 3speechAudio3

Asset input for the speechAudio3 slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Speech audio 4speechAudio4

Asset input for the speechAudio4 slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Speech audio 5speechAudio5

Asset input for the speechAudio5 slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
Reference imagesreferenceAssetUris

Optional reference assets as asset:// URIs, HTTPS URLs, or data URIs. The item limit applies to physical references after repeated owned asset identities and identities already bound to video slots are excluded. URL entries remain distinct; every supplied item is validated.

Type
array
Default
—
Allowed
image · up to 10 · asset, https, data
providerOptionsproviderOptions
Type
object
Default
—
Allowed
object

Cost

5.5 tokens/s
1080pdefault5.5 tk/s
1080p5.5 tk/s
1080p5.5 tk/s

The variant is selected automatically from request fields, so you do not need to send it.

Capabilities

Modestext_to_videoimage_to_videovideo_reference
Asset slotsstartImage:imageendImage:imagereferenceVideo:videoreferenceVideo2:videoreferenceVideo3:videoreferenceVideo4:videoreferenceVideo5:videospeechAudio:voiceoverspeechAudio2:voiceoverspeechAudio3:voiceoverspeechAudio4:voiceoverspeechAudio5:voiceoverreferenceAssetUris:image[]<=10
Get API key

Where to use this model