Skip to content
הדף עדיין אינו זמין בשפה שלכם, ולכן הוא מוצג באנגלית.
Google · Nano Banana

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-ext

תמחור API של gemini-nano-banana-2.1-ext

כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.

אפשרותAPISeaרשמיחיסכון
ברירת מחדלברירת מחדל$0.0132$0.0336−61%
1K$0.0132$0.0336−61%
2K$0.0154$0.0504−69%
4K$0.0198$0.1134−83%

המחירים הם לכל תמונה.

מהו 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.

המאפיינים הבולטים של 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.

איך לקרוא ל-API של gemini-nano-banana-2.1-ext ב-4 שלבים

  1. 01

    יצירת מפתח API

    יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.

  2. 02

    הגדרת כתובת הבסיס

    יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.

  3. 03

    שליחת הבקשה

    יש לקרוא ל-POST /v1/images/generations עם "model": "gemini-nano-banana-2.1-ext" והפרמטרים שלהלן.

  4. 04

    טיפול בתגובה

    התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.

curl --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
  }'

פרמטרים

פרמטרסוגנדרשברירת מחדלתיאור
modelstringנדרש—Model ID: `gemini-nano-banana-2.1` or `gemini-nano-banana-2.1-ext`.
nsfw_checkbooleanאופציונליfalseWhether to run content moderation before submitting the image task.
promptstringנדרש—A text description for image generation or editing. Chinese and English are supported.
sizestringאופציונליautoOutput 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.
resolutionstringאופציונלי1KOutput resolution tier: `1K`, `2K`, or `4K`. Lowercase values are accepted. This also affects billing.
nintegerאופציונלי1Number of output images: 1–4 for the official version; only 1 for Ext.
image_urlsstring[]אופציונלי—Reference image list. Omit for text-to-image; provide for image-to-image or editing. Each item supports:
official_fallbackbooleanאופציונליfalseOnly applies to `gemini-nano-banana-2.1-ext`. When enabled, attempts to complete the task using the official version if Ext fails.
webhookstringאופציונלי—Callback URL notified when the task ends. See [task webhooks](/docs/tasks/webhook).

מה אפשר לבנות עם 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.

טיפים לקבלת תוצאות טובות יותר

  • 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.

מגבלות ודברים שכדאי לדעת

  • 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.

שאלות נפוצות על 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.

מודלים קשורים

עומק: יותר מ-250 מודלים · טעינת יתרה מינימלית $50

מתחילים לבנות עם gemini-nano-banana-2.1-ext

מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.