TokenHot
HomeModelsConsoleDocumentationBlog
✓ English简体中文Translation unavailable繁體中文Translation unavailable日本語Translation unavailableFrançaisTranslation unavailableРусскийTranslation unavailableTiếng ViệtTranslation unavailable
TokenHot

One API. A model catalog. Usage-based billing.

Product

  • Models
  • Pricing
  • How It Works
  • Integration guides
  • About

Popular Models

  • gemini-4-neon
  • gpt-6.2-astra
  • claude-fable-5-2
  • Kimi K3.1 Pro
  • DeepSeek V4.1 Flash
  • qwen3.8-flash
  • doubao-seedream-5-5
  • wan3.0-video-prime

Model Providers

  • OpenAI
  • Anthropic
  • Google
  • DeepSeek
  • Qwen
  • ByteDance
  • Doubao
  • MiniMax
  • Z.ai (GLM)
  • xAI
  • Moonshot AI
  • Xiaomi MiMo
  • Kling

Resources

  • Docs
  • Blog
  • hi@tokenhot.ai
  • LLMs.txt

Trust & Support

  • Trust Center
  • Security & Data
  • Support
  • Privacy
  • Terms
  • Refund Policy
© 2026 NEXORA AI PTE. LTD. · Tokenhot
TokenHot
  1. Home
  2. Blog
  3. Pricing & Usage
  4. Image Generation API Pricing: What Does a Usable Image Really Cost?
Pricing & Usage

Image Generation API Pricing: What Does a Usable Image Really Cost?

Calculate image API cost per accepted image, compare per-image and token billing, and reconcile retries, credits, pending charges, and rejected outputs.

Tokenhot Team
November 30, 20268 min read
Image Generation API Pricing: What Does a Usable Image Really Cost?
Share𝕏

To budget an image API, calculate the cost of the images you can actually use. Start with the exact route's billing unit, include the attempts needed to produce your deliverables, and divide the reconciled net charge by the number of accepted images.

A cheap generation that fails your product review still belongs in the cost of that batch. So does an edit that finally makes the image usable.

There are two useful numbers to keep separate:

Forecast cost per accepted image = estimated batch cost / expected accepted images
Final cost per accepted image = reconciled batch net charge / accepted images

The second number is final only when both billing and image review are complete. Missing charges and unreviewed outputs need explicit statuses, rather than convenient zeros.

Read the unit before comparing the price

“Image API pricing” can describe several different contracts. Capture the provider, exact model ID, endpoint, account group, currency, date, and requested settings with every rate.

Published unit What to multiply What to confirm
Per image Billable image count × applicable image rate Whether every returned output is billed, including multiple outputs from one request
Per request Billable requests × request rate How many outputs the request includes and how edits are treated
Per million tokens Each billable token category × its rate / 1,000,000 Text input, image input, image output, and applicable cache categories
Resolution or quality tier Quantity in each tier × its rate The exact size and quality combination covered by that tier

For a Tokenhot estimate, start with the GPT Image 2 route page, then confirm the billing unit and applicable rate for your exact route and account before calculating a quote. A model name alone does not establish whether that route bills per image or by tokens. Use a confirmed account rate in your worksheet.

For a separate direct-provider example, the OpenAI GPT-Image-2.6 Sunburst model page lists $5 per million text input tokens, $8 per million image input tokens, and $30 per million image output tokens on the same observation date. Matching numbers do not establish matching routes, features, or final charges.

Use the billing categories documented for the service you will actually buy. Do not apply a direct-provider discount to a gateway request without confirming that it applies there.

Estimate one generation, including its inputs

For uncached token categories, the calculation is:

Attempt estimate = (text input tokens × text input rate
                  + image input tokens × image input rate
                  + image output tokens × image output rate) / 1,000,000

Worked example using synthetic usage: suppose one completed attempt consumes 200 text input tokens, 1,000 image input tokens, and 2,000 image output tokens. Applying the direct-provider rates above gives:

Component Calculation Estimated charge
Text input 200 × $5 / 1,000,000 $0.001
Image input 1,000 × $8 / 1,000,000 $0.008
Image output 2,000 × $30 / 1,000,000 $0.060
Total Sum of these three categories $0.069

Those token counts are assumptions, not a measurement of a particular resolution or prompt. Image input includes a reference asset in this example; remove that row only when the actual request has no billable image input.

OpenAI's image-generation cost guidance explains that token consumption can differ by model and quality setting. It also identifies additional mainline-model usage for Responses image workflows and route-specific cache conditions. Use the documented calculator for an initial estimate, then replace assumed consumption with the usage and billing records for your chosen route. Do not sum an aggregate token field and its component fields twice.

For a fixed-price contract, the arithmetic is simpler. A hypothetical $0.04 per billable image means 120 billable images cost $4.80. This invented rate illustrates the calculation; it is not a Tokenhot offer.

Follow one batch from forecast to delivered images

Suppose you need campaign images that pass the same review: correct product shape, legible label, required dimensions, and no unintended changes to the reference product. Decide those conditions before generating anything.

The following is one synthetic batch, used throughout the remaining calculations. Each attempt requests one output. There are 100 initial attempts and 20 additional generation or edit attempts: 120 attempts total. Additional attempts remain attached to the same batch, including those that replace rejected candidates.

