Hailuo Video-Generierung
Generiere KI-Videos über die Hailuo (MiniMax)-API von AceDataCloud.
Einrichtung: Siehe Authentifizierung für die Token-Einrichtung.
Schnellstart
curl -X POST https://api.acedata.cloud/hailuo/videos \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action": "generate", "prompt": "a dolphin jumping through ocean waves at golden hour", "model": "minimax-t2v"}'
Asynchron: Siehe asynchrone Aufgabenabfrage. Abfrage via
POST /hailuo/tasksmit{"id": "..."}.
Modelle
| Modell | Typ | Am besten geeignet für |
|---|---|---|
minimax-t2v | Text-zu-Video | Video aus Textbeschreibung erstellen |
minimax-i2v | Bild-zu-Video | Ein Standbild animieren |
minimax-i2v-director | Bild-zu-Video (Regisseur) | Präzise Steuerung der Animation aus einem Bild |
Workflows
1. Text-zu-Video
POST /hailuo/videos
{
"action": "generate",
"prompt": "a time-lapse of flowers blooming in a meadow",
"model": "minimax-t2v"
}
2. Bild-zu-Video
Animiert ein Standbild zu einem Videoclip.
POST /hailuo/videos
{
"action": "generate",
"prompt": "gentle wind blows through the scene",
"model": "minimax-i2v",
"first_image_url": "https://example.com/landscape.jpg"
}
3. Bild-zu-Video (Regisseur-Modus)
Präzisere Kontrolle über die Animation.
POST /hailuo/videos
{
"action": "generate",
"prompt": "camera slowly zooms in while leaves fall gently",
"model": "minimax-i2v-director",
"first_image_url": "https://example.com/scene.jpg"
}
Parameter
| Parameter | Erforderlich | Werte | Beschreibung |
|---|---|---|---|
action | Ja | "generate" | Aktionsart |
prompt | Ja | string | Videobeschreibung |
model | Ja | "minimax-t2v", "minimax-i2v", "minimax-i2v-director" | Modell |
first_image_url | Für i2v | string | URL des Quellbilds (erforderlich für Bild-zu-Video) |
callback_url | Nein | string | Asynchrone Callback-URL |
Fallstricke
first_image_urlist erforderlich für die Modelleminimax-i2vundminimax-i2v-director- Der Regisseur-Modus (
minimax-i2v-director) bietet feinere Kontrolle über Kamera/Bewegung als das Standard-i2v - Das Feld
actionunterstützt derzeit nur"generate"— keine Verlängerung oder Bearbeitung - Festpreis pro Generierung, unabhängig vom Modell