GPT Image 2 vs Nano Banana Pro:
AI Product Image API

GPT Image 2 is cheaper per image and edits with masks; Nano Banana Pro is stronger on in-image text and consistency. Official prices, use cases and API code.

Updated 16 min read

For batch e-commerce and ad images, each model has its strengths. GPT Image 2 is cheaper per image, edits specific areas with a mask and returns up to 10 images per request, which suits high-volume work like white-background product shots and background swaps. Google positions Nano Banana Pro for precise text rendering and consistency across many reference images, with 4K output, which suits posters, ad creatives and product detail pages with copy on them. At official prices, a 1024×1024 image costs $0.053 with GPT Image 2 at medium quality and $0.134 with Nano Banana Pro. Neither official API is offered in every country. Through Brioi, one key calls both, and one balance pays for both.

Based on OpenAI’s and Google’s official Gemini API docs and pricing pages, and Brioi’s API docs (checked 2026-11). Official prices change; the vendors’ pages are authoritative.

GPT Image 2 vs Nano Banana Pro for product images

GPT Image 2 Nano Banana Pro
Official price (image output only) 1024×1024: low $0.006, medium $0.053, high $0.211 per image 1K and 2K $0.134 per image, 4K $0.24 per image
Official batch price Batch API is half the standard price Google’s Batch API docs: 50% of standard (about $0.067 for 1K/2K, $0.12 for 4K)
Max resolution Longest edge 3840 px, total pixels up to 8,294,400 (about 4K); above 2560×1440 is experimental Three sizes: 1K, 2K, 4K
Aspect ratio Custom width and height, long-to-short edge ratio up to 3:1 Ten fixed ratios from 1:1 to 21:9
Text in images OpenAI’s limitations note says the model can still struggle with precise text placement and clarity Google positions it for precise text rendering; its docs list 15 languages for best performance, including English, Spanish, Portuguese, Japanese and Arabic
Editing Edit endpoint with a mask to change only one area; up to 16 reference images on Brioi Conversational editing; up to 14 reference images (6 objects, 5 people, 3 style)
Images per request n from 1 to 10 1 per task
Speed OpenAI says complex prompts can take up to 2 minutes; square images are fastest Thinking is on by default and can’t be turned off; it makes up to 2 interim images (not billed) before the final one; Google gives no timing

Sources: OpenAI pricing, OpenAI image generation guide, Gemini API pricing, Gemini image generation docs, Gemini Batch API, checked 2026-11. GPT Image 2 prices cover image output only; prompt text tokens and reference-image tokens for edits are billed separately. Google’s pricing page shows only standard rates for Nano Banana Pro, so the batch figures above are 50% of standard as stated in the Batch API docs.

Which to use for each job

Job Pick Why
White-background main images, background swaps at scale GPT Image 2, medium quality Cheap per image; several images per request; the edit endpoint keeps the product and changes only the background
Posters, ad creatives and detail pages with copy on them Nano Banana Pro Built for text rendering; 4K and ratios such as 4:5, 9:16 and 21:9
Same product from many angles, consistent model and outfit Nano Banana Pro Up to 6 product reference images plus 5 people references in one request
Local fixes: recolor, remove flaws, change a copy area GPT Image 2 Mask editing changes only the area you mark
Drafts and prompt testing GPT Image 2, low quality $0.006 per 1024×1024 image, the cheapest option of the two

If the text in an image has to be exactly right, test both with your own copy first. For detail pages with strict copy, a common approach is to have the model render the scene with space left for text, then set the type in a design tool.

Marketplace rules apply on top of this. Amazon, for example, requires a pure white background (RGB 255, 255, 255) for main product images (Amazon Seller Central image requirements). Check generated backgrounds before you upload and correct them in post if needed.

What is Nano Banana Pro

Nano Banana Pro is Google’s image generation model. Its official name is Gemini 3 Pro Image and the model ID is gemini-3-pro-image. On the Gemini API models page, Google describes it as “a professional design engine with a reasoning core for studio-quality 4K visuals, complex layouts, and precise text rendering.”

