Text to Image APIImage Generation PricingNano Banana ProZ-ImageFLUX

Text-to-Image API Price in December 2026: 100 Images Cost $0.48 on Z-Image and $13.40 on Nano Banana Pro

A hundred 1K images cost $13.40 on Google’s Nano Banana Pro API and $0.48 on Z-Image through MegaBrain: 28 times less for the same request. The cheap model also dropped a word from our ad headline, so here is what each price tier gets you.

2026-12-05·8 min read

This is a price check of text-to-image APIs as of December 5, 2026: what the model makers charge on their own APIs, what MegaBrain lists for the same models, and what a batch of 100 or 1,000 images costs on each. A text-to-image API takes a written prompt and returns a generated picture; you pay per image (or per megapixel), not per token, on most of them.

The short answer. For bulk drafts, Z-Image ($0.0048) and Flux 3 Klein ($0.0096) cost under a cent an image. For lettering, infographics and 4K, Nano Banana Pro is the top of the range: $0.134 at Google, $0.108 on MegaBrain. MegaBrain is cheaper than Google on all five Nano Banana models, level on Flux 2 Pro, and more expensive than Black Forest Labs on Flux 2 Flex and Flux 3 Klein.

Official vs MegaBrain: 9 models, 100 images each

Prices below are for one image at 1K (about 1 megapixel, 1024 × 1024 px), the default size on most of these models. Official prices come from each maker’s own pricing page; MegaBrain prices from its model pages. Both were read on December 5, 2026.

Grouped bar chart of the price of 100 images at 1K on the maker’s own API and on MegaBrain. Nano Banana Pro $13.40 vs $10.80, Flux 2 Flex $5.00 vs $8.40, Nano Banana 2 $6.70 vs $4.80, Nano Banana $3.90 vs $2.40, Nano Banana 2.1 and Nano Banana 2 Lite $3.36 vs $2.40, Flux 2 Pro $3.00 vs $3.00, Z-Image $1.50 (Alibaba’s Z-Image Turbo) vs $0.48, Flux 3 Klein $0.90 vs $0.96.
Sources: Google AI Studio, Black Forest Labs and Alibaba Model Studio pricing pages; MegaBrain /media model pages, read December 5, 2026. Alibaba’s price is for Z-Image Turbo, the model its page names.
Model (maker)Maker’s APIMegaBrain1,000 images: maker / MegaBrain
Nano Banana Pro (Google)$0.134$0.108$134 / $108
Nano Banana 2 (Google)$0.067$0.048$67 / $48
Flux 2 Flex (Black Forest Labs)$0.05 first MP$0.084$50 / $84
Nano Banana (Google)$0.039$0.024$39 / $24
Nano Banana 2.1 (Google)$0.0336$0.024$33.60 / $24
Nano Banana 2 Lite (Google)$0.0336$0.024$33.60 / $24
Flux 2 Pro (Black Forest Labs)$0.03 first MP$0.03$30 / $30
Z-Image (Alibaba)$0.015 (Z-Image Turbo)$0.0048$15 / $4.80
Flux 3 Klein (Black Forest Labs)$0.009$0.0096$9 / $9.60

Three things stand out. Google’s Nano Banana line is where the gap is largest: Nano Banana 2 is 28% cheaper on MegaBrain and Nano Banana Pro 19% cheaper. The Black Forest Labs models go the other way: Flux 2 Flex costs $0.084 per image on MegaBrain against $0.05 per megapixel direct, and Flux 3 Klein $0.0096 against $0.009. If you only ever call FLUX, the maker’s own API is the better deal. And the original Nano Banana (gemini-2.5-flash-image) is marked deprecated on Google’s page, shutting down March 15, 2027, so new projects should start on Nano Banana 2.1 or 2 Lite, which cost the same $0.024 on MegaBrain.

OpenAI’s image models are missing from the comparison on purpose: OpenAI bills GPT Image 2, 2.5 and 2.6 per token ($8 per 1M input and $30 per 1M output image tokens), and its pricing page gives no flat per-image price to compare. MegaBrain lists GPT Image 2 at $0.036 per image at 1K.

The whole catalogue in five price tiers

The text-to-image page lists 40 models on one key. Here they are by MegaBrain’s listed price at default settings. Higher resolutions cost more on most of them; each model page shows the multiplier.

