青峰智影青峰智影
API ReferenceMirava
AI Model APIVideosMiniMax-H3 Format

Text to Video

Generate video with MiniMax-H3 using a text prompt only.

Endpoint

POST http://103.36.63.156:3000/v1/videos
Authorization: Bearer {api_key}
Content-Type: application/json

Request Example

curl -X POST "http://103.36.63.156:3000/v1/videos" \
  -H "Authorization: Bearer sk-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax_h3",
    "prompt": "Cyberpunk city at night, neon lights reflecting on rain-soaked streets, slow camera push-in",
    "size": "1920x1080",
    "duration": 6,
    "aspect_ratio": "16:9"
  }'

Basic Parameters

ParameterTypeRequiredDescription
modelstringYesFixed to minimax_h3
promptstringYesVideo content prompt
sizestringNoOutput size, formatted as widthxheight
aspect_ratiostringNoAspect ratio
durationnumberNoVideo duration (seconds), 5–15
megapixelsnumberNoTarget megapixel count
callback_urlstringNoCallback URL invoked on task completion

Framing and Clarity

Framing and clarity can be controlled in three ways: size, aspect_ratio, and megapixels.

MethodDescription
sizeSpecify pixel dimensions directly; highest priority
aspect_ratioSpecify a ratio; the server derives a suitable size
megapixelsSpecify the megapixel count, used together with a ratio

Supported Aspect Ratios

adaptive / 21:9 / 16:9 / 4:3 / 1:1 / 3:4 / 9:16

Standard Pixel Sizes

RatioSize Examples
16:91280x720 / 1920x1080
9:16720x1280 / 1080x1920
1:11024x1024
4:31024x768
3:4768x1024
21:91680x720

When neither size nor aspect_ratio is provided, the server uses adaptive mode and determines the framing from the prompt itself.

Response

{
  "task_id": "xxxxxxxxxxxxxxxx",
  "status": "queued"
}

Once you have the task_id, poll the result via the Query Task and Download endpoint.

How is this guide?