apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

Image Series

POSTNative Seedream Format (Sync)

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Image Series / Doubao Seedream / Sync - Volcengine Native Format

Sync - Volcengine Native FormatPOSTImageGenerationDoubaoSeedreamArkdoubao-seedream-5-5-261028

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.

POSThttps://api.apimax.ai/api/v3/images/generations
Try it
Bearer API KeyJSONServer-side call

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#

http
POST /api/v3/images/generations

Ark'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:

http
Authorization: Bearer <token>
Content-Type: application/json

Supported models#

ModelDescription
doubao-seedream-5-5-261028Doubao Seedream 5.5

Request example#

cURL
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.

FieldTypeDescription
modelstringFixed as doubao-seedream-5-5-261028
promptstringDescription 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"
sizestringResolution 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)
imagestring / string[]Reference images: publicly accessible HTTP(S) URLs or Base64 data URLs. At most 10 images, at most 30MB each
streambooleanWhen set to true, the response uses Ark's streaming format (SSE); see the official Ark documentation for the format
response_formatstringurl returns image links; b64_json returns Base64 image data
output_formatstringpng (default) or jpeg
backgroundstringTransparency mode: auto (default), transparent or opaque
watermarkbooleanWhether to add an "AI generated" watermark in the bottom-right corner of the image; default true
layer_decompositionbooleanWhether to enable layer decomposition, see "Layer decomposition" below
layer_decomposition_optionsobjectLayer 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 stream and sequential_image_generation are not validated locally; Ark handles them by its own rules.

Response#

The Ark result is returned as is:

json
{
  "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
EndpointsPOST /api/v3/images/generationsPOST /v1/images/generations, POST /v1/images/edits
Request and responseIdentical to the official Ark APIOpenAI Images format, usable with OpenAI SDKs directly
Layer decomposition resultLayer order, names, bounding boxes and OCR resultsOnly the image links of the layers
StreamingSupported with stream: trueNot supported
Uploading local imagesNot supported; references must be URLs or Base64multipart/form-data file upload supported
Image linksUpstream links, valid for 24 hours after generationThe 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 1K and 1.5K tiers), over 2.61 MP up to 4.63 MP (the 2K tier), 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.

HTTPDescription
400Missing or invalid parameter, e.g. an empty prompt, size outside the pixel range, or more than 10 reference images
401API key missing or invalid
403API key has no access to this model, or the account balance is insufficient
429Too many requests, or the concurrency limit exceeded
502 / 503Upstream 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)

Next steps

All docs
Midjourney API OverviewMidjourney MJ Proxy-compatible API: endpoints, actions, per-call pricing, task states and error codes.Nano Banana 2.1 Image GenerationGoogle Nano Banana 2.1 (Gemini) async image generation. Excels at multi-image blending, real-person references, and text rendering, with a thinking level option.Nano Banana 2 Lite Image GenerationAsynchronous image generation with Google Nano Banana 2 (Gemini), excelling at multi-image fusion, real-person references, and text rendering, with support for reasoning levels.Nano Banana Pro Image GenerationAsynchronous image generation with Google Nano Banana 2 (Gemini), excelling at multi-image fusion, real-person references, and text rendering, with support for reasoning levels.GPT Image 2 Image Generation/v1/images/async-generationsNano Banana 2 Image GenerationGoogle Nano Banana 2 (Gemini) async image generation. Excels at multi-image blending, real-person references, and text rendering, with support for thinking levels.
On this page
OverviewOverviewAPISupported modelsRequest exampleRequest notesResponseLayer decompositionDifferences from the OpenAI-compatible formatBillingCommon errorsNext steps
API

POST /api/v3/images/generations