More modelsWavespeed aiMagi 1 24b

Generate video with wavespeed-ai/magi-1-24b

Generates a video using the wavespeed-ai/magi-1-24b model.

POST
/api/v1/model/generateVideo
AuthorizationBearer <token>

API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.

In: header

modelstring

model name

seed?integer

The random seed to use for the generation.

image?string

URL of an input image to represent the first frame of the video. If the input image does not match the chosen aspect ratio, it is resized and center cropped.

promptstring

The text prompt to guide video generation.

num_frames?integer

Number of frames to generate. Must be between 81 to 100 (inclusive). If the number of frames is greater than 81, the video will be generated with 1.25x more billing units.

Default96
Range96 <= value <= 192
resolution?string

Resolution of the generated video (480p or 720p). 480p is 0.5 billing units, and 720p is 1 billing unit.

Value in"480p" | "720p"
aspect_ratio?string

Aspect ratio of the generated video. If 'auto', the aspect ratio will be determined automatically based on the input image.

Value in"auto" | "16:9" | "9:16" | "1:1"
frames_per_second?integer

Frames per second of the generated video. Must be between 5 to 30.

Default24
Range5 <= value <= 30
enable_safety_checker?boolean

If set to true, the safety checker will be enabled.

Defaulttrue

Response Body

curl -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" \  -H "Content-Type: application/json" \  -d '{    "model": "wavespeed-ai/magi-1-24b",    "prompt": "In front of the pyramid under the setting sun, an African queen slowly walked out of the temple. She wore golden armor and her eyes were firm. The wind brought dust and cape. She slowly walked towards the throne. The background music was solemn and magnificent, as if it heralded the awakening and revival of a kingdom."  }'
{
  "id": "string",
  "urls": {},
  "model": "string",
  "status": "string",
  "outputs": [
    "string"
  ],
  "created_at": "2019-08-24T14:15:22Z",
  "has_nsfw_contents": [
    true
  ]
}