MAGI-2 API
Generate 4–30 second 1080p videos with synchronized sound from text, first and last frames, or image, video and audio references.
- Text to video
- Image to video
Starting at
$0.114
per second of output
MAGI-2 playground
Input
Describe the scene, motion and sound. Required in text and reference modes.
Public HTTPS URL of the first frame. The video follows its aspect ratio. Cannot be combined with reference media.
Public HTTPS URL of the last frame. Requires firstFrameImage.
Public HTTPS URLs of up to 10 reference images.
Public HTTPS URLs of up to 5 reference videos. Each is 2–30 seconds, with at most 30 seconds in total.
Public HTTPS URLs of up to 5 audio references. Each is 2–30 seconds, with at most 30 seconds in total.
Runs are charged to your balance.
Output

Output will appear here.
Check the price and run the model. Your result will appear here; browser use does not need an API key.
MAGI-2 API pricing
| Option | Price per second |
|---|---|
| 1080p | $0.114 |
Quick start
Full API reference →1curl -X POST https://api.api-stock.com/api/v1/generation/create \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "magi-2",6 "input": {7 "duration": 5,8 "resolution": "1080p",9 "generateAudio": true10 }11 }'
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | No | — | Describe the scene, motion and sound. Required in text and reference modes. |
duration | number | No | 5 | Clip length in whole seconds. |
resolution | string | No | 1080p | Output resolution.One of: 1080p |
aspectRatio | string | No | — | Output aspect ratio for text and reference modes. Defaults to 16:9. Omit it when using firstFrameImage.One of: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 |
generateAudio | boolean | No | true | Generate a synchronized soundtrack. This setting does not change the price. |
firstFrameImage | string | No | — | Public HTTPS URL of the first frame. The video follows its aspect ratio. Cannot be combined with reference media. |
lastFrameImage | string | No | — | Public HTTPS URL of the last frame. Requires firstFrameImage. |
imageUrls | string[] | No | — | Public HTTPS URLs of up to 10 reference images. |
videoUrls | string[] | No | — | Public HTTPS URLs of up to 5 reference videos. Each is 2–30 seconds, with at most 30 seconds in total. |
audioUrls | string[] | No | — | Public HTTPS URLs of up to 5 audio references. Each is 2–30 seconds, with at most 30 seconds in total. |
Frequently asked questions
How much does MAGI-2 cost?
MAGI-2 starts at $0.114 per second of output on API Stock. The final charge depends on the selected settings.
When was MAGI-2 released?
MAGI-2 was released on November 24, 2026 and is available through API Stock.
How do I get an API key for MAGI-2?
Create an account and API key on API Stock, then fund your balance. The same key works with MAGI-2 and other catalog models.
How do I call the MAGI-2 API?
POST to https://api.api-stock.com/api/v1/generation/create with your API key and model "magi-2". Use the returned task id for polling or receive a webhook.
What input parameters does MAGI-2 accept?
MAGI-2 accepts 10 input parameters. See their types, defaults and allowed values above.
What happens if a MAGI-2 request fails?
API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.
Can I use MAGI-2 with the same API key as other models?
Yes. Use your API Stock API key and balance for MAGI-2 and other catalog models.
Other Video models
- Wan 2.7 VideoAlibaba$0.086/ second
- Kling 3.0Kling$0.091/ second
- Seedance 2.5 Flash SpicyByteDance$0.094/ second
- Veo 3.1 LiteGoogle$0.1/ generation
- Kling 4.0 FlashKling$0.132/ second
- Seedance 2.5ByteDance$0.132/ second
- Seedance 2.5 SpicyByteDance$0.134/ second
- HeyGen Avatar 6HeyGen$0.15/ second
- Kling 4.0Kling$0.189/ second
Read next
Guides
- Text to videoWhich text-to-video model fits the shot you have in mind, prompts that actually work, and the full API run from create to finished file.8 min read
- Image to videoTurning a still into a shot — which model to animate it with, first and last frame control, motion transfer, and the prompts that keep the subject intact.7 min read
- Give your coding agent image, video and music toolsConnect Claude Code, Codex, OpenCode or OpenClaw to API Stock and use generated media in a page, app or content draft.3 min read

