Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.
Google · Nano Banana

gemini-3-pro-image-preview-official API

Generate and edit images up to 4K with Google's Nano Banana Pro official route on APISea.

Penjanaan imejImejTugas tak segerakCaching prompt
ID model
gemini-3-pro-image-preview-official

Harga API gemini-3-pro-image-preview-official

Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.

Jenis tokenAPISeaRasmiJimat
Input teks bagi setiap 1M token$1.76$2.00−12%
Input teks dalam cache bagi setiap 1M token$0$0—
Input imej bagi setiap 1M token$1.76$2.00−12%
Input imej dalam cache bagi setiap 1M token$0$0—
Output teks bagi setiap 1M token$10.56$12.00−12%
Output imej bagi setiap 1M token$106$120−12%

Anggaran kos bagi setiap output

PilihanAPISeaRasmi
4K≈ $0.2112$0.24

Apakah itu gemini-3-pro-image-preview-official?

Google's gemini-3-pro-image-preview-official is an image generation and editing model in the Nano Banana family, available through APISea's official provider route. Use it to create images from text descriptions or transform reference images supplied as public URLs or complete base64 Data URIs. The endpoint supports explicit aspect ratios and 1K, 2K, or 4K output resolution, with one image per request. Processing is asynchronous: submit a request, receive a task ID, and query for the result.

APISea provides access with one API key and the OpenAI-compatible base URL https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests. This model is token-billed, with an estimated per-image cost at 4K of about $0.2112, versus provider list about $0.24. The default configuration is about 12% below the provider list price, and prompt-cache reads are supported.

Sorotan gemini-3-pro-image-preview-official

Text and reference inputs

Generate images from a text prompt or supply reference images for image-to-image and editing workflows. Reference inputs accept public image URLs or complete base64 Data URIs.

Resolution and ratio controls

Choose 1K, 2K, or 4K output resolution. Supported aspect ratios include square, portrait, landscape, and 21:9 formats.

Asynchronous task handling

POST to /v1/images/generations returns a task ID for subsequent queries. Build task tracking into your application rather than expecting an immediate image result.

Optional content moderation

Enable nsfw_check to review prompts and input images with omni-moderation-latest before submission. It defaults to false, which adds no moderation cost or latency.

Cara memanggil API gemini-3-pro-image-preview-official dalam 4 langkah

  1. 01

    Dapatkan API key

    Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.

  2. 02

    Tetapkan base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.

  3. 03

    Hantar permintaan

    Panggil POST /v1/images/generations dengan "model": "gemini-3-pro-image-preview-official" dan parameter di bawah.

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

# model can be "gemini-3-pro-image-preview-official", or the compatible alias "nano-banana-pro-ext"
curl --request POST \
  --url https://api.apisea.ai/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gemini-3-pro-image-preview-official",
    "prompt": "A bamboo forest path under moonlight",
    "size": "1:1",
    "n": 1,
    "resolution": "1K"
  }'

Parameter

ParameterJenisWajibLalaiPenerangan
modelstringWajibgemini-3-pro-image-previewImage generation model name
nsfw_checkbooleanPilihanfalseWhether to run content moderation before submitting the image task.
promptstringWajib—Text description for image generation
sizestringPilihan—Image generation size
nintegerPilihan—Number of images to generate
resolutionstringPilihan—Output image resolution
official_fallbackbooleanPilihanfalseWhether to use the official channel fallback
image_urlsarrayPilihan—List of reference image URLs for image-to-image or image editing

Perkara yang boleh anda bina dengan gemini-3-pro-image-preview-official

Marketing asset generation

Build a tool that turns campaign briefs into images with explicit aspect ratios for different placements.

Reference-based image editing

Let users submit reference images and a text description of the desired changes in an editing workflow.

Creative concept exploration

Generate individual visual concepts from art-direction prompts, then submit additional requests to explore alternatives.

Queued image production

Integrate image generation into a background-job pipeline that tracks task IDs and saves completed assets.

Petua untuk hasil yang lebih baik

  • 01

    Set the aspect ratio

    Specify size 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

    Choose resolution explicitly

    Set resolution to 1K, 2K, or 4K; 1K is the default. Generating 4K images with base64 format takes longer processing time.

  • 03

    Validate reference inputs

    Supply no more than 14 reference images, each no larger than 30MB. For base64 inputs, include the full Data URI prefix and use JPEG, PNG, or WebP.

  • 04

    Handle tasks and storage

    Keep the returned task_id for subsequent status queries. Download completed images promptly because generated links remain valid for only 24 hours.

Had dan perkara yang perlu diketahui

  • Each request supports exactly one generated image; n must be the number 1, not a quoted string.

  • Reference inputs are limited to 14 images, with a maximum size of 30MB per image.

  • The official_fallback parameter cannot be used with this official-route model.

Soalan lazim API gemini-3-pro-image-preview-official

How much does Nano Banana Pro cost on APISea?

The estimated per-image cost at 4K is about $0.2112, token-billed, versus provider list about $0.24. Per 1M tokens, rates are text input $1.76, cached text input $0, image input $1.76, cached image input $0, text output $10.56, and image output $105.60. The default configuration is about 12% below the provider list price.

How do I call gemini-3-pro-image-preview-official?

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

Which image generation parameters are supported?

You can set size for aspect ratio, resolution to 1K, 2K, or 4K, and image_urls for reference-based generation or editing. Set n to the number 1 and optionally enable nsfw_check; do not use official_fallback with this model.

What are the input and output limits?

The listed limits are 1,000,000 input tokens and 128,000 output tokens. Reference inputs support up to 14 JPEG, JPG, PNG, or WebP images, each no larger than 30MB, and each request generates one image.

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 reference images before using outputs commercially.

How does the official model differ from the standard version?

gemini-3-pro-image-preview-official uses the official provider route and accepts the alias nano-banana-pro. The standard version is gemini-3-pro-image-preview, with alias nano-banana-pro-ext; the supplied facts do not establish a quality or speed difference between the routes.

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan gemini-3-pro-image-preview-official

Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.