> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Nano Banana Light I2I

Generate new images based on input images and text descriptions.

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum: `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">
  The size of the generated image

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

<ParamField body="images" type="array" 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 image generation quality

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

<ParamField body="response_format" type="string" default="b64_json">
  The format of the returned generated image. Currently only b64\_json is supported.

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

## Response

<ResponseField name="data" type="array" 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}>
      The revised prompt (if applicable)
    </ResponseField>
  </Expandable>
</ResponseField>

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