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

## テキストから画像生成

### エンドポイントURL

```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>

***

## 画像から画像生成

### エンドポイントURL

```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>
