curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-pro-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Replace the background with a futuristic neon cityscape at night",
"image": "https://example.com/image.jpg"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-i2i002",
"model_id": "google/nano-banana-pro-edit",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-i2i002"
}
}
}{
"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 Edit
[Core Function] Nano Banana Pro Edit is a high-capability creative image editing model. [Strengths] It provides high-quality creative edits, background replacements, and style transformations. [Best For] Highly recommended for: detailed creative modifications and complex style transfers. [Limitations] Do NOT use for strict photorealistic restoration. [Routing] Use this model for detailed, high-quality creative edits.
curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-pro-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Replace the background with a futuristic neon cityscape at night",
"image": "https://example.com/image.jpg"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-i2i002",
"model_id": "google/nano-banana-pro-edit",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-i2i002"
}
}
}{
"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
Editing instruction describing the desired transformation
1"Replace the background with a futuristic neon cityscape at night"
Input image URLs. Pass 1–14 images; all images are used together as reference context for the edit.
1 - 14 elementsImage URL (e.g. https://example.com/image.jpg).
["https://example.com/image.jpg"]
Output image aspect ratio
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 "4:3"
Output image resolution
1K, 2K, 4K "2K"