Skip to content

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

Google のロゴ

Veo 3.1

テキストから動画 • Google

Markdown で表示Agent セットアップ
  • サードパーティ
  • ゼロデータ保持

品質、動き、音声生成を強化した、Google の最新動画生成モデルです。

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

使い方

const response = await env.AI.run(
  'google/veo-3.1',
  {
    prompt:
      'A majestic eagle soaring over snow-capped mountains, tracking shot following the bird as it glides through clouds',
    aspect_ratio: '16:9',
    duration: '8s',
    generate_audio: true,
    resolution: '1080p',
  },
)
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": "google/veo-3.1",
  "input": {
    "prompt": "A majestic eagle soaring over snow-capped mountains, tracking shot following the bird as it glides through clouds",
    "aspect_ratio": "16:9",
    "duration": "8s",
    "generate_audio": true,
    "resolution": "1080p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1/nature-documentary.mp4"
  },
  "state": "Completed"
}

都市のタイムラプス — 都市生活のタイムラプス動画です
const response = await env.AI.run(
  'google/veo-3.1',
  {
    prompt:
      'A time-lapse of a busy city intersection at night, car lights creating streaks, people walking in fast motion',
    aspect_ratio: '16:9',
    duration: '6s',
    generate_audio: true,
    resolution: '1080p',
  },
)
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": "google/veo-3.1",
  "input": {
    "prompt": "A time-lapse of a busy city intersection at night, car lights creating streaks, people walking in fast motion",
    "aspect_ratio": "16:9",
    "duration": "6s",
    "generate_audio": true,
    "resolution": "1080p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1/urban-time-lapse.mp4"
  },
  "state": "Completed"
}
抽象アート — 抽象的なモーショングラフィックスです
const response = await env.AI.run(
  'google/veo-3.1',
  {
    prompt:
      'Colorful ink drops falling into water in slow motion, creating organic swirling patterns',
    aspect_ratio: '16:9',
    duration: '6s',
    generate_audio: false,
    resolution: '720p',
  },
)
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": "google/veo-3.1",
  "input": {
    "prompt": "Colorful ink drops falling into water in slow motion, creating organic swirling patterns",
    "aspect_ratio": "16:9",
    "duration": "6s",
    "generate_audio": false,
    "resolution": "720p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1/abstract-art.mp4"
  },
  "state": "Completed"
}
料理の動画 — 食欲をそそる料理映像です
const response = await env.AI.run(
  'google/veo-3.1',
  {
    prompt: 'Melted chocolate being poured over fresh strawberries in slow motion, rich and glossy',
    aspect_ratio: '9:16',
    duration: '4s',
    generate_audio: true,
    resolution: '1080p',
  },
)
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": "google/veo-3.1",
  "input": {
    "prompt": "Melted chocolate being poured over fresh strawberries in slow motion, rich and glossy",
    "aspect_ratio": "9:16",
    "duration": "4s",
    "generate_audio": true,
    "resolution": "1080p"
  }
}'
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "video": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/google__veo-3.1/food-video.mp4"
  },
  "state": "Completed"
}

パラメーター

prompt
string必須生成する動画を説明するテキストプロンプトです
image_input
stringi2v 用の Base64 エンコード参照画像です
duration
string必須デフォルト: 6senum: 4s, 6s, 8s動画の長さです
aspect_ratio
string必須デフォルト: 16:9enum: 16:9, 9:16, 1:1動画のアスペクト比です
resolution
string必須デフォルト: 720penum: 720p, 1080p動画の解像度です
generate_audio
boolean必須デフォルト: true動画と一緒に音声を生成するかどうかです
video
stringformat: uri生成された動画の URL です

API スキーマ(Raw)

Input
Output

役に立ちましたか?