Nano Banana is Google’s name for native image generation in Gemini. The family also includes Nano Banana 2.1, Nano Banana 2 and Nano Banana 2 Lite. Google recommends Nano Banana 2.1 for new projects and positions Pro as the premium choice for complex visual tasks. According to Google’s docs, every image the Nano Banana models generate carries a SynthID digital watermark.

What is GPT Image 2

GPT Image 2 is OpenAI’s image generation and editing model, model ID gpt-image-2, default snapshot gpt-image-2-2026-04-21. It supports text-to-image, generation from reference images and mask editing (inpainting). It is API-only; there is nothing to download and run yourself.

OpenAI’s image generation guide now leads with GPT Image 2.5 (gpt-image-2.5-sunburst, gpt-image-2.5-flare) and GPT Image 2.6 (gpt-image-2.6-sunburst, gpt-image-2.6-flare), and lists GPT Image 2’s per-image prices among earlier models. GPT Image 2.5 adds xhigh and max quality levels, and all of these models share the same per-token rates on OpenAI’s pricing page. GPT Image 2 is not on OpenAI’s deprecation list. The models being retired on December 1, 2026 are gpt-image-1-mini, gpt-image-1.5 and chatgpt-image-latest (source: OpenAI deprecations, checked 2026-11). GPT Image 2, 2.5 and 2.6 are all in Brioi’s model catalog.

Is Nano Banana Pro free?

Not through the API. On the Gemini API pricing page, the free tier for Nano Banana Pro says “Not available”, so it is pay-as-you-go only:

Item Standard Batch (50% of standard)
1K or 2K image output $0.134 per image about $0.067 per image
4K image output $0.24 per image about $0.12 per image
Reference image input about $0.0011 per image about $0.0006 per image
Text input / output $2 / $12 per million tokens $1 / $6 per million tokens

The pricing page explains that image output is billed at $120 per million tokens; 1K and 2K images count as 1,120 tokens and 4K as 2,000 tokens, which is why 1K and 2K cost the same. Whether you can use it free in consumer products such as the Gemini app is up to Google’s own terms for those products.

Where the official image APIs are offered

OpenAI’s API supported countries don’t include Russia, Belarus, Iran, mainland China, Hong Kong, Macau, Syria, Cuba, Venezuela or North Korea. Google’s Gemini API available regions don’t include mainland China, Hong Kong, Macau, Russia, Belarus, Iran, Syria, Cuba or North Korea (checked 2026-11). Even where both are offered, a team using both pays two vendors, with two accounts, two balances and two sets of card checks.

Brioi works in regions the official APIs don’t serve. It picks the best route automatically, fails over when a route has problems and monitors routes 24/7. GPT Image 2 and Nano Banana Pro are both billed per image on Brioi, so a batch is easy to cost out, and one balance covers both plus Seedance for video. Top up with USDT or an international card.

Calling both through Brioi: async and sync

Get a key

  1. Open the Brioi API keys page. If you don’t have an account yet, sign up on the main site.
  2. Create a key and choose the gpt生图分组 group (the GPT image group) or default. Both include gpt-image-2, nano-banana-pro and gemini-3.0-pro-image, which the sync example below uses.
  3. Confirm the key can see the models you need:
curl "https://vip.brioi.com/v1/models" \
  -H "Authorization: Bearer YOUR_API_KEY"

The model in your request must come from this live list, or you get 503 model_not_found.

Async or sync

Async (recommended) Sync
GPT Image 2 POST /v1/images/async/generations or /v1/images/async/edits, then poll with the task_id POST /v1/images/generations or /v1/images/edits; Brioi’s docs keep these for existing integrations only
Nano Banana Pro POST /v1/images/async/generations with model nano-banana-pro Gemini native POST /v1beta/models/gemini-3.0-pro-image:generateContent
Good for Batch jobs and background queues Existing code written for the OpenAI SDK or the Gemini format
Watch out Generation tasks and edit tasks have separate query endpoints; don’t mix them The request waits for the image; on a client timeout, don’t blindly resend, or you may generate (and pay for) it twice

Async: GPT Image 2 generation and editing

Text to image:

