Skip to content
ByteDance logo

Seedream 5 Pro

Text-to-Image • ByteDance

View as MarkdownAgent setup

Model ID

Use with the Workers AI binding, the AI Gateway REST API, or the Unified API.

Calling the provider directly? Use the provider's model name instead, including with provider-native endpoints or the provider's own SDK. For example, Anthropic's name for anthropic/claude-opus-4.8 is claude-opus-4-8.

  • Third-party

Seedream 5 Pro is ByteDance's high-quality image generation and editing model with text prompts, up to 10 reference images, and 1K, 2K, or explicit pixel-size output controls.

Model Info
More informationlink ↗
Pricing
  • Per image$0.045
  • Per input image$0.03

Usage

const response = await env.AI.run(
  'bytedance/seedream-5-pro',
  {
    prompt:
      'Premium studio product render of a transparent mechanical wristwatch suspended above matte black stone, visible gears, sapphire reflections, razor-sharp lighting, luxury advertising style',
  },
)
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-pro",
  "input": {
    "prompt": "Premium studio product render of a transparent mechanical wristwatch suspended above matte black stone, visible gears, sapphire reflections, razor-sharp lighting, luxury advertising style"
  }
}'
Mechanical Watch
{
  "state": "Completed",
  "result": {
    "images": [
      "https://examples.aig.cloudflare.com/bytedance/seedream-5-pro/mechanical-watch-0.jpeg"
    ]
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

Examples

Red Panda Bakery — Whimsical illustrated scene with a very different visual style.
const response = await env.AI.run(
  'bytedance/seedream-5-pro',
  {
    prompt:
      "A cozy children's book illustration of a red panda baker frosting moon-shaped cakes inside a tiny snowy mountain bakery, soft gouache texture, warm window light",
    size: '1536x864',
  },
)
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-pro",
  "input": {
    "prompt": "A cozy children'\''s book illustration of a red panda baker frosting moon-shaped cakes inside a tiny snowy mountain bakery, soft gouache texture, warm window light",
    "size": "1536x864"
  }
}'
Red Panda Bakery
{
  "state": "Completed",
  "result": {
    "images": [
      "https://examples.aig.cloudflare.com/bytedance/seedream-5-pro/red-panda-bakery-0.jpeg"
    ]
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}
Claymation Reference — Use a reference image for a claymation-style transformation.
const response = await env.AI.run(
  'bytedance/seedream-5-pro',
  {
    image: 'https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg',
    prompt:
      'Transform this reference into a handcrafted claymation diorama, rounded clay forms, visible fingerprints, miniature set lighting, playful stop-motion film look',
    size: '1K',
  },
)
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-pro",
  "input": {
    "image": "https://ark-doc.tos-ap-southeast-1.bytepluses.com/doc_image/r2v_tea_pic1.jpg",
    "prompt": "Transform this reference into a handcrafted claymation diorama, rounded clay forms, visible fingerprints, miniature set lighting, playful stop-motion film look",
    "size": "1K"
  }
}'
Claymation Reference
{
  "state": "Completed",
  "result": {
    "images": [
      "https://examples.aig.cloudflare.com/bytedance/seedream-5-pro/claymation-reference-0.jpeg"
    ]
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

Parameters

prompt
stringrequired
size
string
watermark
booleanrequireddefault: falseWhether to add an AI-generated watermark to the output image

API Schemas (Raw)

Input
Output

Was this helpful?