Authorizations
All endpoints require authentication using a Bearer Token. Get the API Key: Visit the API Key Management Page to obtain your API Key. Include in the request header: Authorization: Bearer YOUR_API_KEY
Body
Model name Fixed value: "seedream_v4_5"
Model parameters object Show params object properties
Text description for image generation Unlimited
List of reference image URLs for image-to-image generation
Up to 9 images
Supports publicly accessible URLs
Aspect ratio for image generation Supported aspect ratios:
1:1 - Square (default)
3:2 - Landscape 3:2
2:3 - Portrait 2:3
4:3 - Landscape 4:3
3:4 - Portrait 3:4
5:4 - Landscape 5:4
4:5 - Portrait 4:5
16:9 - Landscape widescreen
9:16 - Portrait vertical screen
21:9 - Ultra widescreen
Image resolution Supported resolutions:
basic - Basic resolution (default)
high - High definition resolution
Client task ID User-defined task identifier, required
Callback URL after task completion After the task is completed, the system will send a POST request to this URL to notify the result
Custom metadata Returned as-is when querying results, can be used for business identification
Response
Task ID, used for querying results
Initiator’s task ID, can be used to query results
Initial status, fixed as "pending"
Estimated consumed credits
Creation time (ISO format)
cURL
Python
JavaScript
Go
Java
PHP
Ruby
Swift
C#
C
Objective-C
OCaml
Dart
R
curl --request POST \
--url https://test.aireiter.com/api/openapi/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedream_v4_5",
"params": {
"prompt": "A dreamy forest night scene",
"aspect_ratio": "16:9",
"resolution": "high"
},
"out_task_id": "my_task_123456"
}'
{
"statusCode" : 200 ,
"message" : "" ,
"data" : {
"task_id" : "order_p9EyMzcBxkH7zxQhlnP6k" ,
"out_task_id" : "my_task_123456" ,
"status" : "pending" ,
"estimated_credits" : 100 ,
"created_at" : "2025-12-22T06:03:28.242Z"
}
}