curl -X POST "https://vip.brioi.com/v1/images/async/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "White ceramic mug, studio shot on a pure white background, soft shadow, product centered",
    "size": "1024x1024",
    "quality": "medium",
    "n": 1
  }'

Edit from a product photo, keeping the product and changing the background:

curl -X POST "https://vip.brioi.com/v1/images/async/edits" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "Keep the mug shape, color and pattern exactly; replace the background with a wooden breakfast table in morning light",
    "images": ["https://example.com/mug.png"],
    "size": "1024x1024",
    "quality": "medium"
  }'

To change only part of the image, add mask with the public URL of a PNG mask the same size as the first reference image. GPT Image on Brioi doesn’t support transparent backgrounds (background: "transparent"), so cut out transparent product images in post.

Async: Nano Banana Pro from reference images

curl -X POST "https://vip.brioi.com/v1/images/async/generations" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-pro",
    "prompt": "Keep the product structure and materials exactly. Vertical promo poster, headline at the top: \"Summer Collection - 20% Off\"",
    "image_urls": [
      "https://example.com/product-front.png",
      "https://example.com/product-side.png"
    ],
    "aspect_ratio": "9:16",
    "image_size": "2K"
  }'

image_size accepts only uppercase 1K, 2K and 4K. aspect_ratio accepts 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 and 21:9; omit it for the default, and don’t send auto. Without reference images, omit image_urls instead of sending an empty array.

Polling for results

Async tasks for both models return the same shape:

{"status": "SUBMITTED", "task_id": "task_xxxxxxxxxxxxxxxxxxxxxxxx", "progress": "10%", "images": []}

Poll every 3–5 seconds. Query generations for generation tasks and edits for edit tasks:

curl "https://vip.brioi.com/v1/images/async/generations/task_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Authorization: Bearer YOUR_API_KEY"
status What to do
SUBMITTED, IN_PROGRESS Keep polling
SUCCESS Download from images[].url
FAILURE Read fail_reason. It is raw text for troubleshooting; don’t parse it as a fixed format

Result URLs expire. Download or copy the images to your own storage as soon as a task succeeds.

Async: Python batch script

This script covers create, poll, download and failure handling, and processes SKUs on 4 threads:

pip install requests
export BRIOI_API_KEY="YOUR_API_KEY"
import os
import time
from concurrent.futures import ThreadPoolExecutor

import requests

BASE_URL = "https://vip.brioi.com"
HEADERS = {"Authorization": f"Bearer {os.environ['BRIOI_API_KEY']}"}


def run_image_task(kind, payload, name, interval=4, max_wait=600):
    """kind is "generations" or "edits"; the query must use the same kind as the create call."""
    r = requests.post(f"{BASE_URL}/v1/images/async/{kind}", headers=HEADERS, json=payload, timeout=60)
    if r.status_code != 200:
        request_id = r.headers.get("X-Oneapi-Request-Id")
        raise RuntimeError(f"create failed HTTP {r.status_code}, request id {request_id}: {r.text}")
    task_id = r.json()["task_id"]

    deadline = time.time() + max_wait
    while time.time() < deadline:
        time.sleep(interval)
        try:
            r = requests.get(f"{BASE_URL}/v1/images/async/{kind}/{task_id}", headers=HEADERS, timeout=30)
        except requests.RequestException:
            continue  # query timed out: retry with the same task_id, don't create a new task
        if r.status_code in (429, 500, 502, 503):
            continue
        r.raise_for_status()
        data = r.json()
        if data.get("status") == "FAILURE":
            raise RuntimeError(f"{task_id} failed: {data.get('fail_reason')}")
        if data.get("status") == "SUCCESS":
            paths = []
            for img in data.get("images", []):
                ext = (img.get("mime_type") or "").split("/")[-1]
                ext = ext if ext in ("png", "jpeg", "webp") else "png"
                path = f"{name}_{img.get('index', len(paths))}.{ext}"
                resp = requests.get(img["url"], timeout=120)
                resp.raise_for_status()
                with open(path, "wb") as f:
                    f.write(resp.content)
                paths.append(path)
            if not paths:
                raise RuntimeError(f"{task_id} succeeded but returned no image URL")
            return paths
    raise TimeoutError(f"{task_id} not finished in time; keep polling later with the same ID")


