Image model API

Nano Banana 2.1 API

Nano Banana 2.1 is Google’s fast image-generation and editing model, designed to create high-quality visuals from text prompts and transform existing images through natural-language instructions. It combines sharp text rendering, multi-image editing, and real-time search grounding with output resolutions up to 4K, making it suitable for both everyday creative tasks and professional design workflows.

Model id
nano-banana-21
Takes
Text (required)
Makes
Image
Endpoint
POST /api/v1/images/generations
Made by
Google
Mode
Synchronous

Call Nano Banana 2.1

Base URL https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.

Model nano-banana-21

POST /api/v1/images/generations

curl https://payload.rentprompts.com/api/v1/images/generations \
  -H "Authorization: Bearer rp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-21",
  "prompt": "A lighthouse at dusk, watercolor",
  "n": 1
}'

Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →

What a typical call costs

Worked out from Nano Banana 2.1's published price (3.6 J / image). You pay only for successful results, from your Joule balance.
  • 1 image3.6 Joules
  • 4 images14.4 Joules

Send requests to POST /api/v1/images/generations. Nano Banana 2.1 answers synchronously: the result comes back in the response to the same request.

Settings

Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).
NameTypeDefaultRange / options
aspect_ratioselect——
output_formatselect——
Nano Banana 2.1 API — Pricing & Code Examples | RentPrompts