> ## 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 Light テキストから画像 (reverse)

テキスト記述に基づいて画像を生成します

## リクエストヘッダー

<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="n" type="integer" default={1}>
  生成する画像数。1から10の間である必要があります。

  値の範囲：\[1, 10]
</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` のいずれかである必要があります。

  オプション値：`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>
