Skip to main content
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"]
  }
}'
{
  "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
string
required
Model name, e.g. nano-banana, nano-banana-2, nano-banana-pro.
callBackUrl
string
Webhook callback URL.
input
object
required
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"]
  }
}'
{
  "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