doubao-seedream-3-0-t2i-250415
doubao-seedream-3-0-t2i-250415 Image Generation API
Supports Chinese and English text-to-image generation, suitable for general illustrations, product visuals, poster drafts, and concept art.
curl -X POST "https://api.routescope.ai/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "doubao-seedream-3-0-t2i-250415", "prompt": "The ability to describe this API gateway in plain Chinese." }'{
"created": 1,
"data": {}
}Authorization
BearerAuth
Model relay interface recognition. Request heading: Autoration: Bearer .
In: header
Request Body
application/json
Picture model name.
"doubao-seedream-3-0-t2i-250415"Inverted words. Range: 1 to 200000 characters, with a specific upper limit based on the model official interface.
Returns the number of pictures. Creates the number of candidates. Scope: 1 to 10; specific ceilings are based on the model official interface.
1 <= value <= 10Watermark switch: 0 means no watermark, 1 means with watermark; omitted defaults to with watermark.
10 | 1Generates dimensions, such as FD_PROTEC_0.
Generates a quality slot.
Generates style.
Picture returns format, e. g. FD_PROTEC_0 or FD_PROTEC_1__.
End-user identification.
Response Body
application/json
Request Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | None | Fixed to doubao-seedream-3-0-t2i-250415. |
prompt | string | Yes | None | Positive prompt. Keep it within about 300 Chinese characters or 600 English words. |
n | integer | No | 1 | Number of returned images. The gateway commonly supports 1 to 10, but actual limits depend on the upstream provider. |
size | string | No | 1024x1024 | Output size, for example 1024x1024. |
guidance_scale | number | No | 2.5 | Prompt consistency weight. Supported by Seedream 3.0 with a range of 1 to 10. |
response_format | string | No | url | Response format. Supports url or b64_json. |
watermark | boolean | No | true | Whether to add an AI-generated watermark. |
stream | boolean | No | false | Whether to enable streaming output. |
user | string | No | None | End-user identifier for auditing and rate limiting. |
Example Code
curl https://api.routescope.ai/v1/images/generations \
-H "Authorization: Bearer $ROUTESCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seedream-3-0-t2i-250415",
"prompt": "A minimalist tech-style API documentation cover with a blue-and-white palette and generous negative space.",
"size": "1024x1024",
"guidance_scale": 3,
"response_format": "url"
}'import requests
response = requests.post(
"https://api.routescope.ai/v1/images/generations",
headers={"Authorization": "Bearer YOUR_ROUTESCOPE_API_KEY"},
json={
"model": "doubao-seedream-3-0-t2i-250415",
"prompt": "A minimalist tech-style API documentation cover with a blue-and-white palette and generous negative space.",
"size": "1024x1024",
"guidance_scale": 3,
"response_format": "url",
},
)
print(response.json())const response = await fetch("https://api.routescope.ai/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ROUTESCOPE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "doubao-seedream-3-0-t2i-250415",
prompt: "A minimalist tech-style API documentation cover with a blue-and-white palette and generous negative space.",
size: "1024x1024",
guidance_scale: 3,
response_format: "url",
}),
});
console.log(await response.json());Response Example
{
"created": 1777432320,
"data": [
{
"url": "https://api.routescope.ai/assets/images/example.png",
"b64_json": null,
"revised_prompt": "Minimalist tech-style API documentation cover, blue-and-white palette, clean whitespace."
}
]
}Notes
Billing follows the model and channel ratio configured in the Routescope console. guidance_scale is valid for Seedream 3.0; do not continue sending this field when migrating to Seedream 4.0 or later.
Last updated on