Price per imageModels on MegaBrain (price)
Under 1 centZ-Image ($0.0048), Qwen Image ($0.006), Flux 3 Klein ($0.0096)
1 to 2.5 centsMiniMax H3 Image ($0.0108), Seedream 5 Flash ($0.0194), Ideogram V3 and Seedream 3.0 ($0.021), Seedream 5.5 ($0.0216 at 1K), Nano Banana, Nano Banana 2.1, Nano Banana 2 Lite, Imagen 4 Fast, Grok Imagine Image, Grok Imagine Image 2, GPT Image 1.5 and Qwen Image 2.1 ($0.024)
2.5 to 5 centsQwen Image 3.0 and Wan 2.7 Image ($0.0288), Flux 2 Pro, GPT Image 2.6 Economy, Seedream 4.0 and FLUX.1 Kontext Pro ($0.03), Seedream 5.0 Lite ($0.033), Qwen Image 2 ($0.0336), GPT Image 2, GPT Image 2.5 Flare, GPT Image 2.5 Sunburst and GPT-4o Image ($0.036), Qwen Image 3.0 Pro ($0.0384), Seedream 4.5 ($0.039), Seedream 5 Pro ($0.042), Imagen 4 and Nano Banana 2 ($0.048)
5 to 11 centsFLUX.1 Kontext Max ($0.06), Kling Image 4.0 ($0.0678), Imagen 4 Ultra and Wan 2.7 Image Pro ($0.072), Flux 2 Flex ($0.084), Nano Banana Pro ($0.108)
Special modeKling Image 4.0 long image ($0.258), for tall webpage and e-commerce images

One trap: Seedream 5.5 is listed at $0.0216, but its page defaults to the 2K size, where the playground quotes about $0.0378. Set size to 1K in the request if the lower price is the one you budgeted for.

What half a cent buys: a real test

Price tables do not show whether a picture is usable. We ran two ad-style prompts through the two cheapest models in the table, Z-Image and Flux 3 Klein, once each at 1:1, with no retries and no editing. Both prompts ask for exact text in the image, the thing cheap models get wrong most often.

AI-generated product photo of a white mug with MONDAY printed on it, on a wooden table by a window, made with Z-Image
Z-Image, 1:1. Prompt: Product photo of a matte ceramic coffee mug on a light oak table, morning window light, the word "MONDAY" printed on the mug in black serif letters, shallow depth of field
AI-generated product photo of a speckled cream mug with MONDAY printed on it, on an oak table in morning light, made with Flux 3 Klein
Flux 3 Klein, 1K, 1:1. Same prompt.
AI-generated ad of white running shoes on a wet street with the headline RUN CITY: the word THE is missing. Made with Z-Image
Z-Image, 1:1. Prompt: Social media ad: a pair of white running shoes on a wet city street at dusk, reflections of shop lights in puddles, bold headline text "RUN THE CITY" across the top
AI-generated ad of grey knit running shoes on a wet neon-lit street with the headline RUN THE CITY spelled correctly. Made with Flux 3 Klein
Flux 3 Klein, 1K, 1:1. Same prompt.

Both models spelled MONDAY correctly and got the product shot right. On the ad, Z-Image wrote “RUN CITY”: it dropped “THE” from a three-word headline. Flux 3 Klein wrote “RUN THE CITY” on its first try. At MegaBrain’s listed prices the four images come to $0.0288, so the honest reading is this: Z-Image is fine for backgrounds, mood boards and product shots without text, and Flux 3 Klein is worth its extra $0.0048 per image as soon as the image carries words. For posters, infographics and dense lettering, step up to the 2.5–5 cent tier (GPT Image 2, Ideogram V3) or to Nano Banana Pro.

Call any of the 40 models with one key

Every model on the media API uses the same base URL, https://getmegabrain.com/api/gateway/v1, and the same key in the Authorization: Bearer header. The queue endpoint takes the model id in the path and the model’s own parameters in the body. From the Z-Image page:

curl -X POST https://getmegabrain.com/api/gateway/v1/queue/alibaba/z-image \
  -H "Authorization: Bearer $MEGABRAIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "product photo of a ceramic mug on an oak table", "aspect_ratio": "1:1"}'

The answer carries a status_url and a response_url. In Python, submit and poll every few seconds, as the docs show:

import os
import time
import requests

BASE = "https://getmegabrain.com/api/gateway/v1"
headers = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}

job = requests.post(
    f"{BASE}/queue/alibaba/z-image",
    headers=headers,
    json={"prompt": "product photo of a ceramic mug on an oak table", "aspect_ratio": "1:1"},
).json()

# Poll the status until the job finishes
while True:
    status = requests.get(job["status_url"], headers=headers).json()["status"]
    if status in ("COMPLETED", "FAILED"):
        break
    time.sleep(3)

result = requests.get(job["response_url"], headers=headers).json()
print(result)  # {"images": [{"url": ...}]} or an error description

