Docs / Image Series / Doubao Seedream / Sync - Volcengine Native Format
Native Seedream Format (Sync)
Call Doubao Seedream 5.5 synchronously through the native Volcengine Ark image endpoint POST /api/v3/images/generations, with the request and response identical to the official Ark API; includes the official API entry on the Volcengine site.
Overview#
Developers already on Volcengine Ark can keep using Ark's native image generation endpoint to call Doubao Seedream 5.5: switch the request URL to this platform's POST /api/v3/images/generations and the API key to this platform's key. The request body and the response structure are identical to the official Ark API.
This endpoint is synchronous: the request waits for generation to finish and returns the result directly, with no task to poll.
The request and response of this endpoint follow the Ark "Image generation API". The official Ark documentation is authoritative for the complete field definitions, value ranges and response structure. Official API entry:
- Image generation API: <https://www.volcengine.com/docs/82379/1541523?lang=en>
- Doubao Seedream 5.5 tutorial: <https://www.volcengine.com/docs/82379/2833740?lang=en>
The public model name for this page is doubao-seedream-5-5-261028. Output images are billed per image by pixel tier and input reference images are billed per image; see the platform Model Pricing page for the unit price.
Other ways to call the model: for the OpenAI Images format see Seedream 5.5 Synchronous Image Generation; to submit a task and poll or wait for a callback, see Seedream 5.5 Image Generation.
API#
POST /api/v3/images/generationsArk's own address is https://ark.cn-beijing.volces.com/api/v3/images/generations; this platform uses the same path under its own domain.
Requests must carry this platform's API key:
Authorization: Bearer <token>
Content-Type: application/jsonSupported models#
| Model | Description |
|---|---|
doubao-seedream-5-5-261028 | Doubao Seedream 5.5 |
Request example#
curl --request POST \
--url https://api.apimax.ai/api/v3/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "doubao-seedream-5-5-261028",
"prompt": "Cinematic wide shot of a futuristic city skyline at dusk, 16:9 landscape",
"size": "2K",
"response_format": "url",
"watermark": false
}'Request notes#
Every field of the request body is forwarded to Ark as is; pass this platform's public model name as model. The table below lists only the most common fields; see the official entry above for the complete reference.
| Field | Type | Description |
|---|---|---|
model | string | Fixed as doubao-seedream-5-5-261028 |
prompt | string | Description of the image content and style. Keep it within 300 Chinese characters or 600 English words; state the aspect ratio in the prompt when you need a specific one, e.g. "16:9 landscape" |
size | string | Resolution tier 1K, 1.5K or 2K, or a WIDTHxHEIGHT pixel size such as 1280x720 or 2880x1440 (total between 921,600 and 8,294,400 pixels) |
image | string / string[] | Reference images: publicly accessible HTTP(S) URLs or Base64 data URLs. At most 10 images, at most 30MB each |
stream | boolean | When set to true, the response uses Ark's streaming format (SSE); see the official Ark documentation for the format |
response_format | string | url returns image links; b64_json returns Base64 image data |
output_format | string | png (default) or jpeg |
background | string | Transparency mode: auto (default), transparent or opaque |
watermark | boolean | Whether to add an "AI generated" watermark in the bottom-right corner of the image; default true |
layer_decomposition | boolean | Whether to enable layer decomposition, see "Layer decomposition" below |
layer_decomposition_options | object | Layer decomposition settings: max_images (integer 2–100, default 30) and text_recognition (boolean, default false) |
- The pixel sizes of each resolution tier at common aspect ratios, and how to use a transparent background, are the same as on the OpenAI-compatible endpoint; see Seedream 5.5 Synchronous Image Generation.
- Fields such as
streamandsequential_image_generationare not validated locally; Ark handles them by its own rules.
Response#
The Ark result is returned as is:
{
"model": "doubao-seedream-5-5-261028",
"created": 1794000000,
"data": [
{
"url": "https://example.com/generated-image.png",
"size": "2048x2048",
"output_format": "png",
"background": "opaque"
}
],
"usage": {
"generated_images": 1,
"output_tokens": 16384,
"total_tokens": 16384
}
}Image links are upstream links, valid for 24 hours after generation; save them in time.
Layer decomposition#
Set "layer_decomposition": true and pass one image to split through image. The model splits it into 1 base image and up to 99 PNG layers with a transparent channel. Unlike the OpenAI-compatible endpoint, this endpoint returns the complete information of every layer in data[]: stacking order z_index, name name, description description and bounding box bounding_box; text layers produced with text_recognition enabled also carry text_recognition.
If any layer fails to generate, the whole request fails; partial success is not supported.
Differences from the OpenAI-compatible format#
| Native format (this page) | OpenAI-compatible format | |
|---|---|---|
| Endpoints | POST /api/v3/images/generations | POST /v1/images/generations, POST /v1/images/edits |
| Request and response | Identical to the official Ark API | OpenAI Images format, usable with OpenAI SDKs directly |
| Layer decomposition result | Layer order, names, bounding boxes and OCR results | Only the image links of the layers |
| Streaming | Supported with stream: true | Not supported |
| Uploading local images | Not supported; references must be URLs or Base64 | multipart/form-data file upload supported |
| Image links | Upstream links, valid for 24 hours after generation | The same: upstream links, valid for 24 hours after generation |
Billing#
- Output images are billed per image by its actual pixels: up to 2.61 MP (the
1Kand1.5Ktiers), over 2.61 MP up to 4.63 MP (the2Ktier), and over 4.63 MP. Custom pixel sizes are tiered by the size of the returned image. - Input reference images are billed per image.
- Layer decomposition is billed per generated layer, each at its own tier.
- Images that fail or are not returned are not charged.
- See the platform Model Pricing page for the unit price.
Common errors#
The error body follows Ark's format, {"error": {"code": ..., "message": ...}}. When generation fails (including content rejected by upstream moderation), nothing is charged and error.message carries the reason returned by Ark.
| HTTP | Description |
|---|---|
| 400 | Missing or invalid parameter, e.g. an empty prompt, size outside the pixel range, or more than 10 reference images |
| 401 | API key missing or invalid |
| 403 | API key has no access to this model, or the account balance is insufficient |
| 429 | Too many requests, or the concurrency limit exceeded |
| 502 / 503 | Upstream returned an error or is temporarily unavailable; 503 also means no channel is available for this model in your group (for example a misspelled model name) |

