Skip to content
Trang này chưa có bản dịch sang ngôn ngữ của bạn, nên hiện đang được hiển thị bằng tiếng Anh.
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.

Tạo ảnhẢnhTác vụ bất đồng bộ
ID model
gemini-3-pro-image-preview

Bảng giá API Nano Banana Pro

Tất cả giá đều tính bằng USD. So sánh mức giá của APISea với giá niêm yết chính thức cho cùng đơn vị.

Tùy chọnAPISeaChính thứcTiết kiệm
Mặc địnhMặc định$0.022$0.134−84%
4K$0.033$0.24−86%

Giá tính theo mỗi hình ảnh.

Nano Banana Pro là gì?

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.

Điểm nổi bật của 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.

Cách gọi API Nano Banana Pro trong 4 bước

  1. 01

    Tạo API key

    Đăng nhập APISea, nạp tối thiểu $50 rồi tạo key sk-sea trong bảng điều khiển.

  2. 02

    Đặt base URL

    Dùng https://api.apisea.ai/v1 làm base URL trong SDK hoặc HTTP client.

  3. 03

    Gửi request

    Gọi POST /v1/images/generations với "model": "gemini-3-pro-image-preview" và các tham số bên dưới.

  4. 04

    Xử lý phản hồi

    Phản hồi có chứa task_id. Gửi GET /v1/tasks/{task_id} định kỳ cho đến khi trạng thái là completed, sau đó tải xuống từ các URL kết quả.

# 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"
  }'

Tham số

Tham sốLoạiBắt buộcMặc địnhMô tả
modelstringBắt buộcgemini-3-pro-image-previewImage generation model name
nsfw_checkbooleanTùy chọnfalseWhether to run content moderation before submitting the image task.
promptstringBắt buộc—Text description for image generation
sizestringTùy chọn—Image generation size
nintegerTùy chọn—Number of images to generate
resolutionstringTùy chọn—Output image resolution
official_fallbackbooleanTùy chọnfalseWhether to use the official channel fallback
image_urlsarrayTùy chọn—List of reference image URLs for image-to-image or image editing

Bạn có thể xây dựng gì với 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.

Mẹo để có kết quả tốt hơn

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

Giới hạn và những điều cần biết

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

Câu hỏi thường gặp về API Nano Banana Pro

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.

Model liên quan

Hệ sinh thái gồm 250+ mô hình · Nạp tối thiểu $50

Bắt đầu xây dựng với Nano Banana Pro

Chỉ cần một key, thanh toán theo mức sử dụng từ $50; chỉ tính phí cho các request thành công.