MarketSupport← Back to app

MiniMax H3

MiniMax H3 models are called through one unified, asynchronous job API. Start a task with POST /api/generate, then poll GET /api/generate/{taskId} until it finishes. This family exposes 3 endpoints.

Overview

Every endpoint shares the same envelope — only model and the input fields change. Run any from the Models Market playground.

Authentication

Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.

Authorization: Bearer <YOUR_API_KEY>

Create Task

POST
POST https://97ai.97claude.com/api/generate

Body: { "model": "<slug>", "input": { … } }

Response: { "taskId": "<id>", "state": "waiting" }

Query Result

GET
GET https://97ai.97claude.com/api/generate/<taskId>

Response: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }

Asynchronous
A 200 from Create Task only means the task was accepted — not finished. Poll this endpoint until state becomes success or fail. Failed tasks are not billed.

Endpoints

ModelTaskmodel slug
MiniMax H3Text to Videominimax-h3/text-to-video
MiniMax H3Image to Videominimax-h3/image-to-video
MiniMax H3Video to Videominimax-h3/reference-to-video

MiniMax H3 · Text to Video

POSTText to Videominimax-h3/text-to-video
input fields
promptstringrequired

Text prompt describing the desired video.

durationintegeroptional

Output video duration in seconds.

aspect_ratioenum<string>optional

Output video aspect ratio.

resolutionenum<string>optional

Output video resolution tier currently exposed on the relay.

seedintegeroptional

Random seed for reproducible generation.

Example
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3/text-to-video",
  "input": {
    "prompt": "A cinematic red panda surfing through neon rain at dusk.",
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "768p",
    "seed": 42
  }
}'

MiniMax H3 · Image to Video

POSTImage to Videominimax-h3/image-to-video
input fields
promptstringrequired

Text prompt describing the desired motion and style.

image_urlsarray<string>required

One or more input image URLs used to drive the video.

durationintegeroptional

Output video duration in seconds.

aspect_ratioenum<string>optional

Output video aspect ratio.

resolutionenum<string>optional

Output video resolution tier currently exposed on the relay.

seedintegeroptional

Random seed for reproducible generation.

Example
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3/image-to-video",
  "input": {
    "prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
    "image_urls": [
      "https://example.com/input.jpg"
    ],
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "768p",
    "seed": 42
  }
}'

MiniMax H3 · Video to Video

POSTVideo to Videominimax-h3/reference-to-video
input fields
promptstringrequired

Prompt describing the target video, style, motion, and atmosphere.

reference_imagearray<string>required

Reference image URLs for subject and style consistency.

videos_listarray<string>optional

Optional reference video URLs for motion and camera guidance.

audios_listarray<string>optional

Optional reference audio URLs for voice, music, or ambience guidance.

durationintegeroptional

Output video duration in seconds.

aspect_ratioenum<string>optional

Output video aspect ratio.

resolutionenum<string>optional

Output video resolution tier currently exposed on the relay.

seedintegeroptional

Random seed for reproducible generation.

Example
cURL
curl -X POST https://97ai.97claude.com/api/generate \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax-h3/reference-to-video",
  "input": {
    "prompt": "Restyle the source footage with richer lighting, cleaner motion, and a cinematic grade.",
    "reference_image": [
      "https://example.com/input.jpg"
    ],
    "videos_list": [
      "https://example.com/reference.mp4"
    ],
    "audios_list": [
      "https://example.com/reference.mp3"
    ],
    "duration": 5,
    "aspect_ratio": "16:9",
    "resolution": "768p",
    "seed": 42
  }
}'