Docs · Image generation cost

How image generation APIs bill

How OpenAI, Google, xAI, ByteDance and Microsoft bill image generation: per-image prices, per-token formulas, input images, batch discounts and hidden costs.

Image generation APIs use one of two billing models. Some charge a flat price per image. Others charge per output token and turn each image into a token count. The same 1024×1024 image can cost from under one cent to about 21 cents, depending on the model and the quality setting you choose.

Cost of one generated imageC = Timage-outPimage-out + Ttext-inPtext-in + Timage-inPimage-in

Two billing models

Per-token billing is used by OpenAI, Google and Microsoft. The provider converts the output image into a number of tokens and charges its image output rate on them. The price per image then depends on the size and quality, because both change the token count.

Per-image billing is used by xAI and ByteDance. You pay a published price for each image within its size and quality tier. This makes a chosen tier straightforward to budget.

Text prompts are billed on top in both models, at text input rates. A 100-token prompt at $5 per million adds $0.0005 to each image, so for most workloads the prompt is a rounding error next to the image itself.

Per-token billing

OpenAI GPT Image 2.5

Both GPT Image 2.5 variants, Flare and Sunburst, bill image output at $30 per million tokens. The quality setting changes the token count far more than the size does. These are the output tokens OpenAI's image cost calculator gives for a 1024×1024 image:

QualityOutput tokensCost per image
low196$0.0059
medium439$0.0132
high1,756$0.0527
xhigh3,122$0.0937
max7,024$0.2107

Moving from medium to high quadruples the cost of the same image. Choose the quality per use case: a thumbnail or a draft rarely needs more than medium.

OpenAI GPT Image 2.6

GPT Image 2.6 also bills image output at $30 per million tokens. OpenAI's calculator gives about $0.0247 at low, $0.0435 at medium and $0.0527 at high for a 1024×1024 output. Image and text inputs add separate charges. The image pricing comparison shows more size and quality settings.

Google Nano Banana

Google publishes a fixed image-output token count for each resolution. Nano Banana 2.1 (gemini-nano-banana-2.1) bills those tokens at $30 per million:

ResolutionOutput tokensCost per image
1K (1024×1024)1,120$0.0336
2K (2048×2048)1,680$0.0504
4K (4096×4096)3,780$0.1134

Nano Banana Pro (gemini-3-pro-image) charges $120 per million image-output tokens: $0.134 for a 1K or 2K image and $0.24 at 4K. Nano Banana 2 Lite also charges $30 per million but makes only 1K images, at $0.0336 each.

Microsoft MAI-Image-2.6

Microsoft also bills per token, but it does not publish how many tokens one image uses. The cost per image therefore cannot be calculated from official figures. Third-party trackers report about $0.039 per image for MAI-Image-2.6 and $0.0195 for MAI-Image-2.6-Flash. Treat both as estimates until Microsoft publishes a token count.

Per-image billing

  • Grok Imagine Image 2.0 (xAI): $0.04 (1K · low), $0.05 (1.5K · low), $0.06 (2K · low), $0.06 (1K · medium), $0.07 (1.5K · medium), $0.08 (2K · medium).
  • Seedream 5.0 Pro (ByteDance): $0.045 (Up to 2.61 MP (1K and 1.5K)), $0.09 (2K (above 2.61 MP)).

A per-image price applies to a specific output tier. Grok Imagine Image 2.0 rises from $0.04 at 1K low quality to $0.08 at 2K medium quality. Seedream 5.0 Pro doubles from $0.045 to $0.09 above 2.61 megapixels.

Input and edit costs

Editing sends one or more images in as well as one out. Each provider prices those input images differently:

  • OpenAI: $8 per 1M image input tokens for GPT Image 2.5 and 2.6. OpenAI does not publish a fixed token count per input image, so read the usage field of each response.
  • Google: input images are billed at the input rate, which makes them a fraction of a cent each: about $0.0011 per image on Nano Banana Pro.
  • ByteDance: on Seedream 5.0 Pro the first reference image is free and each extra one costs $0.003.
  • xAI: Grok Imagine Image 2.0 charges $0.01 for each input image, in addition to the output price.
  • Microsoft: editing is supported. Check its pricing page for input-image charges before you cost an editing pipeline.

Batch discounts

Google halves image prices through its Batch API: a 1K Nano Banana 2.1 image drops from $0.0336 to $0.0168. OpenAI halves GPT Image 2.5 image-output token pricing in Batch: its 1K medium example falls from about $0.0132 to $0.0066 before input tokens. OpenAI does not list a GPT Image 2.6 Batch rate. xAI accepts image requests in its Batch API but lists no discount. We found no batch discount for Seedream 5.0 Pro or the MAI models.

If your images do not have to be ready within seconds, such as catalogue images or overnight asset generation, batch pricing is the largest single saving available.

Costs that are easy to miss

  • Retries. Rejected or unusable images still cost money unless the provider says otherwise. BytePlus does not bill failed Seedream images; most providers bill every image returned.
  • Quality defaults. A client library that sends a high default quality can multiply a per-token bill by four without any change to your code.
  • Several images per request. Asking for four variations is four images, not one.
  • Rate limits. MAI-Image-2.6 allows 2 to 12 requests per minute in preview. A low limit does not change the price, but it can force a second provider into the architecture.

Estimate a monthly bill

Multiply the images you generate each month by the price per image at the size and quality you will really use. Add your retry rate and any edits. For example, 20,000 images a month at 1K costs about $672 on Nano Banana 2.1, $336 through its Batch API, and $1,054 on GPT Image 2.5 at high quality.

The image generation API pricing page does this calculation for every model at once. For text and vision input tokens, use the token calculator and the image token documentation.

Evidence ledger

Latest source check: 13 November 2026. Individual model check dates appear in the pricing comparison. Provider pricing pages remain authoritative.