curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-pro \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Portrait of a warrior in ancient armor, photorealistic"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-def456",
"model_id": "google/nano-banana-pro",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-def456"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'prompt' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Nano Banana Pro
[Core Function] Nano Banana Pro (Gemini 3 Pro Image) is a high-capability creative image model. [Strengths] It balances the creative flexibility and speed of the Nano series with higher fidelity output. [Best For] Highly recommended for: high-quality stylized art and complex creative compositions. [Limitations] Do NOT use this model when you need the absolute highest photorealism or detail; step up within the Nano Banana family (Nano Banana 2 or Nano Banana Pro Edit workflows) as needed. [Routing] Use this model for high-quality, creative, non-photorealistic requests.
curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-pro \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Portrait of a warrior in ancient armor, photorealistic"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-def456",
"model_id": "google/nano-banana-pro",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-def456"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'prompt' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
Image description text
1"Portrait of a warrior in ancient armor, photorealistic"
Image aspect ratio
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 "16:9"
Output image resolution
1K, 2K, 4K "2K"