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

# Nano Banana Pro Reverse

## Text-to-Image

### Endpoint

```text theme={null}
POST https://{api_domain}/v3/nano-banana-pro-light-t2i
```

### Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format, for example: `Bearer \{\{API Key\}\}`
</ParamField>

### Request Body

<ParamField body="size" type="string" default="1x1">
  Size of the generated image.

  Possible values: `1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text description of the desired image.
</ParamField>

<ParamField body="quality" type="string" default="1k">
  Select image generation quality.

  Possible values: `1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="url">
  Format of the returned generated image.

  Possible values: `url`, `b64_json`
</ParamField>

### Response

<ResponseField name="data" type="object[]" required={true}>
  List of generated images.

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="url" type="string" required={false}>
      Image URL (when response\_format is url).
    </ResponseField>

    <ResponseField name="b64_json" type="string" required={false}>
      Base64-encoded image data (when response\_format is b64\_json).
    </ResponseField>

    <ResponseField name="revised_prompt" type="string" required={false}>
      Revised prompt (if any).
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created" type="integer" required={true}>
  Creation timestamp.
</ResponseField>

***

## Image-to-Image

### Endpoint

```text theme={null}
POST https://{api_domain}/v3/nano-banana-pro-light-i2i
```

### Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format, for example: `Bearer \{\{API Key\}\}`
</ParamField>

### Request Body

<ParamField body="mask" type="string">
  Mask image URL or Base64 encoding.
</ParamField>

<ParamField body="size" type="string" default="1x1">
  Size of the generated image.

  Possible values: `1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="images" type="string[]" required={true}>
  List of input images to process.

  Array length: 1 - 10
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text description of the desired image.
</ParamField>

<ParamField body="quality" type="string" default="1k">
  Select image generation quality.

  Possible values: `1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="url">
  Format of the returned generated image.

  Possible values: `url`, `b64_json`
</ParamField>

### Response

<ResponseField name="data" type="object[]" required={true}>
  List of generated images.

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="url" type="string" required={false}>
      Image URL (when response\_format is url).
    </ResponseField>

    <ResponseField name="b64_json" type="string" required={false}>
      Base64-encoded image data (when response\_format is b64\_json).
    </ResponseField>

    <ResponseField name="revised_prompt" type="string" required={false}>
      Revised prompt (if any).
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created" type="integer" required={true}>
  Creation timestamp.
</ResponseField>
