Skip to main content
POST
/
v3
/
nano-banana-light-i2i
Nano Banana Light I2I
curl --request POST \
  --url https://api.myrouter.ai/v3/nano-banana-light-i2i \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "mask": "<string>",
  "size": "<string>",
  "images": [
    {}
  ],
  "prompt": "<string>",
  "quality": "<string>",
  "response_format": "<string>"
}
'
{
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ],
  "created": 123
}
Generate new images based on input images and text descriptions.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

mask
string
Mask image URL or Base64 encoding
size
string
default:"1x1"
The size of the generated imagePossible values: 1x1, 2x3, 3x2, 3x4, 4x3, 4x5, 5x4, 9x16, 16x9, 21x9
images
array
required
List of input images to processArray length: 1 - 10Image URL or Base64 encoding
prompt
string
required
Text description of the desired image. Maximum length is 1000 characters.
quality
string
default:"1k"
Select image generation qualityPossible values: 1k, 2k, 4k
response_format
string
default:"b64_json"
The format of the returned generated image. Currently only b64_json is supported.Possible values: url, b64_json

Response

data
array
required
List of generated images
created
integer
required
Creation timestamp