> ## 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 theme={null}
POST https://{api_domain}/v3/nano-banana-pro-light-t2i
```

### 请求头

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：`Bearer \{\{API 密钥\}\}`
</ParamField>

### 请求体

<ParamField body="size" type="string" default="1x1">
  生成图像的大小。

  可选值：`1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  所需图像的文本描述。
</ParamField>

<ParamField body="quality" type="string" default="1k">
  选择图像生成质量。

  可选值：`1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="url">
  返回生成的图像的格式。

  可选值：`url`, `b64_json`
</ParamField>

### 响应

<ResponseField name="data" type="object[]" required={true}>
  生成的图像列表。

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="url" type="string" required={false}>
      图像 URL（当 response\_format 为 url 时）。
    </ResponseField>

    <ResponseField name="b64_json" type="string" required={false}>
      Base64 编码的图像数据（当 response\_format 为 b64\_json 时）。
    </ResponseField>

    <ResponseField name="revised_prompt" type="string" required={false}>
      修订后的提示词（如果有的话）。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created" type="integer" required={true}>
  创建时间戳。
</ResponseField>

***

## 图生图

### 接口地址

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

### 请求头

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：`Bearer \{\{API 密钥\}\}`
</ParamField>

### 请求体

<ParamField body="mask" type="string">
  遮罩图像 URL 或 Base64 编码。
</ParamField>

<ParamField body="size" type="string" default="1x1">
  生成图像的大小。

  可选值：`1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="images" type="string[]" required={true}>
  要处理的输入图像列表。

  数组长度：1 - 10
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  所需图像的文本描述。
</ParamField>

<ParamField body="quality" type="string" default="1k">
  选择图像生成质量。

  可选值：`1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="url">
  返回生成的图像的格式。

  可选值：`url`, `b64_json`
</ParamField>

### 响应

<ResponseField name="data" type="object[]" required={true}>
  生成的图像列表。

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="url" type="string" required={false}>
      图像 URL（当 response\_format 为 url 时）。
    </ResponseField>

    <ResponseField name="b64_json" type="string" required={false}>
      Base64 编码的图像数据（当 response\_format 为 b64\_json 时）。
    </ResponseField>

    <ResponseField name="revised_prompt" type="string" required={false}>
      修订后的提示词（如果有的话）。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created" type="integer" required={true}>
  创建时间戳。
</ResponseField>
