MiniMax H3
MiniMax H3 モデルは統一された非同期ジョブ API で呼び出します。POST /api/generate でタスクを開始し、完了するまで GET /api/generate/{taskId} をポーリングします。このファミリーは 3 個のエンドポイントを提供します。
概要
すべてのエンドポイントは同じ外枠を共有し、変わるのは model と input フィールドだけです。モデルマーケットの playground から任意に実行できます。
認証
/api-keys で API キーを作成し、Bearer トークンとして送信します。ログイン中のブラウザからのリクエストはセッション cookie 経由でも動作します。
Authorization: Bearer <YOUR_API_KEY>タスクの作成
POST https://api.lithovas.com/api/generateボディ:{ "model": "<slug>", "input": { … } }
レスポンス:{ "taskId": "<id>", "state": "waiting" }
結果の照会
GET https://api.lithovas.com/api/generate/<taskId>レスポンス:{ "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state が success または fail になるまでこのエンドポイントをポーリングしてください。失敗したタスクは課金されません。エンドポイント
| モデル | タスク | model slug |
|---|---|---|
| MiniMax H3 | Text to Video | minimax-h3/text-to-video |
| MiniMax H3 | Image to Video | minimax-h3/image-to-video |
| MiniMax H3 | Video to Video | minimax-h3/reference-to-video |
MiniMax H3 · Text to Video
minimax-h3/text-to-videopromptstring必須Text prompt describing the desired video.
durationinteger任意Output video duration in seconds.
aspect_ratioenum<string>任意Output video aspect ratio.
resolutionenum<string>任意Output video resolution tier currently exposed on the relay.
seedinteger任意Random seed for reproducible generation.
curl -X POST https://api.lithovas.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
minimax-h3/image-to-videopromptstring必須Text prompt describing the desired motion and style.
image_urlsarray<string>必須One or more input image URLs used to drive the video.
durationinteger任意Output video duration in seconds.
aspect_ratioenum<string>任意Output video aspect ratio.
resolutionenum<string>任意Output video resolution tier currently exposed on the relay.
seedinteger任意Random seed for reproducible generation.
curl -X POST https://api.lithovas.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
minimax-h3/reference-to-videopromptstring必須Prompt describing the target video, style, motion, and atmosphere.
reference_imagearray<string>必須Reference image URLs for subject and style consistency.
videos_listarray<string>任意Optional reference video URLs for motion and camera guidance.
audios_listarray<string>任意Optional reference audio URLs for voice, music, or ambience guidance.
durationinteger任意Output video duration in seconds.
aspect_ratioenum<string>任意Output video aspect ratio.
resolutionenum<string>任意Output video resolution tier currently exposed on the relay.
seedinteger任意Random seed for reproducible generation.
curl -X POST https://api.lithovas.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
}
}'