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.
API Nano Banana là gì?
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.1Nhà cung cấp 284
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
Nhà cung cấp 289
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
Nhà cung cấp 286
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
Nhà cung cấp 287
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
Nhà cung cấp 93
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
Nhà cung cấp 92
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
Nhà cung cấp 38
Lịch sử fingerprint
Không có dữ liệu phát hiện
Trạng thái
Không có dữ liệu phát hiện
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 — Giá cả
| Mô hình | Độ phân giải | Giá của chúng tôi | Chính thức | Tiết kiệm |
|---|---|---|---|---|
| 1K | $0.0151/ ảnh | $0.0336/ ảnh | 55% | |
| 2K | $0.0227/ ảnh | $0.0504/ ảnh | 55% | |
| 4K | $0.034/ ảnh | $0.0756/ ảnh | 55% | |
| 0.5K | $0.009/ ảnh | $0.045/ ảnh | 80% | |
| 1K | $0.0134/ ảnh | $0.067/ ảnh | 80% | |
| 2K | $0.0202/ ảnh | $0.101/ ảnh | 80% | |
| 4K | $0.0302/ ảnh | $0.151/ ảnh | 80% | |
| 1K | $0.0201/ ảnh | $0.134/ ảnh | 85% | |
| 2K | $0.0201/ ảnh | $0.134/ ảnh | 85% | |
| 4K | $0.036/ ảnh | $0.24/ ảnh | 85% | |
| 1K | $0.0374/ ảnh | $0.039/ ảnh | 4% |
Khả năng
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.
Trường hợp sử dụng
Bắt đầu nhanh
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 API — Câu hỏi thường gặp
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.
Các mô hình khác
Cách bắt đầu
Nạp số dư của bạn
Thêm tín dụng qua USDT hoặc Epay. Một số dư hoạt động trên tất cả các mô hình và nhà cung cấp.
Nạp tiền ngayTạo khóa API của bạn
Đăng ký và tạo khóa API tương thích OpenAI trong 3 giây. Không cần thẻ tín dụng.
Tạo khóa APICắm vào mã hoặc tác nhân của bạn
Thay thế bằng khóa APIMaster và URL cơ sở của bạn — hoạt động với bất kỳ công cụ tương thích OpenAI nào: Claude Code, Cursor, LangChain, LiteLLM, v.v.
Xem tài liệu