Video

Generate video

Creates a video from a text prompt or source image using MiniMax, Luma, and other models.

post/videos/generations

Request

  • Base URL
    https://www.aimagicx.com/api/v1
  • Auth
    HTTP bearer

Query parameters

asyncboolean

Run generation asynchronously (recommended for video)

Request body

promptstring required

Text description of the video

modelstring
duration_secondsnumber
resolution'720p' | '1080p' | '4k'
fps30 | 60
aspect_ratio'16:9' | '9:16' | '1:1' | '4:3' | '3:4'
mode'text_to_video' | 'image_to_video' | 'video_to_video'
source_imagestring uri nullable

Image URL for image-to-video mode

source_videostring uri nullable

Video URL for video-to-video mode

negative_promptstring nullable
seedinteger nullable
prompt_optimizerboolean

Enhance prompt (MiniMax)

loopboolean

Create looping video (Luma)

Response

Successful response

OR

Changes

No recorded changes to this operation across all 1 revision of this API.