コンテンツにスキップ
オープンキャスタリーコンソール

動画

wan2.7-t2v API

Modelflare 非同期ビデオ ルーティングを通じて正確な wan2.7-t2v モデル ID を使用します。

正確なモデル ID wan2.7-t2v を使用します。モデル フィールドはこのページと正確に一致する必要があります。

サンプル出力wan2.7-t2vPOST /v1/videos5.0s

パラメータ: duration=5resolution=1080pratio=16:9

プロンプト: One continuous take, no cuts. A glasshouse at night, rows of plants and misted panes. A figure in an emerald latex suit presses one palm flat against the glass; every drop of condensation on that wall begins running upward instead of down, gathering as it goes until the whole pane is a moving constellation of green and gold points that spreads to the roof panels overhead. The camera starts on the hand, pulls back through the planting and cranes up to take in the whole roof. One hard warm key from a work lamp on the floor, cold moonlight outside. Real weight and inertia, water surface tension on glass, no text.

このサンプルを作成したリクエスト
{
"model": "wan2.7-t2v",
"prompt": "One continuous take, no cuts. A glasshouse at night, rows of plants and misted panes. A figure in an emerald latex suit presses one palm flat against the glass; every drop of condensation on that wall begins running upward instead of down, gathering as it goes until the whole pane is a moving constellation of green and gold points that spreads to the roof panels overhead. The camera starts on the hand, pulls back through the planting and cranes up to take in the whole roof. One hard warm key from a work lamp on the floor, cold moonlight outside. Real weight and inertia, water surface tension on glass, no text.",
"seconds": "5",
"duration": 5,
"resolution": "1080p",
"ratio": "16:9",
"aspect_ratio": "16:9"
}

https://modelflare.dev/v1 で Modelflare API キーを使用します。ゲートウェイのエントリ ポイントは POST /v1/videos です。

HTTP
Authorization: Bearer YOUR_MODELFLARE_API_KEY
ターミナルウィンドウbash
curl https://modelflare.dev/v1/videos \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.7-t2v",
"input": {"prompt": "A white cat runs through a neon-lit street in the rain, cinematic tracking shot"},
"parameters": {"resolution": "1080P", "duration": 5, "prompt_extend": false}
}'

タスクIDを保存します。 GET /v1/videos/{task_id} をポーリングし、GET /v1/videos/{task_id}/content でダウンロードします。結果 URL は有効期限が切れている可能性があるため、速やかにファイルを転送してください。

ターミナルウィンドウbash
curl https://modelflare.dev/v1/videos/TASK_ID \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"

Wan は一般的に input と parameters を使用します。フレームガイドモードとリファレンスメディアモードを混合してはなりません。

Wan2.7 T2V は input.prompt を中心とし、オプションで input.audio_url を受け入れます。プロンプトでショットの変更を説明します。 shot_typeは送信しないでください。

フィールド 必須 注意事項
model はい wan2.7-t2v
input.prompt はい 公式ページに記載されている制限を使用する
input.negative_prompt いいえ 否定プロンプト
input.audio_url いいえ パブリック WAV/MP3;モデルにオーディオを生成させることを省略します
parameters.resolution いいえ 720P / 1080P (デフォルトは1080P)
parameters.ratio いいえ 16:9 / 9:16 / 1:1 / 4:3 / 3:4
parameters.duration いいえ 動画の長さ (秒)
parameters.prompt_extend いいえ この専用モデル契約で必要な場合は false を設定します
parameters.watermark いいえ ウォーターマークを入れるかどうか
parameters.seed いいえ オプションのランダムシード

T2V は 720P または 1080P を 2 ~ 15 秒間出力します。同期オーディオを生成するには input.audio_url を省略します。指定された WAV/MP3 は、要求された長さに合わせてトリミングされるか、無音のままになります。プロンプトにマルチショットのタイミングを記述し、shot_typeは送信しません。

文書化されたワークフローの例

Section titled “文書化されたワークフローの例”
ターミナルウィンドウbash
curl https://modelflare.dev/v1/videos \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan2.7-t2v",
"input": {"prompt": "从文字生成一段稳定的电影镜头"},
"parameters": {"resolution": "1080P", "duration": 8, "prompt_extend": false}
}'

無効なモデル パラメーターは、リクエスト ID を含む 4xx を返します。非同期タスクは、作成が成功した後に失敗することもあります。ポーリング応答からの error_code と error_message を最終タスク理由として使用します。異なる JSON 形式で同じリクエストを再試行しないでください。

このページでは、Modelflare モデルの生成と編集呼び出しについて説明します。検索またはマップのエンリッチメント、音声管理、および要素ライブラリ管理は、このパブリック モデル呼び出しサーフェスの外部にあるリソース API であり、必須のリクエスト フィールドではありません。

動画秒単位課金モデルです。現在の顧客価格、参考定価、完全な仕様については、モデル価格ページを参照してください。

モデルID 違い
wan2.7-t2v このページに記載されているモデル。
メディア契約 · v1

契約ID: media.wan2-7-t2v.v1アダプター: video.wan.t2v.v1@v1指紋: f34573d56f54ab22dc75fd5fa803c398049322d1c9d4cb4daddfdb1b14bffaaf

公式ソース: Alibaba Cloud Model Studio

契約パラメータ

インテントフィールドコントロールオプション
ratioselect16:9 / 9:16 / 1:1 / 4:3 / 3:4
resolutionselect720p / 1080p
durationselect2 / 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
  • allowed_values · resolution · 720p, 1080p
  • allowed_values · duration · 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

構造化リクエストの例

text

インテント

{
  "duration": 2,
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "ratio": "16:9",
  "resolution": "720p"
}

プロバイダーリクエスト

{
  "duration": 2,
  "model": "wan2.7-t2v",
  "prompt": "A red paper kite over a quiet harbour at dusk.",
  "ratio": "16:9",
  "resolution": "720p",
  "seconds": "2"
}