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
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.
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| Field | Type | Default | Allowed |
|---|---|---|---|
prompt promptGeneration prompt describing the scene, action and direction. | string | — | up to 15000 chars |
aspectRatio aspectRatio | string | 16:9 | 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive |
resolution resolution | string | 1080p | 1080p |
duration duration | number | 5 | 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 |
audioEnabled audioEnabled | boolean | true | boolean |
Start image startImageAsset input for the startImage slot. | string | — | image · asset, https, data |
End image endImageAsset input for the endImage slot. | string | — | image · asset, https, data |
Reference video referenceVideoAsset input for the referenceVideo slot. | string | — | video · asset, https, data |
Reference video 2 referenceVideo2Asset input for the referenceVideo2 slot. | string | — | video · asset, https, data |
Reference video 3 referenceVideo3Asset input for the referenceVideo3 slot. | string | — | video · asset, https, data |
Reference video 4 referenceVideo4Asset input for the referenceVideo4 slot. | string | — | video · asset, https, data |
Reference video 5 referenceVideo5Asset input for the referenceVideo5 slot. | string | — | video · asset, https, data |
Speech audio speechAudioAsset input for the speechAudio slot. | string | — | voiceover · asset, https, data |
Speech audio 2 speechAudio2Asset input for the speechAudio2 slot. | string | — | voiceover · asset, https, data |
Speech audio 3 speechAudio3Asset input for the speechAudio3 slot. | string | — | voiceover · asset, https, data |
Speech audio 4 speechAudio4Asset input for the speechAudio4 slot. | string | — | voiceover · asset, https, data |
Speech audio 5 speechAudio5Asset input for the speechAudio5 slot. | string | — | voiceover · asset, https, data |
Reference images referenceAssetUrisOptional 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. | array | — | image · up to 10 · asset, https, data |
providerOptions providerOptions | object | — | object |
promptGeneration prompt describing the scene, action and direction.
- Type
- string
- Default
- —
- Allowed
- up to 15000 chars
aspectRatio- Type
- string
- Default
- 16:9
- Allowed
- 21:9, 16:9, 4:3, 1:1, 3:4, 9:16, adaptive
resolution- Type
- string
- Default
- 1080p
- Allowed
- 1080p
duration- 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
audioEnabled- Type
- boolean
- Default
- true
- Allowed
- boolean
startImageAsset input for the startImage slot.
- Type
- string
- Default
- —
- Allowed
- image · asset, https, data
endImageAsset input for the endImage slot.
- Type
- string
- Default
- —
- Allowed
- image · asset, https, data
referenceVideoAsset input for the referenceVideo slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo2Asset input for the referenceVideo2 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo3Asset input for the referenceVideo3 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo4Asset input for the referenceVideo4 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
referenceVideo5Asset input for the referenceVideo5 slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
speechAudioAsset input for the speechAudio slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
speechAudio2Asset input for the speechAudio2 slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
speechAudio3Asset input for the speechAudio3 slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
speechAudio4Asset input for the speechAudio4 slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
speechAudio5Asset input for the speechAudio5 slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
referenceAssetUrisOptional 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
providerOptions- Type
- object
- Default
- —
- Allowed
- object
Cost
5.5 tokens/sThe variant is selected automatically from request fields, so you do not need to send it.
Capabilities
text_to_videoimage_to_videovideo_referencestartImage:imageendImage:imagereferenceVideo:videoreferenceVideo2:videoreferenceVideo3:videoreferenceVideo4:videoreferenceVideo5:videospeechAudio:voiceoverspeechAudio2:voiceoverspeechAudio3:voiceoverspeechAudio4:voiceoverspeechAudio5:voiceoverreferenceAssetUris:image[]<=10