Skip to main content
POST
Nano Banana 2

Authorizations

Authorization
string
header
required

A Mouter API key or OAuth access token.

Headers

Idempotency-Key
string

Reuse the key with the same credential and input when retrying the same submission.

Required string length: 1 - 128

Body

application/json
prompt
string
required
Required string length: 1 - 32000
image_urls
string[]
Maximum array length: 10
Required string length: 1 - 2048
size
enum<string>
default:2K
Available options:
1K,
2K,
4K
aspect_ratio
enum<string>
default:auto
Available options:
auto,
1:1,
16:9,
9:16,
4:3,
3:4,
3:2,
2:3,
21:9

Response

Existing task returned for an idempotent retry. An available result matches the output schema shown here.

code
integer
required
message
string
required
Allowed value: ""
data
object
required
request_id
string | null
required