> ## 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="size" type="string" default="1x1">
  生成する画像のサイズ

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

<ParamField body="prompt" type="string" required={true}>
  必要な画像のテキスト説明。画像はurl経由でアップロードできます。最大長は1000文字です。
</ParamField>

<ParamField body="quality" type="string" default="1k">
  画像生成品質を選択

  選択可能な値：`1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="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>