def make_main_image(item):
    sku, url = item
    try:
        return run_image_task("generations", {
            "model": "nano-banana-pro",
            "prompt": "Keep the product structure and materials exactly. Studio main image on a pure white background, soft shadow, no text anywhere in the image",
            "image_urls": [url],
            "aspect_ratio": "1:1",
            "image_size": "2K",
        }, sku)
    except Exception as e:
        return f"{sku} failed: {e}"


if __name__ == "__main__":
    skus = {
        "sku001": "https://example.com/sku001.png",
        "sku002": "https://example.com/sku002.png",
    }
    with ThreadPoolExecutor(max_workers=4) as pool:
        for result in pool.map(make_main_image, skus.items()):
            print(result)

To edit with GPT Image 2 instead, set kind to "edits" and use the GPT Image 2 edit fields from above as the payload. Frequent 429s mean concurrency is too high, so lower max_workers. If you need more concurrency, contact sales.

Sync: GPT Image 2 (OpenAI SDK)

If your code already calls images.generate with the OpenAI SDK, you can keep using the sync endpoint by changing only base_url. Brioi’s docs keep this endpoint for existing integrations; new integrations should use the async endpoints above.

import base64
import os

import requests
from openai import OpenAI

client = OpenAI(
    base_url="https://vip.brioi.com/v1",
    api_key=os.environ["BRIOI_API_KEY"],
    timeout=300,  # complex prompts can take up to about 2 minutes
)

result = client.images.generate(
    model="gpt-image-2",
    prompt="White ceramic mug, studio shot on a pure white background, soft shadow, product centered",
    size="1024x1024",
    quality="medium",
)
img = result.data[0]
with open("mug.png", "wb") as f:
    if img.b64_json:
        f.write(base64.b64decode(img.b64_json))
    else:
        f.write(requests.get(img.url, timeout=120).content)

Sync: Nano Banana Pro (Gemini native API)

Brioi’s Gemini-native sync endpoint serves gemini-3.0-pro-image, which Brioi’s docs describe as the quality-first option; it corresponds to Google’s Gemini 3 Pro Image. Authenticate with your Brioi key, not x-goog-api-key:

curl -X POST "https://vip.brioi.com/v1beta/models/gemini-3.0-pro-image:generateContent" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{
      "role": "user",
      "parts": [
        {"text": "Keep the product structure and materials exactly; change the background to a clean white photo studio"},
        {"fileData": {"mimeType": "image/png", "fileUri": "https://example.com/product.png"}}
      ]
    }],
    "generationConfig": {
      "responseModalities": ["IMAGE"],
      "imageConfig": {"imageSize": "2K", "aspectRatio": "1:1"}
    }
  }'

responseModalities must include IMAGE, and imageSize is required. This model’s ratios differ slightly from async nano-banana-pro: it supports 9:21 but not 4:5 or 5:4.

Read the image in the order Brioi’s docs give: first decode candidates[].content.parts[].inlineData.data (base64); if it’s missing, read fileData.fileUri; failing that, extract the Markdown image URL from text. The same image may appear both as a fileUri and as a Markdown URL, so deduplicate. Standard Gemini SDKs usually only read inlineData, so add this extraction step yourself if you get remote image URLs back.

Writing prompts for product images

Both vendors’ docs recommend stating clearly what to keep and what to change. Patterns that work for product images:

  • State what to keep first. When editing, open with “Keep the product’s shape, color, material and logo exactly”, then describe the new background or scene. Google’s template for local edits is: “Using the provided image, change only the [specific element] to [new element/description]. Keep everything else in the image exactly the same, preserving the original style, lighting, and composition.”
  • Describe the shot. Subject, setting, composition, material, light and color. For example: “Product centered, 45-degree overhead angle, light gray background, soft key light from the upper left, natural shadow.”
  • Write text separately. Put any text that should appear in the image in quotes, with its position and size, for example: “Large headline at the top: "Summer Collection". Small text bottom right: "20% Off".” If you want no text, say “no text or watermarks anywhere in the image.”
  • Use one template per batch. Swap only the variables (product name, color, selling point). The batch looks consistent, and when something goes wrong you can tell which part of the prompt caused it.
  • Pick the ratio for the placement. 1:1 for marketplace main images, 4:5 for social feed ads, 9:16 for stories and mobile posters, 2:3 or 3:4 for long detail images. For Nano Banana Pro the ratio is a composition preference; Brioi’s docs note that output isn’t guaranteed to match it exactly, so if you need a fixed size, check and crop after generation.