Outcome at the reporting cutoff Attempt count Returned images Accepted images
Returned and accepted 80 80 80
Returned and rejected 24 24 0
Returned, review pending 8 8 Unknown
Failed or timed out, no output recorded 8 0 0 at this cutoff
Total 120 112 80 confirmed; 8 still awaiting review

Count accepted deliverables once. If a rejected image is edited into an accepted version, the edit adds cost; it does not turn both files into two accepted deliverables.

Under the hypothetical $0.04 contract, the forecast assumes all 120 attempts incur one image-equivalent charge and 80 deliverables are accepted:

Estimated batch charge = 120 × $0.04 = $4.80
Forecast cost per accepted image = $4.80 / 80 = $0.06

The failure-charge assumption is part of this forecast, not a billing rule. Under the separate token scenario, assuming the same $0.069 usage for each of 120 attempts would forecast $8.28, or $0.1035 per accepted image. Actual failed attempts need their own usage or charge records; the completed-attempt token example cannot establish their charges.

These are two pricing scenarios applied to the same workload assumptions. They do not compare measured model quality or show which provider would produce the same 80 deliverables.

Reconcile net charges before calling the result final

Now stay with the same batch and the hypothetical per-image contract. Suppose its fictional billing export contains the following matched entries. All amounts are USD; credits are positive amounts subtracted from gross charges.

Same batch outcome Matched gross charges Matched credits Matched net charges
80 accepted outputs $3.20 $0.08 $3.12
24 rejected outputs $0.96 $0.04 $0.92
8 outputs awaiting review $0.32 $0.00 $0.32
8 failed or timed-out attempts Unknown Unknown Unknown
Matched subtotal $4.48 $0.12 $4.36

Here, “matched” means a record is attributable to the batch and attempt. In a real workflow, these entries supply actual recorded net charges, in contrast to the forecast. The entries above are synthetic examples of those records.

The currently matched charge divided by confirmed accepted images is $4.36 / 80 = $0.0545. Label that a provisional matched-cost ratio: billing for eight attempts remains unresolved, and eight images still need review. It is neither a complete batch cost nor proof that the final cost is below the forecast.

Suppose reconciliation later finds an additional $0.24 net charge for the eight unresolved attempts, with no other adjustments. Suppose review rejects all eight pending images. The completed batch then has:

Final net charge = $4.36 + $0.24 = $4.60
Final accepted images = 80
Final cost per accepted image = $4.60 / 80 = $0.0575

That is a hypothetical closure of this same batch. Until those records arrive, keep the final value unknown. If some pending images pass instead, update the denominator too. For a detailed record-matching process, use the usage and billing reconciliation guide.

What if no images pass review?

Cost per accepted image is undefined when accepted images equal zero. Report the batch charge and “0 accepted images”; do not report $0 per image or divide by the returned-image count. If review has not started, accepted count is pending rather than a measured zero acceptance rate.

Stop and inspect the rejection reasons before spending on another batch. Wrong dimensions call for a settings change; repeated product distortion may call for a different reference, workflow, or route.

Scale the budget without hiding the assumptions

The completed synthetic batch required 120 attempts for 80 accepted images: 1.5 attempts per accepted image. If the same task mix and yield held, 1,000 accepted images would require about 1,500 attempts.

At the hypothetical $0.04 charge per attempt, that forecasts $60 before credits or other fees. Under the synthetic $0.069 token consumption per attempt, it forecasts $103.50. Neither estimate carries the batch's fictional credits forward as a guaranteed discount.

When forecasting your own production work, separate thumbnails, product edits, and large campaign images into different rows. Give each row its own settings, input assets, observed acceptance yield, and retry allowance. A usable thumbnail does not establish the cost of a product edit.

Set both a spending limit and an attempt limit. If a generation request times out, resolve its status where the route supports that before resubmitting; an uncertain response does not establish that generation never happened. If only the file download fails, retry retrieval from the saved result rather than immediately generating again. The GPT Image Python workflow explains response-first saving for that task.

Build a cost record you can reuse

For the next batch, keep these fields together:

  1. Contract: provider/account, model ID, endpoint, currency, rate source and date, billing unit, size and quality settings.
  2. Attempts: batch ID, internal attempt ID, provider request or task ID where available, parent attempt, input asset count, returned output identifiers, usage categories, and failure status.
  3. Review: accepted, rejected, or pending for each output, with the reason and final deliverable identity.
  4. Billing: matched gross charge, batch-attributable credits, net charge, and unresolved entries. Keep unrelated account adjustments outside the batch unless you state an allocation method.

Choose an image route by its cost to deliver your required images under those conditions. Start with the current rate and a small, budgeted sample; close both review and billing before treating its cost per accepted image as the basis for a larger purchase.

Back to Blog
TokenHot

Chat, Image & Video Models with One API Key

  • Chat
  • Image
  • Video

Get discounted API rates on select AI models.

Get Your API Key

Pay-as-you-goOpenAI-compatible

Related Articles

GPT Image 2 API: Generate, Edit, and Save Images in Python

GPT Image 2 API: Generate, Edit, and Save Images in Python

September 24, 2026
How to Reconcile an LLM API Bill With Your Usage Logs

How to Reconcile an LLM API Bill With Your Usage Logs

November 25, 2026
Video Generation API Pricing: Estimate Cost per Finished Clip

Video Generation API Pricing: Estimate Cost per Finished Clip

November 27, 2026