AIAPIAIAPI API

Seedream v5.0 Pro

Model ID bytedance/seedream-v5.0-pro/text-to-image

Overview

Single-image generation with preset dimensions and prompt optimization controls.

ByteDance · text-to-image

Endpoint

POST /v1/images/generations/async

Authentication

Authorization: Bearer <AIAPIAIAPI_API_KEY>

Request Body

ParameterTypeRequiredNullableDefaultConstraintsDescription
modelstringYesNo-values: bytedance/seedream-v5.0-pro/text-to-imageModel ID used to route the request.
promptstringYesNo--Positive prompt; under 600 English words is recommended.
sizestringNoNo`2048x2048`values: 2048x2048, 2368x1776, 1776x2368, 2816x1584, 1584x2816, 2496x1664, 1664x2496, 3136x1344, 1024x1024, 1536x1536, 1776x1328, 1328x1776, 2048x1152, 1152x2048Output 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.
thinkingstringNoNo`enabled`values: enabled, disabledEnable or disable deep thinking during prompt optimization.
prompt_optimization_modestringNoNo`standard`values: standard, fastPrompt optimization mode; fast reduces latency. Both modes have the same provider price.
output_formatstringNoNo`jpeg`values: jpeg, pngOutput file format.

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.

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.

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/text-to-image",
      "prompt": "A cinematic camera movement through a forest"
    }'

JSON

{
  "model": "bytedance/seedream-v5.0-pro/text-to-image",
  "prompt": "A cinematic camera movement through a forest"
}

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.