curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2-edit/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Transform this into a watercolor painting",
"image": "https://example.com/image.jpg"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-i2i003",
"model_id": "google/nano-banana-2",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-i2i003"
}
}
}Nano Banana 2 multimodal model in image-to-image mode. Accepts an image URL. Supports multiple aspect ratios and resolutions.
POST
/
nano-banana-2-edit
/
async
curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2-edit/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Transform this into a watercolor painting",
"image": "https://example.com/image.jpg"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-i2i003",
"model_id": "google/nano-banana-2",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-i2i003"
}
}
}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
Editing instruction describing the desired transformation
Minimum string length:
1Example:
"Transform this into a watercolor painting"
Input image URLs. Pass 1–14 images; all images are used together as reference context for the edit.
Required array length:
1 - 14 elementsImage URL (e.g. https://example.com/image.jpg).
Example:
["https://example.com/image.jpg"]Output image aspect ratio
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:
"16:9"
Output image resolution
Available options:
512, 1K, 2K, 4K Example:
"1K"
⌘I