curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2-lite \
--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-nb2lite-001",
"model_id": "google/nano-banana-2-lite",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-nb2lite-001"
}
}
}{
"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 2 Lite
[Core Function] Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) is the lightweight, cost-efficient text-to-image model of the Nano Banana 2 family. [Strengths] It generates images even faster and more cheaply than Nano Banana 2, well suited to high-volume creative and stylized output at lower cost. [Best For] Highly recommended for: high-volume batch generation, quick drafts and thumbnails, and cost-sensitive creative iteration. [Limitations] Do NOT use this model when you need maximum detail, high-end photorealism, or the richest quality; use Nano Banana 2 or Nano Banana Pro instead. [Routing] Choose the Lite variant when cost and throughput matter more than peak quality; step up to Nano Banana 2 for richer results.
curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2-lite \
--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-nb2lite-001",
"model_id": "google/nano-banana-2-lite",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-nb2lite-001"
}
}
}{
"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"A colorful abstract painting with flowing shapes"
Image aspect ratio (14 options supported)
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 "1:1"
Output image resolution (Flash Lite supports 1K only)
1K "1K"