> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maxapi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Image to Image

> Nano Banana Image-to-Image — Transform existing images with AI

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`

<ParamField body="model" type="string" required>
  Model name, e.g. `nano-banana`, `nano-banana-2`, `nano-banana-pro`.
</ParamField>

<ParamField body="callBackUrl" type="string">
  Webhook callback URL.
</ParamField>

<ParamField body="input" type="object" required>
  <Expandable title="properties" defaultOpen>
    <ParamField body="prompt" type="string" required>
      Prompt describing the transformation you want to apply.
    </ParamField>

    <ParamField body="ratio" type="string">
      Output image aspect ratio. Options: `16:9`, `9:16`, `1:1`, `4:3`, `3:4`. Default: `16:9`.
    </ParamField>

    <ParamField body="resolution" type="string">
      Output resolution. Options: `1k`, `2k`, `4k`. Default: `1k` (only `nano-banana-2` and `nano-banana-pro` support 2K/4K).
    </ParamField>

    <ParamField body="imageUrls" type="array" required>
      Array containing **up to 10 input image URLs**. Must be publicly accessible HTTPS URLs.
    </ParamField>
  </Expandable>
</ParamField>

<RequestExample>
  ```bash Style Transfer theme={null}
  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"]
    }
  }'
  ```

  ```bash Image Modification theme={null}
  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"]
    }
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 Submitted successfully theme={null}
  {
    "code": 0,
    "msg": "ok",
    "data": {
      "taskId": "c3d4e5f6-a7b8-9012-cdef-234567890abc"
    }
  }
  ```
</ResponseExample>

***

## Query Result

```json theme={null}
{
  "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"
  }
}
```

<Warning>
  **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
</Warning>
