APIMaster.ai

Nano Banana API

Nano Banana 2.1, Nano Banana 2, Nano Banana Pro and the original Nano Banana — compare live routes and generate or edit images with one API key.

Choose a model below to see its available routes, resolution options and API example. Nano Banana 2 offers 0.5K–4K tiers; 2.1 and Pro offer 1K–4K; the original model offers 1K. Prices are fetched from the live marketplace and billed per image, not per million tokens.

Вхід
Референсні зображення (кілька)
JPEG / PNG / WebP (макс. 10MB) · До 14 референсних зображень
Вихід
Ваш результат з’явиться тут.

Що таке Nano Banana API?

Nano Banana is a family of image-generation and editing models, not a single model ID. APIMaster currently lists four models in this family. Each has its own model ID, supported resolutions and channel pricing. Compare the options below, then call the Images API with your APIMaster key.

Вибрати модель

Nano Banana 2.1: text-to-image and reference-image editing at 1K, 2K or 4K, with up to 14 reference images and wide aspect ratios. Request one image at a time (n=1).

gemini-nano-banana-2.1
284
gemini-nano-banana-2.1

Провайдер 284

1K
$0.01512/image$0.033655% off
2K
$0.02268/image$0.050455% off
4K
$0.05103/image$0.113455% off

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

289
gemini-nano-banana-2.1

Провайдер 289

1K
$0.01601/image$0.033652% off
2K
$0.02402/image$0.050452% off
4K
$0.05404/image$0.113452% off

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

286
gemini-nano-banana-2.1

Провайдер 286

1K
$0.02184/image$0.033635% off
2K
$0.03276/image$0.050435% off
4K
$0.07371/image$0.113435% off

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

287
gemini-nano-banana-2.1

Провайдер 287

1K
$0.02352/image$0.033630% off
2K
$0.03528/image$0.050430% off
4K
$0.07938/image$0.113430% off

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

93
gemini-nano-banana-2.1

Провайдер 93

1K
$0.02822/image$0.033616% off
2K
$0.04234/image$0.050416% off
4K
$0.09526/image$0.113416% off

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

92
gemini-nano-banana-2.1

Провайдер 92

1K
$0.03002/image$0.033611% off
2K
$0.04503/image$0.050411% off
4K
$0.10132/image$0.113411% off

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

38
gemini-nano-banana-2.1

Провайдер 38

1K
$0.0336/image
2K
$0.0504/image
4K
$0.1134/image

Історія відбитків

Немає даних перевірки

Доступність

Немає даних перевірки

Live per-image prices by model, resolution and route — availability and final charges follow the marketplace card and your account's billing factors.

Nano Banana API — Ціни

МодельРоздільна здатністьНаша цінаОфіційнаЕкономія
1K$0.0151/ зобр.$0.0336/ зобр.55%
2K$0.0227/ зобр.$0.0504/ зобр.55%
4K$0.051/ зобр.$0.1134/ зобр.55%
0.5K$0.009/ зобр.$0.045/ зобр.80%
1K$0.0134/ зобр.$0.067/ зобр.80%
2K$0.0202/ зобр.$0.101/ зобр.80%
4K$0.0302/ зобр.$0.151/ зобр.80%
1K$0.0201/ зобр.$0.134/ зобр.85%
2K$0.0201/ зобр.$0.134/ зобр.85%
4K$0.036/ зобр.$0.24/ зобр.85%
1K$0.0374/ зобр.$0.039/ зобр.4%

Можливості

Four models, one API key

Switch between 2.1, 2, Pro and the original model without changing your API base URL or authentication.

Generation & reference-image editing

Generate from a text prompt or upload reference images to guide edits. Reference-image limits and optional search support depend on the selected model and route.

Resolution-aware pricing

Compare live prices by model and resolution, from Nano Banana 2's 0.5K tier to 4K on 2, 2.1 and Pro. The original Nano Banana is limited to 1K.

Сценарії використання

E-commerce product shotsUI mockups & app screensMarketing visualsReference-image editingHigh-resolution creative assets

Швидкий старт

curl https://apimaster.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMASTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-nano-banana-2.1",
    "prompt": "An orange cat at sunset, watercolor",
    "size": "1:1",
    "resolution": "1K",
    "n": 1
  }'
Nano Banana 2.1 API

Nano Banana API — Часті запитання

Which Nano Banana models are available?

Currently listed model IDs: gemini-nano-banana-2.1, gemini-3.1-flash-image, gemini-3-pro-image, gemini-2.5-flash-image. Select a model above; the quick-start example updates to match it.

Which Nano Banana model should I choose?

Try 2.1 for its 1K/2K/4K generation and editing workflow, 2 for 0.5K output or optional search grounding, and Pro for detailed creative work. Keep the original model for compatible 1K workflows. Compare current route prices and test your own prompts rather than assuming the newest model is always best.

Which endpoint do I call?

Use POST /v1/images/generations for text-to-image and POST /v1/images/edits for multipart reference-image editing. JSON generation requests can include image_urls. Use the Images API, not /chat/completions; see the model documentation for route-specific support.

How is billing calculated?

Billing is per image, with separate prices for each model, route and resolution. There is no single resolution multiplier shared by all Nano Banana models. Check the live price table and marketplace cards; your account's billing factors and usage logs determine the final charge.

Can I use reference images?

Yes. Use image_urls or upload files in the playground. The playground allows up to 14 reference images for 2, 2.1 and Pro, and up to 3 for the original model. Each uploaded file must be no larger than 10MB; route-specific limits may be lower.

Can every Nano Banana model generate 4K images?

No. Nano Banana 2, 2.1 and Pro have 4K pricing tiers; the original gemini-2.5-flash-image only has a 1K tier. The resolution selector changes with the selected model, and a particular channel may support fewer tiers.

How do I protect my API key and images?

Keep your API key on your server, not in a public frontend. Requests use encrypted connections. Data-handling policies depend on the selected upstream provider; review the applicable policy before submitting sensitive images.

Інші моделі

Як почати

01

Поповніть баланс

Додайте кредити через USDT або Epay. Один баланс працює для всіх моделей і постачальників.

Поповнити зараз
02

Створіть свій ключ API

Зареєструйтеся та створіть сумісний з OpenAI ключ API за 3 секунди. Кредитна картка не потрібна.

Створити ключ API
03

Підключіть до свого коду або агента

Замініть на свій ключ APIMaster і базову URL-адресу — працює з будь-яким сумісним з OpenAI інструментом: Claude Code, Cursor, LangChain, LiteLLM та іншими.

Переглянути документацію