Authorizations
All endpoints require authentication using a Bearer Token. Get the API Key: Visit the API Key management page to get your API Key. Add the following to the request headers when using: Authorization: Bearer YOUR_API_KEY
Body
Model Name Fixed value: "seedream_v4"
Model Parameters Object Show params object properties
Text description for image generation No limit
List of reference image URLs for image-to-image generation
Up to 9 images
Supports publicly accessible URLs
Aspect ratio of the generated image Supported aspect ratios:
1:1 - Square (default)
16:9 - Landscape widescreen
9:16 - Portrait vertical
4:3 - Landscape 4:3
3:4 - Portrait 3:4
Image resolution Supported resolutions:
1K - Basic resolution (default)
2K - Standard resolution
4K - High definition resolution
Number of images to generate Supported values:
1 - Generate 1 image (default)
2 - Generate 2 images
4 - Generate 4 images
Initiator’s Task ID User-defined task identifier, required
Callback notification URL upon task completion After task completion, the system will POST the result notification to this URL
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 credits consumed
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",
"params": {
"prompt": "Beautiful sunset by the seaside",
"aspect_ratio": "16:9",
"resolution": "2K",
"output_n": "2"
}
}'
{
"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"
}
}