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.
POST
/
google
/
nano-banana-2-lite
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"
}Body
application/json