Keeping batch image costs down

Start with the numbers. 1,000 SKUs, 5 images each, about 2 attempts per image: 10,000 images. At official prices, image output only:

Model and setting Per image (USD) 10,000 images
GPT Image 2, low, 1024×1024 0.006 $60
GPT Image 2, medium, 1024×1024 0.053 $530
GPT Image 2, high, 1024×1536 0.165 $1,650
GPT Image 2, high, 1024×1024 0.211 $2,110
Nano Banana Pro, 1K or 2K 0.134 $1,340
Nano Banana Pro, 4K 0.24 $2,400

Through Brioi, at about 10–50% of the official price, the Nano Banana Pro 2K line would come to roughly $134–$670 instead of $1,340.

Ways to cut cost:

  • Draft first, then finish. GPT Image 2 high costs 35 times as much as low. Test composition and prompts at low, then render the chosen direction at medium or high.
  • Size for the placement. Nano Banana Pro’s 1K and 2K cost the same, and 4K costs about 80% more. Use 2K for main images and posters and save 4K for large detail images. GPT Image 2 portrait sizes can be cheaper than square: in the table, high at 1024×1536 is over 20% cheaper than 1024×1024.
  • Send fewer reference images. GPT Image 2 always processes input images at high fidelity, so edits with reference images use more input tokens. Send only the ones you need.
  • Don’t submit twice. If a query times out, keep polling with the same task_id. If a create request times out, check whether the task exists before you retry.
  • Read the failure reason first. If fail_reason shows the prompt or image tripped content moderation, change the prompt before resubmitting rather than retrying as-is.
  • Save results promptly. Result URLs expire, and an expired image means generating and paying for it again.
  • Move simple jobs to cheaper models. Brioi also has nano-banana-2 (described in Brioi’s docs as the fast option), nano-banana-2.1 and GPT Image 2.5. Google lists Nano Banana 2.1 at $0.0504 per 2K image (checked 2026-11). Run the same prompts through each and compare quality and cost.

On Brioi you pay for actual usage with no subscription, and batch and concurrent jobs are supported. Enterprise pricing is about 10–50% of the official price, per-model prices are on the pricing page, and one balance covers GPT Image, Nano Banana, Seedance and the rest. E-commerce and design teams who want to run a batch of their own product photos first can ask sales for a trial through Contact sales at the bottom of this page.

To turn product images into video, see how to use the Seedance 2.0 API. For OpenAI’s text models, see using the OpenAI API where it isn’t offered.

FAQ

Can I use GPT Image 2 if the OpenAI API isn’t offered in my country?

Not with an official OpenAI account. Through Brioi you can call gpt-image-2 in regions the official API doesn’t serve, billed per image, with the endpoints shown above.

How much does Nano Banana Pro cost?

The Gemini API has no free tier for Nano Banana Pro. Official prices are $0.134 per 1K or 2K image and $0.24 per 4K image, and Google’s Batch API is half price. Through Brioi, enterprise pricing is about 10–50% of the official price.

What is Nano Banana Pro?

Google’s image model Gemini 3 Pro Image, model ID gemini-3-pro-image, positioned by Google for complex layouts, 4K output and precise text rendering. On Brioi the model name is nano-banana-pro.

GPT Image 2 or Nano Banana Pro for e-commerce images?

GPT Image 2 for high-volume white-background shots, background swaps and local edits: it’s cheaper per image and supports mask editing. Nano Banana Pro for posters, ad creatives and detail pages with copy, and for keeping a product consistent across many reference images. One Brioi key in the gpt生图分组 group calls both, so you can split jobs by image type.