PeumeAPI

AI generation · Gemini

Nano Banana Lite Edit

Image editing and composition with Nano Banana Lite.

From $0.045 per 1,000 tokens

Call it

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

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-lite-edit.

Parameters

promptRequiredstring

The edit or composition instruction: what to change, add or combine, and what to keep the same. Refer to the inputs in order ("the first image", "the video"). Up to 10,000 characters.

image_sizestring

Output size: 1K (about $0.034) per image for the image tokens alone — the only size this model offers (default).

1K

Example: 1K

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, high. Higher levels can help complex layouts and text; thinking tokens bill as text output.

minimal · 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.

imagesarray

Public https:// URLs of up to 14 images (max 10 MB each): the image to edit, or objects, characters and styles to combine.

videosarray

Public https:// URLs of up to 3 short videos (max 20 MB each) to draw from.

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.