Skip to content
此頁面尚未提供您使用的語言,因此目前以英文顯示。
Google · Nano Banana

Nano Banana Pro API

Generate and edit images with Nano Banana Pro on APISea, with reference-image inputs and up to 4K output.

圖片生成圖片非同步任務
模型 ID
gemini-3-pro-image-preview

Nano Banana Pro API 定價

所有價格皆以 USD 計價。比較 APISea 費率與相同計費單位的官方牌價。

選項APISea官方節省
預設預設$0.022$0.134−84%
4K$0.033$0.24−86%

價格單位為 每張圖片。

什麼是 Nano Banana Pro?

Nano Banana Pro is Google's image generation model in the Nano Banana family, available on APISea as gemini-3-pro-image-preview. It supports text-to-image generation, image-to-image workflows, and image editing with reference images. Developers can supply a prompt, choose an aspect ratio, and select 1K, 2K, or 4K output resolution. Reference inputs can be public image URLs or complete base64 Data URIs, making it suited to image creation tools and editing interfaces.

Requests run asynchronously through POST /v1/images/generations and return a task ID for subsequent status queries. APISea provides one API key and an OpenAI-compatible base URL at https://api.apisea.ai/v1, with pay-as-you-go billing only for successful requests. APISea Default costs $0.022 per image, about 84% below the provider list price of $0.134 per image. APISea 4K costs $0.033 per image, compared with the provider list price of $0.24 per image.

Nano Banana Pro 的特色

Generation and Editing

Generate images from text prompts or supply reference images for image-to-image and editing workflows.

Selectable Output Resolution

Choose 1K, 2K, or 4K output resolution. The default is 1K.

Aspect Ratio Controls

Specify ratios including 1:1, 4:5, 9:16, 16:9, and 21:9. An auto option is also available.

Optional Input Moderation

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

4 個步驟呼叫 Nano Banana Pro API

  1. 01

    取得 API key

    登入 APISea,儲值 $50 起,並在控制台建立 sk-sea 金鑰。

  2. 02

    設定 base URL

    在 SDK 或 HTTP 用戶端中,將 https://api.apisea.ai/v1 設為 base URL。

  3. 03

    傳送請求

    呼叫 POST /v1/images/generations,並使用下方的參數及 "model": "gemini-3-pro-image-preview"。

  4. 04

    處理回應

    回應中包含 task_id。持續輪詢 GET /v1/tasks/{task_id},直到狀態為 completed,然後下載結果 URL。

# model can be "gemini-3-pro-image-preview", 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",
    "prompt": "A bamboo forest path under moonlight",
    "size": "1:1",
    "n": 1,
    "resolution": "1K"
  }'

參數

參數類型必填預設說明
modelstring必填gemini-3-pro-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
ninteger選填—Number of images to generate
resolutionstring選填—Output image resolution
official_fallbackboolean選填falseWhether to use the official channel fallback
image_urlsarray選填—List of reference image URLs for image-to-image or image editing

使用 Nano Banana Pro 可以打造什麼

Creative Asset Tools

Build a prompt-driven interface for teams to generate visual concepts and campaign assets in their chosen aspect ratio.

Reference-Based Editing

Let users upload reference images through URLs or Data URIs and describe the changes they want in a prompt.

Multi-Format Content Workflows

Create separate image requests for square, portrait, and widescreen layouts using explicit aspect ratios.

Queued Image Production

Build a background image-generation workflow that tracks task IDs, checks completion, and saves finished assets.

提升結果品質的技巧

  • 01

    Set an Explicit Ratio

    Specify size rather than relying on auto. For text-to-image, auto defaults to 1:1 or 16:9; image-to-image follows the returned aspect ratio.

  • 02

    Choose Resolution Deliberately

    Use resolution to select 1K, 2K, or 4K. APISea Default costs $0.022 per image, while APISea 4K costs $0.033 per image; 4K generation with base64 format takes longer.

  • 03

    Validate Reference Inputs

    Supply publicly accessible URLs or complete Data URIs in image_urls. Keep each image at or below 30MB and each request within 14 reference images.

  • 04

    Track and Save Results

    Store the returned task ID for subsequent queries and save generated images promptly. Their links are valid for 24 hours.

限制與須知

  • Generation is asynchronous and returns a task ID rather than an immediately finished image.

  • Only one output image is supported per request; n must be the unquoted number 1.

  • Reference inputs are limited to 14 images, each no larger than 30MB, in JPEG, JPG, PNG, or WebP format.

Nano Banana Pro API 常見問題

How much does Nano Banana Pro cost on APISea?

APISea Default costs $0.022 per image, compared with the provider list price of $0.134 per image—about 84% below list price. APISea 4K costs $0.033 per image, compared with the provider list price of $0.24 per image. Billing is pay-as-you-go and applies only to successful requests.

How do I call the Nano Banana Pro API?

Send an authenticated POST request to https://api.apisea.ai/v1/images/generations with a Bearer token, model set to gemini-3-pro-image-preview, and a required prompt. The response returns a task ID for subsequent queries.

Which image controls does Nano Banana Pro support?

You can set size for aspect ratio, resolution to 1K, 2K, or 4K, and image_urls for reference-based generation or editing. Optional controls include nsfw_check and official_fallback; n supports only the numeric value 1.

What are the reference-image limits and output-link expiry?

You can provide up to 14 reference images, each no larger than 30MB, in JPEG, JPG, PNG, or WebP format. Generated image links remain valid for 24 hours, so save the results promptly.

Can I use Nano Banana Pro 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.

Is nano-banana-pro-ext the same as gemini-3-pro-image-preview?

Yes. nano-banana-pro-ext is an interchangeable alias for gemini-3-pro-image-preview and produces identical results. The separate alias nano-banana-pro maps to gemini-3-pro-image-preview-official, the official-channel version.

相關模型

涵蓋:250+ 個模型 · 最低儲值 $50

開始使用 Nano Banana Pro 開發

一把金鑰,$50 起按量付費,僅對成功的請求收費。