curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A colorful abstract painting with flowing shapes"
}
'
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-ghi789",
"model_id": "google/nano-banana-2",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-ghi789"
}
}
}Nano Banana 2 text-to-image model. Supports 14 aspect ratios and 512-4K resolution.
POST
/
nano-banana-2
/
async
curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A colorful abstract painting with flowing shapes"
}
'
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-ghi789",
"model_id": "google/nano-banana-2",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-ghi789"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
application/json
Image description text
Minimum string length:
1Example:
"A colorful abstract painting with flowing shapes"
Image aspect ratio (14 options supported)
Available options:
1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 Example:
"1:1"
Output image resolution
Available options:
512, 1K, 2K, 4K Example:
"1K"
⌘I