Nano-Banana-2-Lite API
Generate low-cost 1K images from text or reference images with Nano-Banana-2-Lite on APISea.
gemini-3.1-flash-lite-imageتسعير API لنموذج Nano-Banana-2-Lite
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| إدخال نصي لكل 1M رمز | $0.22 | $0.25 | −12% |
| إدخال نصي مخزّن مؤقتًا لكل 1M رمز | $0 | $0 | — |
| إدخال صورة لكل 1M رمز | $0.22 | $0.25 | −12% |
| إدخال صورة مخزّنة مؤقتًا لكل 1M رمز | $0 | $0 | — |
| إخراج نصي لكل 1M رمز | $1.32 | $1.50 | −12% |
| إخراج صورة لكل 1M رمز | $26.40 | $30.00 | −12% |
التكلفة التقريبية لكل مخرج
| الخيار | APISea | رسمي |
|---|---|---|
| افتراضي | ≈ $0.0352 | $0.04 |
ما هو Nano-Banana-2-Lite؟
Nano-Banana-2-Lite is Google's image generation model in the Nano Banana family, documented as the fastest and cheapest image model in the Gemini 3.1 family. On APISea, it is suited to large-scale, low-cost image generation workflows, from social assets to reference-based variations. Call gemini-3.1-flash-lite-image or its interchangeable alias nano-banana-2-lite with a text prompt and, optionally, up to 14 reference images. Outputs are limited to 1K resolution, with selectable aspect ratios and one to four images per request.
Generation runs asynchronously through the official Gemini channel. APISea uses pay-as-you-go token billing and charges only for successful requests; multi-image requests are billed by the actual number of successful images. The Default estimate is about $0.0352 per image, compared with provider list about $0.04—about 12% below list price. Actual cost depends on input and output tokens, and cached text and image inputs are priced at $0 per 1M tokens.
أبرز مزايا Nano-Banana-2-Lite
Text and Image Inputs
Generate images from text prompts or supply up to 14 reference images for image-to-image generation. References can be public image URLs or full Base URI-encoded image data.
Selectable Aspect Ratios
Choose square, portrait, landscape, or ultra-wide formats, including 1:1, 4:5, 16:9, and 21:9. All outputs use the supported 1K resolution tier.
Asynchronous Task Callbacks
Image generation uses asynchronous tasks through the official Gemini channel. Provide a webhook base URL to receive success or failure callbacks at that URL plus /callback.
Token-Based Image Pricing
The Default estimate is about $0.0352 per image, about 12% below the provider list price. Cached text input and cached image input each cost $0 per 1M tokens.
كيفية استدعاء API الخاص بـ Nano-Banana-2-Lite في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/images/generations مع "model": "gemini-3.1-flash-lite-image" والمعلمات أدناه.
- 04
تعامل مع الاستجابة
تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.
أمثلة على الطلبات
الوثائق: Nano Banana Lite Image Generation# model can be "gemini-3.1-flash-lite-image", the alias "nano-banana-2-lite" also works
curl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-3.1-flash-lite-image",
"prompt": "赛博朋克风格的城市夜景,霓虹灯闪烁",
"size": "16:9",
"resolution": "1K",
"n": 1
}'المعلمات
| المعلمة | النوع | مطلوب | افتراضي | الوصف |
|---|---|---|---|---|
model | string | مطلوب | gemini-3.1-flash-lite-image | Image generation model name |
nsfw_check | boolean | اختياري | false | Whether to run content moderation before submitting the image task. |
prompt | string | مطلوب | — | Text description for image generation |
size | string | اختياري | — | Image aspect ratio |
resolution | string | اختياري | 1K | Output image resolution |
n | integer | اختياري | 1 | Number of images to generate |
image_urls | array | اختياري | — | Reference image URL list for image-to-image generation |
webhook | string | اختياري | — | Task callback URL (base) |
ما الذي يمكنك إنشاؤه باستخدام Nano-Banana-2-Lite
Social Asset Generation
Build prompt-driven workflows for square posts, portrait images, and widescreen covers using explicit aspect ratios.
Reference-Based Variations
Let users supply product, object, or character references alongside a prompt to generate image-to-image variations.
Large-Scale Creative Drafts
Generate 1K visual drafts for teams exploring campaign concepts or content ideas with low-cost image generation.
Image Generation Interfaces
Build an app that submits individual image tasks and uses webhook callbacks to update users when each task succeeds or fails.
نصائح للحصول على نتائج أفضل
- 01
Specify the Aspect Ratio
Set size explicitly rather than relying on auto. For text-to-image, auto defaults to 1:1 or 16:9; for image-to-image, the ratio follows the upstream response.
- 02
Keep Resolution at 1K
Set resolution to 1K or omit it to use the default. Values of 2K, 4K, and 0.5K silently downgrade to 1K without an error.
- 03
Request One Image
Use n as the unquoted integer 1 for image-by-image progress and clearer billing. Values from 1 to 4 are supported; larger requests launch concurrent upstream requests and bill for successful images.
- 04
Prepare Valid References
Use publicly accessible URLs or full data URIs for JPEG, PNG, or WebP images. Keep each reference at or below 10MB and the total at or below 14 images.
القيود ومعلومات مهمة
Only 1K output is supported; other documented resolution values silently downgrade to 1K.
google_search and official_fallback are unsupported, and this model has no -official variant.
Maximum input is 1,000,000 tokens, and maximum output is 128,000 tokens.
الأسئلة الشائعة حول API الخاص بـ Nano-Banana-2-Lite
How much does Nano-Banana-2-Lite cost on APISea?
The Default estimate is about $0.0352 per image, compared with provider list about $0.04, making the Default configuration about 12% below list price. Billing is token-based: per 1M tokens, text input is $0.22, image input is $0.22, text output is $1.32, and image output is $26.40; cached text input and cached image input are each $0.
How do I call Nano-Banana-2-Lite through APISea?
Send an authenticated POST request to https://api.apisea.ai/v1/images/generations with your APISea key as a Bearer token. Supply the required model and prompt fields, using gemini-3.1-flash-lite-image or the equivalent alias nano-banana-2-lite; generation is asynchronous.
Which image generation parameters are supported?
The endpoint accepts model, prompt, size, resolution, n, image_urls, nsfw_check, and webhook. Resolution defaults to 1K, n defaults to 1, and nsfw_check defaults to false; enabling it runs prompt and input-image moderation before submission.
What are the resolution and reference-image limits?
The model supports only 1K output and up to 14 reference images, each no larger than 10MB. References must be JPEG, PNG, or WebP files supplied as public URLs or full data URIs; n supports one to four images per request.
Can I use generated images commercially?
Commercial use is subject to the provider's terms. Review Google's applicable terms and any rights associated with your prompts and reference images before using outputs commercially.
How does the base model differ from the -ext route?
The documentation lists gemini-3.1-flash-lite-image-ext as an alternative route with the same parameters and constraints, including 1K output and up to 14 references. Billing depends on each channel's backend configuration; no quality or speed difference is specified.
نماذج ذات صلة
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
gemini-3.1-flash-lite-image-ext
Nano Banana 2.1
gemini-nano-banana-2.1ابدأ التطوير باستخدام Nano-Banana-2-Lite
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.