動画
happyhorse-1.1-t2v API
Modelflare 非同期ビデオ ルーティングを通じて正確な happyhorse-1.1-t2v モデル ID を使用します。
正確なモデル ID happyhorse-1.1-t2v を使用します。モデル フィールドはこのページと正確に一致する必要があります。
パラメータ: duration=5resolution=1080pratio=16:9
プロンプト: 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"}認証とエンドポイント
Section titled “認証とエンドポイント”https://modelflare.dev/v1 で Modelflare API キーを使用します。ゲートウェイのエントリ ポイントは POST /v1/videos です。
Authorization: Bearer YOUR_MODELFLARE_API_KEYタスクの作成
Section titled “タスクの作成”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} }'ポーリングとダウンロード
Section titled “ポーリングとダウンロード”タスクIDを保存します。 GET /v1/videos/{task_id} をポーリングし、GET /v1/videos/{task_id}/content でダウンロードします。結果 URL は有効期限が切れている可能性があるため、速やかにファイルを転送してください。
curl https://modelflare.dev/v1/videos/TASK_ID \ -H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"リクエストメモ
Section titled “リクエストメモ”HappyHorse は input.prompt を使用します。 t2v、i2v、または r2v モデル ID に一致する input.media シェイプを選択します。
リクエストパラメータ
Section titled “リクエストパラメータ”HappyHorse T2V は input.prompt を使用してビデオを生成します。
| フィールド | 必須 | 注意事項 |
|---|---|---|
model |
はい | happyhorse-1.1-t2v |
input.prompt |
はい | テキスト説明または参照指示、最大 5,000 文字(非中国語文字または 2,500 文字) |
input.media[] |
いいえ | — |
parameters.resolution |
いいえ | 720P / 1080P、デフォルトは1080P |
parameters.ratio |
いいえ | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 4:5 / 5:4 / 9:21 / 21:9、デフォルトは16:9 |
parameters.duration |
いいえ | 3 ~ 15 秒、デフォルトは 5 |
parameters.watermark |
いいえ | HappyHorseウォーターマークを追加するかどうか |
parameters.seed |
いいえ | 0 ~ 2,147,483,647 のオプションのシード |
T2V には input.prompt のみが必要です。プロンプトは中国語以外の 5,000 文字または中国語 2,500 文字に制限され、出力は 9 つの比率値を持つ 720P または 1080P、持続時間は 3 ~ 15 秒です。
エラーと失敗したタスク
Section titled “エラーと失敗したタスク”無効なモデル パラメーターは、リクエスト ID を含む 4xx を返します。非同期タスクは、作成が成功した後に失敗することもあります。ポーリング応答からの error_code と error_message を最終タスク理由として使用します。異なる JSON 形式で同じリクエストを再試行しないでください。
サポート範囲
Section titled “サポート範囲”このページでは、Modelflare モデルの生成と編集呼び出しについて説明します。検索またはマップのエンリッチメント、音声管理、および要素ライブラリ管理は、このパブリック モデル呼び出しサーフェスの外部にあるリソース API であり、必須のリクエスト フィールドではありません。
価格設定と請求
Section titled “価格設定と請求”動画秒単位課金モデルです。現在の顧客価格、参考定価、完全な仕様については、モデル価格ページを参照してください。
メディア契約 · v1
公式ソース: Alibaba Cloud Model Studio
契約パラメータ
| インテントフィールド | コントロール | オプション |
|---|---|---|
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 |
サポートされる機能
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
構造化リクエストの例
text
インテント
{
"duration": 3,
"prompt": "A red paper kite over a quiet harbour at dusk.",
"ratio": "16:9",
"resolution": "720p"
}プロバイダーリクエスト
{
"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"
}