Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

Alibaba のロゴ

Wan 3.0 Video

テキストから動画 • Alibaba

Markdown で表示Agent セットアップ
  • サードパーティ

Alibaba の Wan 3.0 テキストから動画へのモデルです。テキストプロンプトからシネマティックな動画を生成します。アスペクト比は適応的で、解像度は 480P、720P、1080P、長さは設定可能です。

モデル情報
利用規約とライセンスリンク
詳細情報リンク
料金Cloudflare ダッシュボードで料金を見る

使い方

const response = await env.AI.run(
  'alibaba/wan-3.0',
  {
    prompt:
      'A kitten running across a rooftop under the moonlight, city neon lights flickering in the distance, cinematic quality, smooth camera movement.',
    resolution: '480P',
    ratio: 'adaptive',
    duration: 5,
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "alibaba/wan-3.0",
  "input": {
    "prompt": "A kitten running across a rooftop under the moonlight, city neon lights flickering in the distance, cinematic quality, smooth camera movement.",
    "resolution": "480P",
    "ratio": "adaptive",
    "duration": 5
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/alibaba/wan-3.0/adaptive-480p-text-to-video.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

パラメーター

prompt
string必須minLength: 1maxLength: 2500
resolution
stringenum: 480P, 720P, 1080P
ratio
stringenum: adaptive, 16:9, 9:16, 1:1, 4:3, 3:4
duration
integerminimum: 1maximum: 15
video
stringformat: uri

API スキーマ(Raw)

Input
Output

役に立ちましたか?