> ## 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 Light 画像から画像生成

入力画像とテキスト説明に基づいて新しい画像を生成します

## リクエストヘッダー

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer 認証形式: Bearer \{\{API Key}}。
</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

  画像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="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>
