seedream-image
Seedream Image Generation
Generate and edit AI images through AceDataCloud's Seedream (ByteDance) API.
Setup: See authentication for token setup.
Quick Start
curl -X POST https://api.acedata.cloud/seedream/images \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cyberpunk cat wearing VR goggles in a neon city", "model": "doubao-seedream-5-0-260128"}'
Async: See async task polling. Poll via
POST /seedream/taskswith{"id": "..."}.
Models
| Model | Version | Best For |
|---|---|---|
doubao-seedream-5-0-260128 |
Seedream 5.0 | Latest, highest quality (default) |
doubao-seedream-4-5-251128 |
Seedream 4.5 | High quality, balanced |
doubao-seedream-4-0-250828 |
Seedream 4.0 | Reliable generation |
doubao-seedream-3-0-t2i-250415 |
Seedream 3.0 T2I | Text-to-image, precise prompt following |
doubao-seededit-3-0-i2i-250628 |
SeedEdit 3.0 | Image-to-image editing |
Workflows
1. Text-to-Image
POST /seedream/images
{
"prompt": "a serene Japanese garden with cherry blossoms and a red bridge",
"model": "doubao-seedream-5-0-260128",
"size": "1K"
}
2. Image Editing (Image-to-Image)
Edit an existing image by providing the source image URL(s) and a descriptive prompt. Use the doubao-seededit-3-0-i2i-250628 model for best editing results.
POST /seedream/images
{
"prompt": "change the sky to a golden sunset",
"model": "doubao-seededit-3-0-i2i-250628",
"image": ["https://example.com/photo.jpg"]
}
3. Async Generation with Task Polling
Pass a callback_url to receive results asynchronously via webhook, or poll /seedream/tasks for the result:
POST /seedream/images
{
"prompt": "an epic fantasy landscape",
"model": "doubao-seedream-5-0-260128",
"callback_url": "https://api.acedata.cloud/health"
}
Poll the returned task_id:
POST /seedream/tasks
{"id": "<task_id>"}
Parameters
Generation
| Parameter | Values | Description |
|---|---|---|
model |
see Models table | Model to use (required) |
prompt |
string | Image description (required) |
size |
"1K", "2K", "3K", "4K", "adaptive" |
Output resolution (e.g. 1K=1024px, 2K=2048px); 3K only for Seedream 5.0 |
seed |
integer [-1, 2147483647] | Seed for reproducibility (Seedream 3.0 T2I / SeedEdit 3.0 only) |
guidance_scale |
number [1, 10] | Prompt adherence strength (3.0 models only; T2I default 2.5, edit default 5.5) |
sequential_image_generation |
"auto", "disabled" |
Generate related images in sequence (5.0, 4.5, 4.0 only) |
stream |
boolean | Stream images as they're generated (5.0, 4.5, 4.0 only) |
watermark |
boolean | Add AI-generated watermark (default: true) |
output_format |
"jpeg", "png" |
Output file format (Seedream 5.0 only; default: jpeg) |
response_format |
"url", "b64_json" |
Response format (default: url) |
tools |
array | Enable tools, e.g. [{"type": "web_search"}] (Seedream 5.0 only) |
callback_url |
string | Webhook URL for async delivery; returns task_id immediately |
Editing
| Parameter | Required | Description |
|---|---|---|
image |
Yes (for editing) | Array of image URLs or base64 strings (max 10MB each) |
prompt |
Yes | Describe the desired edit |
Gotchas
- Model names now use the
doubao-*naming convention (e.g.doubao-seedream-5-0-260128) - Image editing uses the same
/seedream/imagesendpoint with theimagearray parameter (no separate edit endpoint) sizereplaces separatewidth/heightparams; use"1K"for 1024×1024,"2K"for 2048×2048, etc.3Ksize is only supported by Seedream 5.0;adaptiveselects the best aspect ratio automaticallyseedonly works withdoubao-seedream-3-0-t2i-250415anddoubao-seededit-3-0-i2i-250628guidance_scaleis only available for the 3.0-series modelsstreamandsequential_image_generationare only available for Seedream 5.0, 4.5, and 4.0- Pass
callback_urlto get atask_idimmediately and avoid blocking; poll/seedream/tasksfor the result — use"https://api.acedata.cloud/health"as a placeholder to force async mode without a real webhook
MCP:
pip install mcp-seedream| Hosted:https://seedream.mcp.acedata.cloud/mcp| See all MCP servers
More from acedatacloud/skills
luma-video
Generate AI videos with Luma Dream Machine via AceDataCloud API. Use when creating videos from text prompts, generating videos from reference images, extending existing videos, or any video generation task with Luma. Supports text-to-video, image-to-video, and video extension.
10short-url
Create short URLs via AceDataCloud API. Use when generating shortened links for sharing, or batch-creating multiple short URLs at once. Supports custom slugs and expiration.
9flux-image
Generate and edit images with Flux (Black Forest Labs) via AceDataCloud API. Use when creating images from text prompts, editing existing images with text instructions, or when high-quality image generation is needed. Supports multiple Flux models including dev, pro, ultra, and kontext for editing.
9veo-video
Generate AI videos with Google Veo via AceDataCloud API. Use when creating videos from text descriptions, animating still images into video, upscaling/extending videos, re-shooting with new camera motion, or inserting/removing objects. Supports Veo 2, Veo 3, and Veo 3.1 models including fast variants.
9sora-video
Generate AI videos with OpenAI Sora via AceDataCloud API. Use when creating videos from text prompts, generating videos from reference images, or using character references from existing videos. Supports text-to-video, image-to-video, and character-driven generation with multiple models and resolutions.
8ai-chat
Access 50+ LLM models through a unified OpenAI-compatible API via AceDataCloud. Use when you need chat completions from GPT, Claude, Gemini, DeepSeek, Grok, or other models through a single endpoint. Supports streaming, function calling, and vision.
8