Skip to main content
Glama

seedream_generate_image

Turn text prompts into AI-generated images using ByteDance's Seedream. Select from multiple models, up to 4K resolution, and URL or base64 output.

Instructions

Generate an AI image from a text prompt using ByteDance's Seedream model.

This tool creates high-quality images from text descriptions using ByteDance's
Seedream models (powered by Doubao). Supports multiple model versions with different
capabilities and quality levels.

Use this when:
- You want to generate a new image from scratch based on a text description
- You need high-quality AI-generated images (photos, illustrations, art)
- You want to create images with specific styles, compositions, or themes

Do NOT use this when:
- You want to edit or modify an existing image (use seedream_edit_image instead)
- You need to combine multiple images (use seedream_edit_image instead)

Model selection guide:
- v5.0 (doubao-seedream-5-0-260128): Latest flagship, highest quality
- v4.5 (doubao-seedream-4-5-251128): Previous flagship, great quality and detail
- v4.0 (doubao-seedream-4-0-250828): Stable and cost-effective, great for most tasks
Returns:
    JSON with task_id, trace_id, success status, and generated image data
    including image URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoOutput image resolution. '1K' (default), '2K', '3K', or '4K'. You can also specify custom dimensions like '1024x1024', '1280x720', etc.
modelNoModel to use for generation. 'doubao-seedream-5-0-pro-260628' (v5.0 Pro, flagship single image, highest quality; no sequential generation, streaming, or web search). 'doubao-seedream-5-0-260128' (v5.0 Lite, latest flagship, sequential generation, streaming, web search). 'doubao-seedream-4-5-251128' (v4.5, previous flagship, great quality). 'doubao-seedream-4-0-250828' (v4.0, stable, best value).doubao-seedream-5-0-260128
toolsNoOptional list of tool types for the model to use during generation. Currently only 'web_search' is supported. Only supported by doubao-seedream-5-0-260128 (v5.0).
promptYesDescription of the image to generate. Be descriptive about subject, style, atmosphere, lighting, and composition. Supports both Chinese and English. Example: 'A photorealistic portrait of an astronaut on Mars, golden hour lighting, cinematic composition, ultra-detailed'
streamNoStream all pictures progressively. Default is false. Only supports v4.5 and v4.0 models.
watermarkNoWhether to add an AI-generated watermark. Default is true.
callback_urlNoOptional webhook URL to receive the result asynchronously. The API will POST the result to this URL when complete. Must be publicly accessible.
output_formatNoOutput image format. 'jpeg' (default) or 'png'.
response_formatNoResponse format for the generated image. 'url' (default) returns a public image URL. 'b64_json' returns base64-encoded image data.
optimize_prompt_optionsNoOptional prompt optimization configuration. Supports `mode` with values 'standard' (higher quality, slower) or 'fast' (quicker, lower quality). Only supported on doubao-seedream-4.5 (standard mode only) and doubao-seedream-4.0.
sequential_image_generationNoGenerate related images based on input. 'auto' enables it, 'disabled' (default) turns it off. Only supports v4.5 and v4.0 models.
sequential_image_generation_optionsNoTunable options for grouped image generation. Only honored when `sequential_image_generation=auto`. Supports `max_images` (int, range [1, 15]). Only supported on doubao-seedream-4.5 and doubao-seedream-4.0.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description assumes full disclosure burden. It explains model selection trade-offs, returns JSON with task_id, trace_id, success status, and image URLs, and implies asynchronous behavior via callback_url and task_id. However, it omits details like cost, rate limits, or potential content moderation, so it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections, bullet points, and front-loaded purpose. Every sentence provides actionable guidance—the model guide, usage criteria, and return format all earn their place. No filler or tautology.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (12 params, rich schema) and lacking annotations, the description covers all critical aspects: what it does, when to use it, model selection, and return format. It doesn't discuss error handling or API limits, but the output schema and parameter descriptions fill many gaps, making it complete enough for reliable invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds substantial value by providing a model selection guide with qualitative distinctions (e.g., 'latest flagship, highest quality', 'stable and cost-effective'), and gives a concrete prompt example. This goes beyond the schema's enum lists.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear, specific verb+resource statement: 'Generate an AI image from a text prompt using ByteDance's Seedream model.' It also explicitly distinguishes from sibling tool seedream_edit_image, making its purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit 'Use this when' and 'Do NOT use this when' sections, naming the alternative sibling (seedream_edit_image) for editing/combining images. This gives clear decision guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceDataCloud/SeedreamMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server