> ## 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 2 Reverse

## Text-to-Image

### Endpoint

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

### Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `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">
  Aspect ratio of the output image. The system will automatically map it to the corresponding pixel dimensions.

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

<ParamField body="prompt" type="string" required={true}>
  Text prompt used to generate the image, supports both Chinese and English. Recommended to not exceed 1000 characters.
</ParamField>

<ParamField body="quality" type="string" default="1k">
  Image generation quality level. Higher quality produces sharper and more detailed images.

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

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

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

### Response

<ResponseField name="images" type="string[]" required={false}>
  Array of generated image URLs or Base64 strings
</ResponseField>

***

## Image-to-Image

### Endpoint

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

### Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `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">
  Aspect ratio of the output image. The system will automatically map it to the corresponding pixel dimensions.

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

<ParamField body="image" type="string" required={true}>
  Reference image for image-to-image, supports URL or Base64 encoding.
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text prompt used to generate the image, supports both Chinese and English. Recommended to not exceed 1000 characters.
</ParamField>

<ParamField body="quality" type="string" default="1k">
  Image generation quality level. Higher quality produces sharper and more detailed images.

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

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

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

### 2.4 Response

<ResponseField name="images" type="string[]" required={false}>
  Array of generated image URLs or Base64 strings
</ResponseField>
