Seedream 4.0
Seedream 4.0 is ByteDance’s multimodal image model for fast 2K to 4K generation. It supports text prompts, image editing with natural language, and multi image reference. It maintains style consistency across batches and handles bilingual Chinese and English workflows.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»referenceImagesreferenceImages
array of strings min items: 1max items: 14 -
List of reference images (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: bytedance:5@0 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 1 max: 2000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
width
integer paired with height -
Width of the generated media in pixels.
Learn more 2 resources
-
height
integer paired with width -
Height of the generated media in pixels.
Learn more 2 resources
-
seed
integer min: 0 max: 9223372036854776000 -
Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
Learn more 1 resource
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.bytedance object.
providerSettings.bytedance object.-
providerSettings»bytedance»maxSequentialImagesmaxSequentialImages
integer min: 1 max: 15 -
Maximum number of sequential images to generate. Combined total of reference images plus sequential images cannot exceed 15. The model may generate fewer images than requested depending on prompt complexity.
Porcelain Dragon Bakery Window
{
"taskType": "imageInference",
"taskUUID": "d0e27e41-af62-43be-926c-8211a3a92adb",
"model": "bytedance:5@0",
"positivePrompt": "A whimsical old-world bakery built into the side of a giant porcelain dragon statue, its glazed white scales cracked with age and threaded with tiny flowering vines. Warm oven light glows through curved display windows filled with elaborate pastries shaped like swans, pears, seashells, and miniature castles. A cobbled canal lane passes in front, with delivery bicycles, striped awnings, hanging copper pans, drifting flour dust, and a hand-painted sign in both English and Chinese calligraphy. Townspeople in layered spring clothing gather with baskets and paper-wrapped loaves, while a child watches sugared sparrows perched along the dragon's jaw. Highly detailed ceramic textures, brushed signage, golden morning atmosphere, cinematic depth, storybook realism, crisp focus, lively yet elegant composition, premium 2K image quality.",
"width": 2304,
"height": 1728,
"seed": 5417,
"providerSettings": {
"bytedance": {
"maxSequentialImages": 1
}
}
}{
"taskType": "imageInference",
"taskUUID": "d0e27e41-af62-43be-926c-8211a3a92adb",
"imageUUID": "dc98754d-90c1-41b8-9482-c3d63f90c93c",
"imageURL": "https://im.runware.ai/image/os/a25d05/ws/3/ii/dc98754d-90c1-41b8-9482-c3d63f90c93c.jpg",
"seed": 5417,
"cost": 0.03
}Velvet Circus Caravan Encampment
{
"taskType": "imageInference",
"taskUUID": "2eca900b-015a-461d-94d9-b42305f46cde",
"model": "bytedance:5@0",
"positivePrompt": "Using the reference images as visual guidance, create an opulent wandering circus encampment at first light: a grand painted caravan with carved wood panels and velvet drapery parked among striped tents on a meadow of wildflowers, a majestic white tiger adorned with jeweled harness details resting beside stacked trunks, acrobatic ribbons fluttering from poles, brass instruments glinting on a folding table, faint campfire smoke, dew on the grass, storybook realism, intricate textures, elegant color harmony, sweeping depth, highly detailed 4k illustration aesthetic",
"width": 2304,
"height": 1728,
"seed": 15467,
"providerSettings": {
"bytedance": {
"maxSequentialImages": 1
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/56479b8a-765e-4350-96b3-346fa826cbf6.jpg",
"https://assets.runware.ai/assets/inputs/6b0e98e7-2da0-438f-b168-1c1ba20132d4.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "2eca900b-015a-461d-94d9-b42305f46cde",
"imageUUID": "48dd04b2-9278-406b-a82a-5926c6f25276",
"imageURL": "https://im.runware.ai/image/os/a09d21/ws/3/ii/48dd04b2-9278-406b-a82a-5926c6f25276.jpg",
"seed": 15467,
"cost": 0.03
}Gilded Winter Conservatory Interior
{
"taskType": "imageInference",
"taskUUID": "c9b3cbaf-cb72-4015-9f57-18d8e8737a77",
"model": "bytedance:5@0",
"positivePrompt": "Using the reference images as visual guidance, create a majestic winter conservatory salon transformed into an opulent chamber music venue, with towering glass walls, frosted panes, citrus trees in ornate planters, marble flooring, and elaborate gold filigree details inspired by antique musical mechanisms. At the center, a poised soprano in an ivory-and-gold opera gown stands beside a harp-like instrument with decorative mechanical embellishments. Warm candlelight and pale daylight mingle across reflective surfaces, producing crisp luxurious textures, cinematic depth, refined composition, highly detailed fabric, ornamental metalwork, and realistic spatial coherence. No text, no watermark, no crowd.",
"width": 2304,
"height": 1728,
"seed": 20086,
"providerSettings": {
"bytedance": {
"maxSequentialImages": 1
}
},
"inputs": {
"referenceImages": [
"https://assets.runware.ai/assets/inputs/79b06d11-b5b5-4f30-95cf-cdd985b0e927.jpg",
"https://assets.runware.ai/assets/inputs/bafba2c6-7881-42f1-ab6d-7e5e714cf025.jpg",
"https://assets.runware.ai/assets/inputs/ef49174a-f06b-4563-ba3b-b222c3855f86.jpg"
]
}
}{
"taskType": "imageInference",
"taskUUID": "c9b3cbaf-cb72-4015-9f57-18d8e8737a77",
"imageUUID": "d65165ef-8200-4835-aba2-660119a67dab",
"imageURL": "https://im.runware.ai/image/os/a20d05/ws/3/ii/d65165ef-8200-4835-aba2-660119a67dab.jpg",
"seed": 20086,
"cost": 0.03
}Glass Apiary Canopy Banquet
{
"taskType": "imageInference",
"taskUUID": "f9b9414a-9ebb-4f93-9bb9-d4b16d312a36",
"model": "bytedance:5@0",
"positivePrompt": "A grand open-air banquet suspended beneath a vast canopy of hanging glass beehives in the crowns of ancient sycamore trees, hundreds of tiny amber reflections scattered across polished wooden tables, guests in flowing embroidered garments dining among floating pollen-like dust motes, trained honeybees carrying miniature ribbons between crystal decanters, elaborate plated desserts shaped like wildflowers and hexagons, brass serving carts on narrow elevated walkways, distant rolling farmland beyond the treetops, golden late-afternoon light, cinematic depth, ultra-detailed textures, transparent glass, warm honey tones, whimsical realism, elegant composition, richly layered scene, 4k detail",
"width": 2496,
"height": 1664,
"seed": 14889,
"providerSettings": {
"bytedance": {
"maxSequentialImages": 1
}
}
}{
"taskType": "imageInference",
"taskUUID": "f9b9414a-9ebb-4f93-9bb9-d4b16d312a36",
"imageUUID": "56e77de5-eba5-4739-a2e6-b74e62067db4",
"imageURL": "https://im.runware.ai/image/os/a24d12/ws/3/ii/56e77de5-eba5-4739-a2e6-b74e62067db4.jpg",
"seed": 14889,
"cost": 0.03
}