curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-pro",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "Transform this image into an oil painting style",
"ratio": "16:9",
"resolution": "2k",
"imageUrls": ["https://example.com/input.jpg"]
}
}'
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-pro",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "Change the background to a sunset beach scene",
"ratio": "1:1",
"resolution": "2k",
"imageUrls": ["https://example.com/portrait.jpg"]
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
}
}
Nano Banana Image
Image to Image
Nano Banana Image-to-Image — Transform existing images with AI
POST
/
api
/
v1
/
task
/
submit
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-pro",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "Transform this image into an oil painting style",
"ratio": "16:9",
"resolution": "2k",
"imageUrls": ["https://example.com/input.jpg"]
}
}'
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-pro",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "Change the background to a sunset beach scene",
"ratio": "1:1",
"resolution": "2k",
"imageUrls": ["https://example.com/portrait.jpg"]
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
}
}
Use Nano Banana to transform existing images based on text prompts. Apply style transfer, modifications, or creative edits.
Available Models
nano-banana · nano-banana-2 · nano-banana-pro
Model name, e.g.
nano-banana, nano-banana-2, nano-banana-pro.Webhook callback URL.
Hide properties
Hide properties
Prompt describing the transformation you want to apply.
Output image aspect ratio. Options:
16:9, 9:16, 1:1, 4:3, 3:4. Default: 16:9.Output resolution. Options:
1k, 2k, 4k. Default: 1k (only nano-banana-2 and nano-banana-pro support 2K/4K).Array containing up to 10 input image URLs. Must be publicly accessible HTTPS URLs.
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-pro",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "Transform this image into an oil painting style",
"ratio": "16:9",
"resolution": "2k",
"imageUrls": ["https://example.com/input.jpg"]
}
}'
curl --request POST \
--url https://api.maxapi.io/api/v1/task/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-pro",
"callBackUrl": "https://example.com/webhook",
"input": {
"prompt": "Change the background to a sunset beach scene",
"ratio": "1:1",
"resolution": "2k",
"imageUrls": ["https://example.com/portrait.jpg"]
}
}'
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
}
}
Query Result
{
"code": 0,
"msg": "ok",
"data": {
"taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc",
"status": "SUCCESS",
"input": {
"model": "nano-banana-pro",
"prompt": "Transform this image into an oil painting style",
"ratio": "16:9",
"resolution": "2k",
"imageUrls": ["https://example.com/input.jpg"]
},
"result": {
"type": "image",
"urls": [
"https://example.com/output/image-c3d4e5f6.png"
]
},
"created_at": "2026-02-12T12:00:00.000000Z",
"updated_at": "2026-02-12T12:00:18.000000Z"
}
}
Input Image Requirements:
- Formats: JPEG, PNG, WebP
- Must be publicly accessible HTTPS URL
- Recommended size: < 10MB
- The output aspect ratio and resolution are independent of the input image
⌘I