The price is calculated before the job runs and charged right away; a balance that is too low gets 402, a field the model does not take gets 400, and a job the provider fails comes back as FAILED with the full price refunded. To switch models, change only the path: queue/black-forest-labs/flux-3-klein, queue/nano-banana-pro, queue/google/nano-banana-2.1.

If your code already uses the OpenAI SDK, the OpenAI-compatible endpoint (one that accepts the same requests as OpenAI’s, so the official SDKs work by changing the base URL) takes the standard images call and waits up to about 110 seconds for the picture:

import os
from openai import OpenAI

client = OpenAI(base_url="https://getmegabrain.com/api/gateway/v1", api_key=os.environ["MEGABRAIN_API_KEY"])

img = client.images.generate(
    model="nano-banana-pro",
    prompt="infographic: how the generation API works",
    size="1024x1024",
)
print(img.data[0].url)

What this means for your bill

  • Drafts and volume: 1,000 concept images cost $4.80 on Z-Image or $9.60 on Flux 3 Klein at MegaBrain’s prices. Pick a winner, then re-render only that one on a better model.
  • Images with text: budget at least Flux 3 Klein; for anything a client will print, test GPT Image 2 ($0.036) or Nano Banana Pro ($0.108) on 10 prompts first.
  • Nano Banana in production: 1,000 Nano Banana Pro images are $134 on Google’s API and $108 on MegaBrain; 1,000 on Nano Banana 2 are $67 and $48.
  • FLUX only: Black Forest Labs’ own API is cheaper for Flux 2 Flex and Flux 3 Klein and the same for Flux 2 Pro at 1K.

Try it in 2 minutes

Create a MegaBrain account, add a card for $1 of trial credit (nothing is charged), and paste the curl call above with your key. That dollar covers about 208 Z-Image images or 9 on Nano Banana Pro. After that, top up from $10; credits you buy never expire, as the pricing page says.

FAQ

What is the cheapest text-to-image API in December 2026?

Of the 40 text-to-image models MegaBrain lists, Z-Image is the cheapest at $0.0048 per image (read December 5, 2026), followed by Qwen Image at $0.006 and Flux 3 Klein at $0.0096. Bought from the makers, Black Forest Labs lists FLUX 3 Image Klein at $0.009 per 1K image and Alibaba lists Z-Image Turbo at $0.015 per image in its international region.

How much does the Nano Banana Pro API cost per image?

Google’s Gemini API pricing page lists Nano Banana Pro (gemini-3-pro-image) at $0.134 per image at 1K and 2K and $0.24 at 4K. MegaBrain’s Nano Banana Pro page lists $0.108 per image, so 100 images at 1K cost $13.40 on Google and $10.80 on MegaBrain.

Is MegaBrain always cheaper than the model maker?

No. On December 5, 2026 MegaBrain was cheaper for Nano Banana Pro, Nano Banana 2, Nano Banana, Nano Banana 2.1 and Nano Banana 2 Lite, the same for Flux 2 Pro at 1K ($0.03), and more expensive for Flux 2 Flex ($0.084 vs $0.05 for the first megapixel) and Flux 3 Klein ($0.0096 vs $0.009). Check each model’s page before a large batch.

Is there a free text-to-image API?

Not on MegaBrain: every model is paid from a prepaid balance. Adding a card gives $1 of trial credit, which covers about 208 Z-Image images at $0.0048 or 9 Nano Banana Pro images at $0.108. A failed generation is refunded.

Can I call these models with the OpenAI SDK?

Yes. MegaBrain’s POST /images/generations accepts the OpenAI body (model, prompt, n, size) at https://getmegabrain.com/api/gateway/v1 and waits up to about 110 seconds for the image; size becomes the model’s image size or aspect ratio. The queue API (POST /queue/<model id>) takes each model’s own parameters.

Why is Kling Image 4.0 listed at $0.258 per image?

That price is for Kling Image 4.0’s long-image mode, which draws a tall webpage or e-commerce image, sometimes from 1 to 3 product photos. The standard Kling Image 4.0 text-to-image model is listed at $0.0678 per image.

Sources

All pages opened December 5, 2026.

Full disclosure: MegaBrain sells API access to models from labs including Google, Black Forest Labs, Alibaba, OpenAI, ByteDance, xAI, Kuaishou, Ideogram and MiniMax. MegaBrain is not affiliated with Google, Black Forest Labs, Alibaba, OpenAI, ByteDance, xAI, Kuaishou, Ideogram or MiniMax.

MegaBrain · one API for every model

Claude, GPT, Gemini, FLUX and Kling with one key and one balance.

Pay as you go, no subscription required. Try the models in the chat or the playground, then call them through an OpenAI-compatible API.

Newsletter

Stay in the loop

Get our latest AI research and guides. No spam, unsubscribe anytime.