Dola Seedream 5.0 Flash API

POST /v1/images/generations

dola-seedream-5.0-flash synchronous text-to-image generation: a one-image 1024x1024 URL request, response schema, and image-count pricing.

Basic text-to-image request

Required parameters: model, prompt

Available parameters: model, prompt, n, size, response_format

Request parameters

ParameterTypeRequiredDescription
modelstringYesUse the exact callable identifier dola-seedream-5.0-flash in requests. In responses, model is the identifier reported by the service; read it as returned. Options: dola-seedream-5.0-flash
promptstringYesText describing the image to generate.
nintegerNoRequested image count; the default is 1. The basic example uses one image; this page does not promise other count limits.
sizestringNoImage dimensions as a widthxheight string. The basic request and fictional response use 1024x1024. Read actual output dimensions from data[].size and the image; other dimensions and defaults are not promised.
response_formatstringNoImage return format. The basic example uses url; this page does not promise other formats.
## Image pricing and dimensions Pricing uses the actual returned image count, without additional output-pixel tiers for this model. See the model catalog for customer prices. This page documents text-to-image generation only, with no reference-image or image-editing request. The basic example uses `1024x1024`; this example is not a default or a promise that all dimensions are requestable. ## Reading and saving results - Read `data[].url`, download the image promptly, and save it. Do not assume the URL remains available indefinitely. Use `data[].output_format` and the actual image content to identify its encoding. - `data[].background`, `data[].output_format`, `data[].size`, and `usage` children may be absent. Read them as returned; do not turn missing values into zero or treat response fields as supported request parameters. - `usage.generated_images` and `usage.input_images` are reported image counts. `usage.output_tokens` and `usage.total_tokens` are reported usage counters, not additional charges on top of image pricing. No fixed summation or conversion relationship is promised. - This endpoint returns a synchronous result. Read `data[]` on success; no task polling is required by this page. ## Complete nested schema Response fields can be absent. Required flags apply to request parameters. ### Request body | Field path | Type | Required | Meaning | |---|---|---|---| | `model` | string | Yes | Use the exact callable identifier dola-seedream-5.0-flash in requests. In responses, model is the identifier reported by the service; read it as returned. | | `prompt` | string | Yes | Text describing the image to generate. | | `n` | integer | No | Requested image count; the default is 1. The basic example uses one image; this page does not promise other count limits. | | `size` | string | No | Image dimensions as a widthxheight string. The basic request and fictional response use 1024x1024. Read actual output dimensions from data[].size and the image; other dimensions and defaults are not promised. | | `response_format` | string | No | Image return format. The basic example uses url; this page does not promise other formats. | ### Successful response | Field path | Type | Required | Meaning | |---|---|---|---| | `created` | integer | No | Creation time reported in the response, in Unix seconds; it can be absent. | | `data` | array[object] | No | Array of generated image results, with one object for each returned image. | | `data[].url` | string | No | Image download URL. Download and save the image promptly. The example URL is an inaccessible fictional placeholder, not an actual generated file. | | `data[].background` | string | No | Reported image-background marker. Read it as returned; it is not documented here as a request parameter or a universal enum. | | `data[].output_format` | string | No | Actual returned image encoding. The example uses png. | | `data[].size` | string | No | Image dimensions as a widthxheight string. The basic request and fictional response use 1024x1024. Read actual output dimensions from data[].size and the image; other dimensions and defaults are not promised. | | `model` | string | No | Use the exact callable identifier dola-seedream-5.0-flash in requests. In responses, model is the identifier reported by the service; read it as returned. | | `usage` | object | No | Optional reported usage. An absent field differs from an explicitly reported zero; do not invent missing values. | | `usage.generated_images` | integer | No | Reported number of generated images. | | `usage.input_images` | integer | No | Reported input-image count; the basic text-to-image example uses zero. This page does not document reference-image requests. | | `usage.output_tokens` | integer | No | Reported output-usage counter; it is not an additional charge on top of the image price. | | `usage.total_tokens` | integer | No | Reported total-usage counter. No fixed conversion or arithmetic relationship with the other counters is promised. | ### Error response | Field path | Type | Required | Meaning | |---|---|---|---| | `error` | object|string | No | Error object; actual fields can vary with the error category. | | `error.message` | string | No | Readable error explanation. | | `error.type` | string | No | Error category. | | `error.param` | string | No | Related parameter name; it can be null or absent. | | `error.code` | string | No | Error code; it can be null or absent. | Errors may use an `error` string, an `error` object, or a `detail` explanation. Error examples are fictional and do not define fixed messages or codes. ## Reference

Request example

curl --request POST https://api.router.ai/v1/images/generations \
  --header "Authorization: Bearer $API_KEY" \
  --header "Content-Type: application/json" \
  --data-raw '{
  "model": "dola-seedream-5.0-flash",
  "prompt": "A fictional ceramic cloud-shaped desk ornament in lavender, standing on a light peach pedestal, soft side lighting, no text.",
  "n": 1,
  "size": "1024x1024",
  "response_format": "url"
}'

Endpoint reference: Aliyun Qwen-Image text-to-image

POST /v1/images/edits

Edit a reference image with a prompt using JSON or file upload.

Reference image editing

Required parameters: model, prompt, image

Available parameters: model, prompt, image, images, image_url, n, response_format, stream, size

Request parameters

ParameterTypeRequiredDescription
modelstringYesRequired. Use the exact model name dola-seedream-5.0-flash.
promptstringYesEditing instruction, 1–32000 characters. Describe the requested changes.
imagestring | object | arrayYesRequired reference image. Accepts an HTTPS URL, an image data URL, an object with url or image_url, or an array of these values. Use 1–10 images and exactly one of image, images or image_url.
imagesarrayNoOptional alias of image. Elements are image URLs, data URLs, or objects with url/image_url. Do not combine with image.
image_urlstring | object | arrayNoOptional alias of image. Do not combine with image or images.
nintegerNoOptional positive integer, default 1. Ordinary editing supports one output; use the model-specific layer options for decomposition.
response_formatstringNoOptional: url or b64_json. Support and returned format depend on the model.
streambooleanNoOmit or set to false; this editing endpoint does not provide streaming.
sizestring | objectNoOptional returned image size.
Read url or b64_json from each data item. Fewer images than the requested limit may be returned; inspect every item. On failure read error instead of treating it as image output. Save generated images promptly because URLs may expire. This page describes the platform editing endpoint; the model vendor’s native request format may differ. Reviewed on 2026-11-27.

Request example

curl https://api.router.ai/v1/images/edits \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "dola-seedream-5.0-flash",
  "prompt": "将示例陶瓷杯改为蓝色,保留背景。",
  "image": "https://example.invalid/reference.png",
  "n": 1
}'

Endpoint reference: OpenAI GPT Image editing (i2i)