Generate a MAGI-2 video
generate_videoStart a MAGI-2 video generation (1080p, up to 30 s, optional native audio). Costs 20 Credits per second from the user's account. Rendering takes about 10-20 minutes: this returns immediately with a video id; call get_video every few minutes until status is "succeeded", then share video_url. Modes: text-to-video (prompt only), image-to-video (first_frame + optional last_frame), reference-to-video (images/videos/audios, referenced in the prompt as @Image1, @Video1, @Audio1). Write prompts in English: subject, action, camera move, and sound; put spoken lines in quotes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| audios | No | ||
| images | No | ||
| prompt | Yes | ||
| videos | No | ||
| duration | No | Seconds of video. | |
| last_frame | No | Public https:// URL of the file, or an upload id (flow_input_…). | |
| first_frame | No | Public https:// URL of the file, or an upload id (flow_input_…). | |
| aspect_ratio | No | 16:9 | |
| generate_audio | No |