curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Transform this into a watercolor painting"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-i2i003",
"model_id": "google/nano-banana-2-edit",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-i2i003"
}
}
}{
"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 Edit
[Core Function] Nano Banana 2 Edit is a high-speed image editing model. [Strengths] It rapidly modifies existing images or extracts image frames from videos based on text prompts. [Best For] Highly recommended for: rapid style transfer, quick image modifications, and fast creative edits. [Limitations] Do NOT use this model for meticulous photorealistic retouching. [Routing] Use this model by default for fast, creative image editing tasks.
curl --request POST \
--url https://api.modellix.ai/api/v1/google/nano-banana-2-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Transform this into a watercolor painting"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-i2i003",
"model_id": "google/nano-banana-2-edit",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-i2i003"
}
}
}{
"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
At least one of image or video must be provided. Both may be provided together.
Editing instruction describing the desired transformation
1"Transform this into a watercolor painting"
Input image URLs. At least one of image or video must be provided. Supports up to 14 images, or up to 10 images when video is also provided.
1 - 14 elementsImage URL (e.g. https://example.com/image.jpg).
["https://example.com/image.jpg"]
Input video URL. At least one of image or video must be provided. Must be a publicly accessible HTTPS URL without cookies, authentication, or custom headers. Maximum file size: 15 MB.
"https://example.com/video.mp4"
MIME type of the input video. Requires video.
video/mp4, video/mpeg, video/mpg, video/mpegps, video/mov, video/avi, video/wmv, video/flv "video/mp4"
Output image aspect ratio
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 "16:9"
Output image resolution
512, 1K, 2K, 4K "1K"