Video
happyhorse-1.1-t2v API
Verwenden Sie die genaue happyhorse-1.1-t2v-Modell-ID über das asynchrone Videorouting von Modelflare.
Verwenden Sie die genaue Modell-ID happyhorse-1.1-t2v. Das Modellfeld muss genau mit dieser Seite übereinstimmen.
Parameter: duration=5resolution=1080pratio=16:9
Prompt: One continuous take, no cuts. An arcade after closing, cabinets still on, carpet glowing under blacklight. A figure in a holographic windbreaker slaps the side of one cabinet and its picture comes off the screen: the pixels lift as solid coloured tiles, swarm out across the aisle and pull the pictures off every other machine with them, until the whole room is a moving cloud of cyan and hot pink squares. The camera tracks sideways down the aisle and turns into the swarm as it builds. One hard cyan key from the nearest screen, deep violet ambient. Real weight and inertia, each tile catching light separately, no text.
{ "model": "happyhorse-1.1-t2v", "prompt": "One continuous take, no cuts. An arcade after closing, cabinets still on, carpet glowing under blacklight. A figure in a holographic windbreaker slaps the side of one cabinet and its picture comes off the screen: the pixels lift as solid coloured tiles, swarm out across the aisle and pull the pictures off every other machine with them, until the whole room is a moving cloud of cyan and hot pink squares. The camera tracks sideways down the aisle and turns into the swarm as it builds. One hard cyan key from the nearest screen, deep violet ambient. Real weight and inertia, each tile catching light separately, no text.", "seconds": "5", "duration": 5, "resolution": "1080p", "ratio": "16:9", "aspect_ratio": "16:9"}Authentifizierung und Endpunkt
Abschnitt betitelt „Authentifizierung und Endpunkt“Verwenden Sie einen Modelflare-API-Schlüssel mit https://modelflare.dev/v1. Der Gateway-Einstiegspunkt ist POST /v1/videos.
Authorization: Bearer YOUR_MODELFLARE_API_KEYErstellen Sie eine Aufgabe
Abschnitt betitelt „Erstellen Sie eine Aufgabe“curl https://modelflare.dev/v1/videos \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "happyhorse-1.1-t2v", "input": {"prompt": "A white cat runs through a neon-lit street in the rain, cinematic tracking shot"}, "parameters": {"resolution": "1080P", "ratio": "16:9", "duration": 5, "watermark": false} }'Umfrage und Download
Abschnitt betitelt „Umfrage und Download“Speichern Sie die Aufgaben-ID. Abfrage GET /v1/videos/{task_id} und Download mit GET /v1/videos/{task_id}/content. Ergebnis-URLs können ablaufen. Übertragen Sie die Datei daher umgehend.
curl https://modelflare.dev/v1/videos/TASK_ID \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"Notizen anfordern
Abschnitt betitelt „Notizen anfordern“HappyHorse verwendet input.prompt; Wählen Sie die input.media-Form, die der Modell-ID t2v, i2v oder r2v entspricht.
Parameter anfordern
Abschnitt betitelt „Parameter anfordern“HappyHorse T2V verwendet input.prompt, um ein Video zu generieren.
| Feld | Erforderlich | Notizen |
|---|---|---|
model |
Ja | happyhorse-1.1-t2v |
input.prompt |
Ja | Textbeschreibung oder Referenzanweisungen, bis zu 5.000 nicht-chinesische oder 2.500 chinesische Zeichen |
input.media[] |
Nein | — |
parameters.resolution |
Nein | 720P / 1080P, Standard 1080P |
parameters.ratio |
Nein | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 4:5 / 5:4 / 9:21 / 21:9, Standard 16:9 |
parameters.duration |
Nein | 3–15 Sekunden, Standard 5 |
parameters.watermark |
Nein | Ob das HappyHorse-Wasserzeichen hinzugefügt werden soll |
parameters.seed |
Nein | Optionaler Startwert von 0 bis 2.147.483.647 |
Eingabe- und Ausgabegrenzen
Abschnitt betitelt „Eingabe- und Ausgabegrenzen“T2V benötigt nur input.prompt; Eingabeaufforderungen sind auf 5.000 nicht-chinesische oder 2.500 chinesische Zeichen begrenzt, die Ausgabe erfolgt in 720P oder 1080P mit neun Verhältniswerten und die Dauer beträgt 3–15 Sekunden.
Fehler und fehlgeschlagene Aufgaben
Abschnitt betitelt „Fehler und fehlgeschlagene Aufgaben“Ungültige Modellparameter geben ein 4xx mit einer Anforderungs-ID zurück. Eine asynchrone Aufgabe kann auch nach erfolgreicher Erstellung als fehlgeschlagen gelten. Verwenden Sie error_code und error_message aus der Umfrageantwort als letzten Aufgabengrund. Wiederholen Sie dieselbe Anfrage nicht mit einer anderen JSON-Form.
Unterstützter Bereich
Abschnitt betitelt „Unterstützter Bereich“Auf dieser Seite werden Modelflare-Modellgenerierungs- und -bearbeitungsaufrufe behandelt. Such- oder Kartenanreicherung, Sprachverwaltung und Elementbibliotheksverwaltung sind Ressourcen-APIs außerhalb dieser öffentlichen Modellaufrufoberfläche und keine erforderlichen Anforderungsfelder.
Preise und Abrechnung
Abschnitt betitelt „Preise und Abrechnung“Dieses Modell verwendet eine Videoabrechnung pro Sekunde. Den aktuellen Kundenpreis, den Referenzlistenpreis und die vollständige Spezifikation finden Sie auf der Modellpreisseite.
Medienvertrag · v1
Offizielle Quelle: Alibaba Cloud Model Studio
Vertragsparameter
| Absichtsfeld | Steuerelement | Optionen |
|---|---|---|
ratio | select | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 4:5 / 5:4 / 21:9 / 9:21 |
resolution | select | 720p / 1080p |
duration | select | 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 |
Unterstützte Funktion
allowed_values·ratio· 16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 21:9, 9:21allowed_values·resolution· 720p, 1080pallowed_values·duration· 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Beispiel für eine strukturierte Anfrage
text
Absicht
{
"duration": 3,
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "720p"
}Anbieteranfrage
{
"duration": 3,
"model": "happyhorse-1.1-t2v",
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "720p",
"seconds": "3"
}