Skip to content

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

ByteDance のロゴ

Seedream 5 Lite

テキストから画像 • ByteDance

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

Seedream 5 Lite は Seedream 5 ファミリーの軽量で高速なバージョンです。複数参照とバッチ生成に対応します。

モデル情報
詳細情報リンク
料金Cloudflare ダッシュボードで料金を見る

使い方

const response = await env.AI.run(
  'bytedance/seedream-5-lite',
  { prompt: 'A cute robot watering plants in a sunny greenhouse' },
)
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": "bytedance/seedream-5-lite",
  "input": {
    "prompt": "A cute robot watering plants in a sunny greenhouse"
  }
}'
簡単な生成
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "images": [
      "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/seedream-5-0/021776405291656e8ad6f8fac80a9b78040141fa10ae51dc262e8_0.jpeg"
    ]
  },
  "state": "Completed"
}

高解像度 PNG — PNG 出力の 3K 品質です
const response = await env.AI.run(
  'bytedance/seedream-5-lite',
  {
    prompt:
      'A detailed technical blueprint of a futuristic spacecraft with annotations and measurements',
    aspect_ratio: '16:9',
    output_format: 'png',
    size: '3K',
  },
)
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": "bytedance/seedream-5-lite",
  "input": {
    "prompt": "A detailed technical blueprint of a futuristic spacecraft with annotations and measurements",
    "aspect_ratio": "16:9",
    "output_format": "png",
    "size": "3K"
  }
}'
高解像度 PNG
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "images": [
      "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/seedream-5-0/021776405293188e8ad6f8fac80a9b78040141fa10ae51d8ac521_0.png"
    ]
  },
  "state": "Completed"
}
ポートレート写真 — 写真向けの JPEG 出力です
const response = await env.AI.run(
  'bytedance/seedream-5-lite',
  {
    prompt:
      'A professional headshot portrait with soft studio lighting and a neutral gray background',
    aspect_ratio: '3:4',
    output_format: 'jpeg',
    size: '2K',
  },
)
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": "bytedance/seedream-5-lite",
  "input": {
    "prompt": "A professional headshot portrait with soft studio lighting and a neutral gray background",
    "aspect_ratio": "3:4",
    "output_format": "jpeg",
    "size": "2K"
  }
}'
ポートレート写真
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "images": [
      "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/seedream-5-0/021776405322247e8ad6f8fac80a9b78040141fa10ae51db518ee_0.jpeg"
    ]
  },
  "state": "Completed"
}
連続コマ漫画 — 連続する漫画コマを生成します
const response = await env.AI.run(
  'bytedance/seedream-5-lite',
  {
    prompt:
      'A four-panel comic strip showing a cat discovering a cardboard box and deciding to sit in it',
    aspect_ratio: '4:3',
    max_images: 4,
    sequential_image_generation: 'auto',
  },
)
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": "bytedance/seedream-5-lite",
  "input": {
    "prompt": "A four-panel comic strip showing a cat discovering a cardboard box and deciding to sit in it",
    "aspect_ratio": "4:3",
    "max_images": 4,
    "sequential_image_generation": "auto"
  }
}'
連続コマ漫画
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "images": [
      "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/seedream-5-0/0217764053440971386b9a8ed856c57501cfa946ce34c987bb335_0.jpeg"
    ]
  },
  "state": "Completed"
}
画像のバリエーション — 参照からバリエーションを作成します
const response = await env.AI.run(
  'bytedance/seedream-5-lite',
  {
    prompt: 'Create a variation of this image in a watercolor painting style',
    aspect_ratio: 'match_input_image',
    image_input: [
      'https://replicate.delivery/xezq/jCypj4MeXYUiRyq7nfgm8z1OvFZF81wh4FznutDsZOuJz0YWA/tmp1iukn307.jpg',
    ],
    size: '2K',
  },
)
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": "bytedance/seedream-5-lite",
  "input": {
    "prompt": "Create a variation of this image in a watercolor painting style",
    "aspect_ratio": "match_input_image",
    "image_input": [
      "https://replicate.delivery/xezq/jCypj4MeXYUiRyq7nfgm8z1OvFZF81wh4FznutDsZOuJz0YWA/tmp1iukn307.jpg"
    ],
    "size": "2K"
  }
}'
画像のバリエーション
{
  "gatewayMetadata": {
    "keySource": "Unified"
  },
  "result": {
    "images": [
      "https://ark-acg-ap-southeast-1.tos-ap-southeast-1.volces.com/seedream-5-0/0217764053505731386b9a8ed856c57501cfa946ce34c989ba40c_0.jpeg"
    ]
  },
  "state": "Completed"
}

パラメーター

prompt
string必須
size
stringenum: 2K, 3K
aspect_ratio
stringenum: match_input_image, 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9
sequential_image_generation
stringenum: disabled, auto
max_images
integerminimum: 1maximum: 15
output_format
stringenum: png, jpeg

API スキーマ(Raw)

Input
Output

役に立ちましたか?