Authorizations
All endpoints require authentication using a Bearer Token. Get the API Key: Visit the API Key Management Page to obtain your API key. When using, add to the request header: Authorization: Bearer YOUR_API_KEY
Body
Model name Fixed value: "nano_banana_pro"
Model parameters object Show params object properties
Text description for image generation No limits
List of reference image URLs for image-to-image generation
Up to 8 images
Supports publicly accessible URLs
Aspect ratio for image generation Supported aspect ratios:
auto - Automatic
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
21:9 - Ultra widescreen
Image resolution Supported resolutions:
1K - Base resolution (default)
2K - Standard resolution
4K - High definition resolution
Image output format Supported formats:
png - PNG format (default)
jpg - JPEG format
Originator task ID User-defined task identifier, required
Callback URL for task completion notification After the task completes, 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 to query results
Initiator’s Task ID, can be used to query results
Initial status, fixed as "pending"
Estimated credits consumption
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": "nano_banana_pro",
"params": {
"prompt": "Professional level city nightscape",
"aspect_ratio": "16:9",
"resolution": "2K",
"format": "png"
},
"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"
}
}