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

Generate a new image based on an input image and text description.

## Request Headers

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

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API key}}.
</ParamField>

## Request Body

<ParamField body="mask" type="string">
  Mask image URL or Base64 encoding
</ParamField>

<ParamField body="size" type="string" default="1x1">
  Size of the generated image

  Optional values: `1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="images" type="string[]" required={true}>
  List of input images to process

  Array length: 1 - 10

  Image URL or Base64 encoding
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Text description of the desired image. Maximum length is 1000 characters.
</ParamField>

<ParamField body="quality" type="string" default="1k">
  Select the image generation quality

  Optional values: `1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="url">
  Format in which the generated image is returned.

  Optional values: `url`, `b64_json`
</ParamField>

## Response Information

<ResponseField name="data" type="object[]" required={true}>
  List of generated images

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="url" type="string" required={false}>
      Image URL (when response\_format is url)
    </ResponseField>

    <ResponseField name="b64_json" type="string" required={false}>
      Base64-encoded image data (when response\_format is b64\_json)
    </ResponseField>

    <ResponseField name="revised_prompt" type="string" required={false}>
      Revised prompt (if any)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created" type="integer" required={true}>
  Creation timestamp
</ResponseField>
