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

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

### APIエンドポイント

```text theme={null}
POST https://{api_domain}/v3/nano-banana-2-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}>
  画像生成のためのテキストプロンプト。日本語と英語に対応。1000文字以内を推奨。
</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="images" type="string[]" required={false}>
  生成された画像のURLまたはBase64文字列の配列
</ResponseField>

***

## 画像から画像生成

### APIエンドポイント

```text theme={null}
POST https://{api_domain}/v3/nano-banana-2-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="size" type="string" default="1x1">
  出力画像のアスペクト比。システムが自動的に対応するピクセルサイズにマッピングします。

  選択可能な値：`1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="image" type="string" required={true}>
  画像生成のための参照画像。URLまたはBase64エンコードに対応。
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  画像生成のためのテキストプロンプト。日本語と英語に対応。1000文字以内を推奨。
</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="images" type="string[]" required={false}>
  生成された画像のURLまたはBase64文字列の配列
</ResponseField>
