Seedream 5.0 Flash
Overview
Seedream 5.0 Flash is ByteDance’s fast and cost-efficient AI image model in the Seedream 5.0 family. It supports high-quality image generation, precise image editing, multi-reference inputs, and layer decomposition, making it ideal for fast, scalable creative workflows.
Test API KEY: key_00000000000000000000000000000000Endpoints
1. Create Task
Request
POST https://api.pixwithapi.online/api/task/createHeaders
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Api-Key | {API_KEY} | Yes |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | Image generation or editing instructions. The Web interface supports up to 4000 characters. |
| image_urls | array | Conditional | Provide 1–10 image URLs for image-to-image; omit for text-to-image. Supported formats: JPEG, PNG, WEBP. Maximum file size: 30MB per image. |
| model_id | string | Yes | 0-94 for both text-to-image and image-to-image. Providing images automatically selects image-to-image. |
| options | object | No | Configuration options. Omitted options use the defaults below. |
| options.prompt_optimization | boolean | No | Translate the prompt into English when true. API default: false; the Web interface defaults to true. |
| options.aspect_ratio | string | No | Default: '1:1'. Valid values: '1:1', '4:3', '3:4', '16:9', '9:16', '2:3', '3:2', '21:9'. |
| options.resolution | string | No | Default: '1K'. Valid values: '1K', '1.5K', '2K'. |
Output format defaults to PNG. The API generates one image per task; the Web interface can request 1–4 outputs.
Example Request - Text-to-Image
{
"prompt": "a ceramic coffee cup on a wooden table in soft morning light",
"model_id": "0-94",
"options": {
"prompt_optimization": false,
"aspect_ratio": "16:9",
"resolution": "1K"
}
}Example Request - Image-to-Image
{
"prompt": "combine these references into a cohesive product campaign image",
"image_urls": [
"https://cdn.pixwithapi.online/example-1.jpg",
"https://cdn.pixwithapi.online/example-2.png"
],
"model_id": "0-94",
"options": {
"prompt_optimization": false,
"aspect_ratio": "1:1",
"resolution": "2K"
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success or failure message |
| data | object | Task information |
| data.task_id | string | Task identifier used to query results |
| data.estimated_time | int | Estimated time in seconds |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "d425ab4dc256f0ebaa84862b9cea8a3d",
"estimated_time": 60
}
}After creation, use the returned task_id with Get Task Results to check the task status and retrieve the generated image.
Last updated on