Seedream 5.0 Pro
Overview
Seedream 5.0 Pro is ByteDance’s multimodal image model for controlled generation, precision editing, complex information visualization, realistic portraits, and multilingual visual creation.
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 | The input prompt (e.g., “a cinematic product photograph”) |
| image_urls | array | Conditional | Provide 1-8 images for image-to-image mode. Omit for text-to-image mode. |
| model_id | string | Yes | 0-57 for both text-to-image and image-to-image. Providing image_urls automatically selects image-to-image mode. |
| options | object | Yes | Configuration options for the task |
| options.prompt_optimization | boolean | Yes | If true, all prompt words will be automatically translated into English. |
| options.aspect_ratio | string | No | Output aspect ratio. 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 | Output resolution. Default: '1K'. Valid values: '1K', '2K'. |
Credits
The first reference image is included in the base credits. Starting with the second reference image, each additional image costs 1 extra credit. API tasks generate one output, so credits are calculated as:
resolution base credits + max(reference image count - 1, 0)Example Request - Text-to-Image
{
"prompt": "a cinematic product photograph with dramatic studio lighting",
"model_id": "0-57",
"options": {
"prompt_optimization": true,
"aspect_ratio": "16:9",
"resolution": "1K"
}
}Example Request - Image-to-Image
{
"prompt": "combine these references into a premium editorial campaign image",
"image_urls": [
"https://cdn.pixwithapi.online/example-1.jpg",
"https://cdn.pixwithapi.online/example-2.jpg"
],
"model_id": "0-57",
"options": {
"prompt_optimization": true,
"aspect_ratio": "1:1",
"resolution": "2K"
}
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | 1=success, 0=error |
| message | string | Success and failure messages |
| data | object | |
| data.task_id | string | Task identifier |
| data.estimated_time | int | Estimated time in seconds |
Response
{
"code": 1,
"message": "success",
"data": {
"task_id": "d425ab4dc256f0ebaa84862b9cea8a3d",
"estimated_time": 60
}
}Last updated on