gemini-nano-banana-2.1-ext API
Generate images from text or edit reference images with Nano Banana 2.1 Ext on APISea.
gemini-nano-banana-2.1-extHarga API gemini-nano-banana-2.1-ext
Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.
| Pilihan | APISea | Rasmi | Jimat |
|---|---|---|---|
| LalaiLalai | $0.0132 | $0.0336 | −61% |
| 1K | $0.0132 | $0.0336 | −61% |
| 2K | $0.0154 | $0.0504 | −69% |
| 4K | $0.0198 | $0.1134 | −83% |
Harga dinyatakan dalam bagi setiap imej.
Apakah itu gemini-nano-banana-2.1-ext?
Google’s Nano Banana model gemini-nano-banana-2.1-ext supports text-to-image generation and reference image editing on APISea. Supply a Chinese or English prompt, then omit image_urls for a new image or provide reference images for editing. It returns one image per task, with 1K, 2K, and 4K resolution tiers and 14 supported aspect ratios. References can be publicly accessible HTTP(S) URLs or Base64 Data URLs, with up to 40MB per image and 60MB total.
Call POST /v1/images/generations using your APISea API key. Processing is asynchronous: retrieve the result using the returned task_id or configure a webhook. Ext billing is per image, based on resolution: Default and 1K cost $0.0132 per image, 2K costs $0.0154 per image, and 4K costs $0.0198 per image. The default configuration is about 61% below the provider list price. APISea uses pay-as-you-go pricing and bills only for successful requests.
Sorotan gemini-nano-banana-2.1-ext
Generation and reference editing
Create an image from a text prompt or supply image_urls for image-to-image generation and editing. Prompts support Chinese and English.
Resolution and aspect controls
Choose 1K, 2K, or 4K output across 14 supported aspect ratios. Set size to auto to let the model decide; image-to-image output follows the reference image aspect ratio.
Per-image pricing
Ext pricing is $0.0132 per image for Default or 1K, $0.0154 per image for 2K, and $0.0198 per image for 4K. Each Ext task produces one image.
Optional official fallback
Enable official_fallback to attempt the official version if Ext fails. If the official version is used, billing switches to actual token usage.
Cara memanggil API gemini-nano-banana-2.1-ext dalam 4 langkah
- 01
Dapatkan API key
Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.
- 02
Tetapkan base URL
Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.
- 03
Hantar permintaan
Panggil POST /v1/images/generations dengan "model": "gemini-nano-banana-2.1-ext" dan parameter di bawah.
- 04
Urus respons
Respons mengandungi task_id. Lakukan tinjauan berkala menggunakan GET /v1/tasks/{task_id} sehingga status menjadi completed, kemudian muat turun URL hasil.
Contoh permintaan
Dokumentasi: Nano banana 2.1 Image Generationcurl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-nano-banana-2.1-ext",
"prompt": "An orange cat on a wooden table beside a cup of coffee, soft morning light, realistic photography",
"size": "16:9",
"resolution": "2K",
"n": 1
}'Parameter
| Parameter | Jenis | Wajib | Lalai | Penerangan |
|---|---|---|---|---|
model | string | Wajib | — | Model ID: `gemini-nano-banana-2.1` or `gemini-nano-banana-2.1-ext`. |
nsfw_check | boolean | Pilihan | false | Whether to run content moderation before submitting the image task. |
prompt | string | Wajib | — | A text description for image generation or editing. Chinese and English are supported. |
size | string | Pilihan | auto | Output aspect ratio. Supports `1:4`, `4:1`, `1:8`, `8:1`, `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, and `21:9`. Formats such as `16x9` are also accepted. |
resolution | string | Pilihan | 1K | Output resolution tier: `1K`, `2K`, or `4K`. Lowercase values are accepted. This also affects billing. |
n | integer | Pilihan | 1 | Number of output images: 1–4 for the official version; only 1 for Ext. |
image_urls | string[] | Pilihan | — | Reference image list. Omit for text-to-image; provide for image-to-image or editing. Each item supports: |
official_fallback | boolean | Pilihan | false | Only applies to `gemini-nano-banana-2.1-ext`. When enabled, attempts to complete the task using the official version if Ext fails. |
webhook | string | Pilihan | — | Callback URL notified when the task ends. See [task webhooks](/docs/tasks/webhook). |
Perkara yang boleh anda bina dengan gemini-nano-banana-2.1-ext
Marketing image workflows
Build a tool that generates campaign images from written briefs, with selectable portrait, square, or landscape aspect ratios.
Reference-based creative editing
Let users upload reference images and describe edits in Chinese or English, then retrieve the completed image through task queries.
Multi-format content production
Submit separate tasks for images intended for different layouts, such as 9:16 vertical placements and 16:9 landscape placements.
Budgeted image generation
Offer resolution-based image generation with per-image cost estimates, keeping official_fallback disabled when predictable Ext pricing is required.
Petua untuk hasil yang lebih baik
- 01
Set resolution explicitly
Use only 1K, 2K, or 4K for resolution. The default is 1K, and your selection affects billing.
- 02
Keep n at one
Set n to 1 for Ext requests. For multiple images, submit separate Ext tasks or use the official version.
- 03
Plan asynchronous retrieval
Poll task status every 3–5 seconds and allow at least 3 minutes for the overall wait timeout. Alternatively, supply a webhook for notification when the task ends.
- 04
Choose fallback deliberately
Leave official_fallback false to retain Ext per-image billing. Enable it only when you accept a switch to actual token usage if the official version completes the task.
Had dan perkara yang perlu diketahui
Ext supports only one output image per request.
Reference images are limited to 40MB each and 60MB total.
Resolution values 0.5K and 512 return HTTP 400; actual pixel dimensions are determined by the returned image.
Soalan lazim API gemini-nano-banana-2.1-ext
How much does gemini-nano-banana-2.1-ext cost on APISea?
Default and 1K cost $0.0132 per image, 2K costs $0.0154 per image, and 4K costs $0.0198 per image. The default configuration is about 61% below the provider list price, and APISea bills only for successful requests.
How do I call this model through APISea?
Send an authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to gemini-nano-banana-2.1-ext and a required prompt. The response provides a task_id for asynchronous status and result retrieval.
Can it edit images as well as generate them?
Yes. Provide image_urls containing publicly accessible HTTP(S) image URLs or Base64 Data URLs for image-to-image generation or editing; omit image_urls for text-to-image generation.
Which output settings and input limits apply?
The model supports 1K, 2K, and 4K resolution tiers and 14 aspect ratios, but only one output image per Ext request. Reference images can be up to 40MB each, with a 60MB total limit.
How does Ext compare with the official version?
Both versions offer the same output dimensions and image quality. Ext uses per-image billing and supports one output image, while the official version bills by actual token usage and supports 1–4 images per request.
Can I use generated images commercially?
Commercial use is subject to the provider's terms. Review the applicable terms for your intended use; the supplied model documentation does not specify commercial licensing rights.
Model berkaitan
Nano Banana
gemini-2.5-flash-image-previewgemini-2.5-flash-image-preview-official
Nano Banana Pro
gemini-3-pro-image-previewgemini-3-pro-image-preview-official
Nano Banana 2
gemini-3.1-flash-image-previewgemini-3.1-flash-image-preview-official
Nano-Banana-2-Lite
gemini-3.1-flash-lite-imagegemini-3.1-flash-lite-image-ext
Mula membina dengan gemini-nano-banana-2.1-ext
Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.