Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Google · Nano Banana

gemini-2.5-flash-image-preview-official API

Generate and edit images with Google's official Nano Banana route on APISea.

إنشاء الصورالصورمهمة غير متزامنةالتخزين المؤقت للمطالبات
معرّف النموذج
gemini-2.5-flash-image-preview-official

تسعير API لنموذج gemini-2.5-flash-image-preview-official

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

نوع الـ tokenAPISeaرسميوفّر
إدخال نصي لكل 1M رمز$0.264$0.30−12%
إدخال نصي مخزّن مؤقتًا لكل 1M رمز$0$0—
إدخال صورة لكل 1M رمز$0.264$0.30−12%
إدخال صورة مخزّنة مؤقتًا لكل 1M رمز$0$0—
إخراج نصي لكل 1M رمز$2.20$2.50−12%
إخراج صورة لكل 1M رمز$26.40$30.00−12%

التكلفة التقريبية لكل مخرج

الخيارAPISeaرسمي
افتراضي≈ $0.03432$0.039

ما هو gemini-2.5-flash-image-preview-official؟

Google's gemini-2.5-flash-image-preview-official, in the Nano Banana family, supports image generation and editing on APISea through the official channel. It is optimized for quick image creation and accepts a text prompt plus optional reference images for image-to-image tasks. Developers can specify an aspect ratio, use the supported 1K resolution, and submit one image per request. Processing is asynchronous: the generation endpoint returns a task ID for subsequent status queries rather than an immediately completed image.

APISea provides access with one API key and an OpenAI-compatible base URL, with pay-as-you-go billing only for successful requests. This model is token-billed, with an estimated Default cost of about $0.03432 per image, compared with provider list pricing of about $0.039 per image. The Default configuration is about 12% below the provider list price. Actual cost depends on input and output tokens; prompt-cache reads are supported, with cached text and image input priced at $0 per 1M tokens.

أبرز مزايا gemini-2.5-flash-image-preview-official

Generation and Editing

Create images from text or supply reference images for image-to-image generation and editing. Reference inputs accept public URLs or complete base64 Data URIs.

Aspect Ratio Controls

Choose from documented ratios including 1:1, 9:16, 16:9, and 21:9. Output resolution supports 1K.

Asynchronous Task Submission

Submit an image request and receive a task ID for subsequent queries. This lets your application track generation separately from the initial submission.

Optional Content Moderation

Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. It is disabled by default.

كيفية استدعاء API الخاص بـ gemini-2.5-flash-image-preview-official في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/images/generations مع "model": "gemini-2.5-flash-image-preview-official" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.

أمثلة على الطلبات

الوثائق: Nano banana Image Generation
# model can be "gemini-2.5-flash-image-preview-official", or the compatible alias "nano-banana-ext"
curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gemini-2.5-flash-image-preview-official",
    "prompt": "A bamboo forest path under moonlight",
    "size": "1:1",
    "n": 1,
    "image_urls": [
      "https://openai-documentation.vercel.app/images/cat_and_otter.png"
    ]
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوبgemini-2.5-flash-image-previewImage generation model name
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the image task.
promptstringمطلوب—Text description for image generation
sizestringاختياري—Image generation size
resolutionstringاختياري1KOutput image resolution
nintegerاختياري—Number of images to generate
official_fallbackbooleanاختياريfalseWhether to use the official channel fallback
image_urlsarrayاختياري—List of reference image URLs for image-to-image or image editing

ما الذي يمكنك إنشاؤه باستخدام gemini-2.5-flash-image-preview-official

Marketing Asset Drafts

Build a tool that generates visual concepts from campaign briefs, with explicit aspect ratios for different placements.

Reference-Based Image Editing

Let users upload reference images and describe changes, then submit those inputs through image_urls for editing.

Creative Concept Exploration

Generate individual image drafts from different prompt variations to help teams explore visual directions.

Queued Image Workflows

Build an asynchronous image creation flow that stores task IDs, queries status, and saves completed assets before their links expire.

نصائح للحصول على نتائج أفضل

  • 01

    Specify the Composition

    Describe the subject, setting, and desired composition within the 1,000-character prompt limit. Set size explicitly rather than relying on auto, whose behavior differs between text-to-image and image-to-image.

  • 02

    Use Supported Values

    Set resolution to 1K and n to the plain number 1, not a quoted string. Do not include official_fallback when calling this official model.

  • 03

    Prepare Reference Inputs

    Supply publicly accessible image URLs or complete Data URIs in image_urls. Keep each image at or below 10MB and include no more than 14 references.

  • 04

    Track and Save Results

    Store the returned task_id and query the task afterward. Download generated images promptly because their links remain valid for only 24 hours.

القيود ومعلومات مهمة

  • Generation is asynchronous and returns a task ID for subsequent queries.

  • This endpoint supports only 1K resolution and one image per request.

  • Prompts are limited to 1,000 characters; reference inputs are limited to 14 images of at most 10MB each.

الأسئلة الشائعة حول API الخاص بـ gemini-2.5-flash-image-preview-official

How much does Nano Banana Official cost on APISea?

The estimated Default cost is about $0.03432 per image, token-billed, versus provider list pricing of about $0.039 per image. The Default configuration is about 12% below the provider list price; actual charges depend on token usage.

How do I call gemini-2.5-flash-image-preview-official?

Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/images/generations with model set to gemini-2.5-flash-image-preview-official and a required prompt. The alias nano-banana is also supported, and the response returns a task ID for subsequent queries.

Which image generation parameters are supported?

The endpoint supports prompt, size for aspect ratio, resolution, n, image_urls, and optional nsfw_check. Resolution supports 1K, n must be the number 1, and official_fallback cannot be used with this official model.

What are the input and output limits?

The model lists a maximum input of 1,000,000 tokens and maximum output of 128,000 tokens, but this image endpoint separately limits prompts to 1,000 characters. It accepts up to 14 reference images, each no larger than 10MB, in JPEG, JPG, PNG, or WebP format.

Can I use generated images commercially?

Commercial use is subject to the provider's terms. Review the applicable Google terms and any rights associated with your prompts and reference images before using outputs commercially.

How does the official model differ from the standard version?

gemini-2.5-flash-image-preview-official uses the official channel and accepts the alias nano-banana. The standard gemini-2.5-flash-image-preview accepts nano-banana-ext; the supplied documentation does not establish a quality difference between the two routes.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام gemini-2.5-flash-image-preview-official

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.