POST /v1/images/generations. You can generate images from text prompts, edit images using a reference, fuse multiple input images, and even stream results as they’re generated — all with your Fhddos API key and no VolcArk console setup.
Available Models
| Model Name | Capabilities |
|---|---|
doubao-seedream-4.5 | Text-to-image, image-to-image, multi-image fusion, sequential generation, streaming (SSE) — same feature set as 4.0 with improvements |
doubao-seedream-4.5-n | Same as above — per-image billing variant, ideal when using n for batch generation |
doubao-seedream-4.0 | Text-to-image, image-to-image, multi-image fusion (2–10 inputs), sequential generation (up to 15 images), streaming (SSE) |
doubao-seedream-4.0-n | Same as above — per-image billing variant, ideal when using n for batch generation |
doubao-seedream-3.0-t2i | Text-to-image with seed and guidance_scale control for reproducible outputs |
doubao-seededit-3.0-i2i | Dedicated image-to-image editing |
Endpoint
Request Parameters
Standard OpenAI Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | ✅ | Model name, e.g. doubao-seedream-4.0 |
prompt | string | ✅ | Image description. Keep under 300 Chinese characters or 600 English words. |
size | string | ❌ | Output dimensions, e.g. 1024x1024, 2K, 4K |
n | integer | ❌ | Number of independent images to generate (default: 1) |
response_format | string | ❌ | url (default) or b64_json |
quality | string | ❌ | high or standard |
style | string | ❌ | vivid or natural |
VolcArk Extension Fields
| Parameter | Type | Supported Models | Description |
|---|---|---|---|
image | string or string[] | Seedream 4.0, SeedEdit 3.0 | Reference image(s) — URL or base64. Pass an array for multi-image fusion (2–10 images). |
seed | integer | Seedream 3.0, SeedEdit 3.0 | Random seed in [-1, 2147483647]. Use -1 for random. |
sequential_image_generation | string | Seedream 4.0 | Enable sequential composition: auto or disabled |
sequential_image_generation_options.max_images | integer | Seedream 4.0 | Max images in a sequential set (range: 1–15) |
stream | boolean | Seedream 4.0 | Enable SSE streaming for progressive output |
guidance_scale | float | Seedream 3.0, SeedEdit 3.0 | Text adherence strength (range: 1–10) |
watermark | boolean | All | Add a watermark to the output (default: true) |
optimize_prompt_options.mode | string | Seedream 4.0 | Prompt optimization mode: standard (default) or fast |
All unrecognized fields are forwarded as-is to the VolcArk upstream. Billing is calculated from resolution and image count — your client doesn’t need to provide extra metadata.
Examples
Text-to-Image
- cURL
- Python (OpenAI SDK)
Image-to-Image Editing (Single Reference)
Pass aimage URL with doubao-seedream-4.0 to apply style or content transformations:
adaptive sizing, use the dedicated SeedEdit model:
Multi-Image Fusion (2–10 Inputs)
Pass an array of image URLs to blend styles or elements from multiple sources:Sequential / Composition Generation
Generate a narrative-linked set of images in one request:Reproducible Output with Seed Control
Usedoubao-seedream-3.0-t2i with a fixed seed to reproduce the same image:
Streaming Sequential Generation (SSE)
Usestream: true with doubao-seedream-4.0 to receive images progressively:
| Event Type | Meaning |
|---|---|
image_generation.partial_succeeded | One image in the set is ready |
image_generation.partial_failed | One image failed (others continue) |
image_generation.completed | All images processed, includes usage |
Response Format
Standard (Non-Streaming)
Base64 Response
Set"response_format": "b64_json" to receive the image as a base64 string instead of a URL:
Frequently Asked Questions
What is the difference between sequential generation and the n parameter?
What is the difference between sequential generation and the n parameter?
Sequential generation (
sequential_image_generation: auto) produces a set of content-related images — the model decides how many to generate (up to max_images) based on the prompt’s narrative. The n parameter generates n independent images from the same prompt, similar to a batch sample.How do I set the size for each model?
How do I set the size for each model?
- Seedream 4.5 / 4.0: Use resolution modes (
1K,2K,4K) or exact dimensions like2048x2048. Total pixel count must be between 921,600 and 16,777,216. - Seedream 3.0-t2i: Choose between
512x512and2048x2048. - SeedEdit 3.0-i2i: Use
adaptiveto match the input image dimensions automatically.
How long are generated image URLs valid?
How long are generated image URLs valid?
Generated image URLs are typically valid for 24 hours. Download and store images to your own storage before the expiry window.
How do I remove the watermark?
How do I remove the watermark?
Add
"watermark": false to your request body. This requires the model and your account configuration to allow it.Why can't my reference image be uploaded?
Why can't my reference image be uploaded?
Ensure
image contains a publicly accessible HTTPS URL or a correctly encoded base64 string. For large images, compress them first to avoid exceeding upstream size limits.