All models

Nano Banana 2

google/nano-banana-2
Google Image GenerationFastHigh Quality

Google's second-generation image generation model with improved quality and speed.

Quick start

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "google/nano-banana-2",
    "prompt": "<your prompt>"
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "google/nano-banana-2", "prompt": "<your prompt>"}'

Examples

example
example
example
example

Parameters

Input
prompt string required

Text prompt describing what to generate.

aspect_ratio string optional

Output aspect ratio (e.g. 16:9, 1:1, 9:16).

google_search boolean optional

Allow the model to use Google Search for grounding.

image_input array optional

Reference image(s) to guide generation (HTTPS URL or upload).

image_search boolean optional

Allow the model to search for reference images.

output_format string optional

File format of the output (e.g. png, jpeg, mp4).

resolution string optional

Output resolution / quality tier.

Output
image: string