MiniMax-H3-API zur Videogenerierung
Asynchrone MiniMax-H3-Videos über APIMaster erstellen, Status abfragen und MP4 herunterladen.
MiniMax-H3-Videogenerierung
MiniMax-H3 kann über die OpenAI-kompatible Video-API von APIMaster für Text-zu-Video verwendet werden.
Base URL:
https://apimaster.ai/v1isthttps://apimaster.ai/v1. Verwenden SiePOST https://apimaster.ai/v1/video/generations.
Aufgabe erstellen
POST https://apimaster.ai/v1/video/generations
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
model |
string | ja | MiniMax-H3 |
prompt |
string | ja | Beschreibung des Videos |
duration |
integer | nein | 4–15 Sekunden, Standard 4 |
size |
string | nein | 768P oder 2K, Standard 768P |
ratio |
string | nein | Seitenverhältnis, Standard 16:9 |
curl -s "https://apimaster.ai/v1/video/generations" \
-H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"model":"MiniMax-H3","prompt":"A calm ocean at sunrise, cinematic wide shot","duration":4,"size":"768P","ratio":"16:9"}'
Die Antwort enthält sofort id und task_id, mit dem Status queued.
Status abfragen
GET https://apimaster.ai/v1/videos/{task_id}
Die Statuswerte sind queued, running, completed und failed.
curl -s "https://apimaster.ai/v1/videos/task_xxxxxxxx" \
-H "Authorization: Bearer YOUR_API_KEY"
Nach der Erstellung 10–20 Sekunden warten und anschließend alle 3–5 Sekunden abfragen.
MP4 herunterladen
curl -L "https://apimaster.ai/v1/videos/task_xxxxxxxx/content" \
-H "Authorization: Bearer YOUR_API_KEY" -o output.mp4
Laden Sie das Video nach completed zeitnah herunter. duration unterstützt 4–15 Sekunden; size unterstützt 768P und 2K.