Seedream v5.0 Pro Edit
Model ID bytedance/seedream-v5.0-pro/edit
Overview
Image editing from 1 to 10 references, with optional transparent PNG output.
Endpoint
POST /v1/images/generations/async
Authentication
Authorization: Bearer <AIAPIAIAPI_API_KEY>
Request Body
| Parameter | Type | Required | Nullable | Default | Constraints | Description |
|---|---|---|---|---|---|---|
model | string | Yes | No | - | values: bytedance/seedream-v5.0-pro/edit | Model ID used to route the request. |
prompt | string | Yes | No | - | - | Positive prompt; under 600 English words is recommended. |
images | array | Yes | No | - | min_items: 1; max_count: 10; accepts: URL, Base64 data URL | 1–10 reference images. Supported formats: JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC and HEIF. The first reference is free at the provider; additional references cost extra. |
size | string | No | No | `2048x2048` | values: 2048x2048, 2368x1776, 1776x2368, 2816x1584, 1584x2816, 2496x1664, 1664x2496, 3136x1344, 1024x1024, 1536x1536, 1776x1328, 1328x1776, 2048x1152, 1152x2048 | Output dimensions from the supported presets. Up to 2.61 million output pixels uses the provider's 1.5K tier; larger sizes use the 2K tier. |
thinking | string | No | No | `enabled` | values: enabled, disabled | Enable or disable deep thinking during prompt optimization. |
prompt_optimization_mode | string | No | No | `standard` | values: standard, fast | Prompt optimization mode; fast reduces latency. Both modes have the same provider price. |
output_format | string | No | No | `jpeg` | values: jpeg, png | Output file format. |
background | string | No | No | `opaque` | values: opaque, transparent | Transparent output requires output_format=png and exactly one source PNG carrying an alpha channel. The provider validates the input image format and alpha channel. |
model
Type: string · Required: Yes · Nullable: No
Model ID used to route the request.
prompt
Type: string · Required: Yes · Nullable: No
Positive prompt; under 600 English words is recommended.
images
Type: array · Required: Yes · Nullable: No
1–10 reference images. Supported formats: JPEG, PNG, WEBP, BMP, TIFF, GIF, HEIC and HEIF. The first reference is free at the provider; additional references cost extra.
size
Type: string · Required: No · Nullable: No
Output dimensions from the supported presets. Up to 2.61 million output pixels uses the provider's 1.5K tier; larger sizes use the 2K tier.
thinking
Type: string · Required: No · Nullable: No
Enable or disable deep thinking during prompt optimization.
prompt_optimization_mode
Type: string · Required: No · Nullable: No
Prompt optimization mode; fast reduces latency. Both modes have the same provider price.
output_format
Type: string · Required: No · Nullable: No
Output file format.
background
Type: string · Required: No · Nullable: No
Transparent output requires output_format=png and exactly one source PNG carrying an alpha channel. The provider validates the input image format and alpha channel.
Request Example
curl --request POST \
--url https://aiapiaiapi.com/v1/images/generations/async \
--header 'Authorization: Bearer $AIAPIAIAPI_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "bytedance/seedream-v5.0-pro/edit",
"prompt": "A cinematic camera movement through a forest",
"images": ["https://example.com/reference.jpg"]
}'JSON
{
"model": "bytedance/seedream-v5.0-pro/edit",
"prompt": "A cinematic camera movement through a forest",
"images": ["https://example.com/reference.jpg"]
}Response
{
"code": "success",
"message": "",
"data": { "task_id": "image_01K2ABC123" }
}Task Status
Use the task_id from the create response:
GET /v1/images/generations/async/{task_id}
{
"code": "success",
"message": "",
"data": {
"task_id": "image_01K2ABC123",
"status": "SUCCESS",
"progress": "100%",
"outputs": ["https://cdn.example.com/images/image_01K2ABC123.png"],
"start_time": 1786960805,
"finish_time": 1786960900,
"submit_time": 1786960800,
"fail_reason": ""
}
}Error Responses
Validation errors return HTTP 400 with a stable error code.
{
"code": "unsupported_parameter",
"message": "The parameter is not supported by this model.",
"data": null
}Documentation Index
Fetch the complete documentation index at:
https://aiapiaiapi.com/llms.txt
Use this file to discover all available API documentation.