Zum Inhalt springen
Öffne CastalyKonsole

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.

Beispielausgabehappyhorse-1.1-t2vPOST /v1/videos5.2s

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.

Anfrage, die dieses Beispiel erstellt hat
{
"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"
}

Verwenden Sie einen Modelflare-API-Schlüssel mit https://modelflare.dev/v1. Der Gateway-Einstiegspunkt ist POST /v1/videos.

HTTP
Authorization: Bearer YOUR_MODELFLARE_API_KEY
Terminal-Fensterbash
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}
}'

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.

Terminal-Fensterbash
curl https://modelflare.dev/v1/videos/TASK_ID \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"

HappyHorse verwendet input.prompt; Wählen Sie die input.media-Form, die der Modell-ID t2v, i2v oder r2v entspricht.

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

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.

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.

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.

Dieses Modell verwendet eine Videoabrechnung pro Sekunde. Den aktuellen Kundenpreis, den Referenzlistenpreis und die vollständige Spezifikation finden Sie auf der Modellpreisseite.

Medienvertrag · v1

Vertrags-ID: media.happyhorse-1-1-t2v.v1Adapter: video.happyhorse.v1@v1Fingerabdruck: 4f3b6a3c628a981b1d15070759d8f96df185c43c684a22bba802349f85e3e6f9

Offizielle Quelle: Alibaba Cloud Model Studio

Vertragsparameter

AbsichtsfeldSteuerelementOptionen
ratioselect16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 4:5 / 5:4 / 21:9 / 9:21
resolutionselect720p / 1080p
durationselect3 / 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:21
  • allowed_values · resolution · 720p, 1080p
  • allowed_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"
}