MarktSupport← Zurück zur App

MiniMax H3

MiniMax H3-Modelle werden über eine einheitliche, asynchrone Job-API aufgerufen. Starte einen Task mit POST /api/generate und frage dann GET /api/generate/{taskId} ab, bis er fertig ist. Diese Familie stellt 3 Endpunkte bereit.

Überblick

Jeder Endpunkt teilt sich dieselbe Hülle — nur model und die input-Felder ändern sich. Führe einen beliebigen im Playground des Modell-Markts aus.

Authentifizierung

Erstelle einen API-Schlüssel unter /api-keys und sende ihn als Bearer-Token. Anfragen aus dem Browser bei angemeldeter Sitzung funktionieren auch über das Session-Cookie.

Authorization: Bearer <YOUR_API_KEY>

Task erstellen

POST
POST https://api.lithovas.com/api/generate

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

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

Ergebnis abfragen

GET
GET https://api.lithovas.com/api/generate/<taskId>

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

Asynchron
Ein 200 von „Task erstellen“ bedeutet nur, dass der Task angenommen wurde — nicht, dass er fertig ist. Frage diesen Endpunkt ab, bis state zu success oder fail wird. Fehlgeschlagene Tasks werden nicht berechnet.

Endpunkte

ModellTaskmodel 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-Felder
promptstringerforderlich

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.

Beispiel
cURL
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

POSTImage to Videominimax-h3/image-to-video
input-Felder
promptstringerforderlich

Text prompt describing the desired motion and style.

image_urlsarray<string>erforderlich

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.

Beispiel
cURL
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

POSTVideo to Videominimax-h3/reference-to-video
input-Felder
promptstringerforderlich

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

reference_imagearray<string>erforderlich

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.

Beispiel
cURL
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
  }
}'