Skip to main content
POST
The model name of Magi-2 in AIReiter is magi_2, which is a video generation model from Sand AI. The output resolution is fixed at 1080p, synchronized audio is generated with the video by default, and it supports durations of 4-30 seconds.

Authorizations

string
required
All endpoints require authentication using a Bearer Token.Visit the API Key Management Page to get your API Key, and add it to the request headers:

Body

string
required
Model name, fixed to:
  • magi_2
object
required
Model parameters object.
string
required
Initiator task ID.Generated by the caller and guaranteed to be unique. Supports letters, numbers, underscores, and hyphens, with a length of 1-64 characters. Use this ID later to query the task status and results.

Response

string
Initiator task ID, used to query the result.
string
Initial status, usually "pending".
number
Estimated credits consumed.
string
Creation time in ISO 8601 format.

Query Task

Magi-2 uses asynchronous processing. After a successful submission, use the same out_task_id to query the task:
Once the task is completed, the output array in the response will contain the generated video URLs. For the complete list of fields, see Get Task Status.

Request Examples

Mode Rules

Please ensure all asset URLs are directly accessible over the public internet. Tasks are processed asynchronously; do not use the HTTP connection that submits the request to wait for the final video.