PeumeAPI

AI generation · Gemini

Nano Banana 2.1

Text-to-image generation with Nano Banana 2.1.

From $0.045 per 1,000 tokens

Call it

curl https://api.peume.com/v1/call/gemini-nano-banana-2-1 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "your prompt",
    "image_size": "512"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: gemini-nano-banana-2-1.

Parameters

promptRequiredstring

The image to create: subject, composition, style, lighting and any text to render, in plain sentences. Up to 10,000 characters.

image_sizeRequiredstring

Output size (REQUIRED — it sets the price): 512 (about $0.022), 1K (about $0.034), 2K (about $0.050), 4K (about $0.113) per image for the image tokens alone.

512 · 1K · 2K · 4K

aspect_ratiostring

Output aspect ratio: 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9 or 21:9. Omit to let the model choose; set it when the shape matters.

1:1 · 1:4 · 1:8 · 2:3 · 3:2 · 3:4 · 4:1 · 4:3 · 4:5 · 5:4 · 8:1 · 9:16 …

thinking_levelstring

How much the model reasons before drawing: minimal, medium, high. Higher levels can help complex layouts and text; thinking tokens bill as text output.

minimal · medium · high

seedinteger

Optional seed (0-2147483647) for more repeatable results; identical output is not guaranteed.

system_instructionstring

Optional standing instruction for the model (role, house style), up to 5000 characters; billed as input tokens.

google_searchboolean

Let the model search the web before drawing (today's weather, recent events, real products). Each search query it runs bills $0.014.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.