Skip to content
Pricing

AI Image Generation API Cost per Image, by Model

Image generation API cost per image, model by model: what a batch and 1,000 images cost, reference pictures, and why a failed image costs nothing.

Updated 4 min read

Image generation API cost is a price per image: you pay the model's rate for each image delivered, and nothing for one that fails. On Frameport, an image costs from $0.025 on our own models to $0.16 on Nano Banana Pro, so a thousand images cost between $25.00 and $160.00.

Below: every image model of the catalog on one table, what batches and reference pictures change, how partial batches are billed, how to estimate the cost of a thousand images, and how to get the exact price of a request before it runs.

How image APIs charge: the quick answer

An image request names a model, a prompt and n, the number of images, from 1 to 4. The price is the model's rate per image times n. It is held on your balance when the request is accepted, and each image that succeeds is charged the unit price; the share of an image that fails goes back to you. The aspect ratio and the length of the prompt never change the price.

There is no subscription, no seat and no fee per request: you top up a balance in dollars, from $10, and the same balance pays for every model on your key. Pricing explains the holds.

Every image model on one table

Frameport sells 10 image models on one key. From the lowest price per image to the highest:

ModelMakerPer image4 images1,000 images
Frameport Image 1Frameport$0.025$0.10$25.00
Frameport Image 2Frameport$0.025$0.10$25.00
Frameport Image 3Frameport$0.025$0.10$25.00
GPT Image 2.5 SunburstOpenAI$0.085$0.34$85.00
GPT Image 2.5 FlareOpenAI$0.085$0.34$85.00
Nano Banana 2.1Google$0.085$0.34$85.00
Flux 3 ImageBlack Forest Labs$0.088$0.352$88.00
Grok Imagine 2.0xAI$0.088$0.352$88.00
Seedream 5.0 ProByteDance$0.099$0.396$99.00
Nano Banana ProGoogle$0.16$0.64$160.00

If you came looking for the price of OpenAI's or Google's image models: the GPT Image 2.5 rows are OpenAI's, the Nano Banana rows are Google's, and each row is what that model costs here, on the same key and balance as the rest. The detailed guides are Nano Banana Pro API pricing and GPT Image 2.5 API pricing.

Batch size and reference pictures

Batch size. n images cost n times the unit price: four images on Seedream 5.0 Pro cost $0.396. A batch is not discounted and not marked up; it saves you round trips, not money. Each image of a batch is its own output, with its own file and its own cost_usd.

Reference pictures. Some models read pictures with the prompt, to keep a face, a product or a place, or to edit an image by instruction. Frameport Image 1 takes up to 10 reference pictures and adds a fee for each one after the first, which the quote's breakdown shows on a line of its own. Frameport Image 2 and Frameport Image 3 take up to 4 each, at no extra cost. Each model page says what the model reads besides the prompt.

Partial batches: you pay per image delivered

Ask for four images, get three: you pay for three. The generation still ends as succeeded, because something was delivered, and its cost_usd is the sum of the delivered images. The failed one shows status: "failed" with its reason, and its share of the hold has already gone back to your balance. When every image fails, the generation is failed and costs nothing.

What a batch delivered, and what it cost
import os
import requests

API = "https://frameport.ai/v1"
headers = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}

gen = requests.get(f"{API}/generations/gen_4kQ8vT2nLm9Xr7Wd1sYcPa", headers=headers).json()
delivered = [out for out in gen["outputs"] if out["status"] == "succeeded"]
print(f"{len(delivered)} of {len(gen['outputs'])} images delivered, charged {gen['cost_usd']} USD")

The models from other makers keep their makers' content policies, so a prompt can be refused. A refusal costs nothing either.

Cost per 1,000 images: how to estimate it

Multiply the unit price by the number of images: a thousand images cost $25.00 on Frameport Image 1, $85.00 on Nano Banana 2.1 and $160.00 on Nano Banana Pro. Three things refine the figure:

  • Failures lower it. Images that fail are not charged, so the real bill is at or under the estimate.
  • Extra reference pictures raise it on Frameport Image 1. Quote one request with your real pictures and multiply.
  • Drafts are part of it. If you try a prompt a few times before the run, count those images too, or draft on a lower-priced model.

A thousand images go out as requests of up to 4 images each, within the workspace limits: 60 requests that start work a minute and 20 generations running at once. This estimate reads the live prices for every model:

A thousand images on each model, live prices
import requests

wanted = 1000
models = requests.get("https://frameport.ai/v1/models").json()["data"]

for m in sorted((m for m in models if m["type"] == "image"), key=lambda m: m["pricing"]["per_image"]):
    print(f"{m['id']:<24} {wanted} images: about {m['pricing']['per_image'] * wanted:.2f} USD")

Price a request before you run it

POST /v1/generations/quote takes the body you would send to /v1/images/generations and returns the price, the hold and whether your balance covers it, without running anything. Quotes are free and do not count against your rate limit.

curl https://frameport.ai/v1/generations/quote \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "flux-3-image", "n": 4, "aspect_ratio": "16:9"}'
200 OK
{
  "object": "quote",
  "model": "flux-3-image",
  "type": "image",
  "mode": "generate",
  "price_usd": 0.352,
  "reserved_usd": 0.352,
  "breakdown": "4 images × $0.088",
  "available_usd": 42.5,
  "enough_balance": true
}

Add max_cost_usd to a request and anything priced above it is refused with 400 max_cost_exceeded before a hold is placed. See quotes and spending caps and the images reference.

FAQ

How much does an AI image API cost per image?

On Frameport, from $0.025 per image on our own models to $0.16 on Nano Banana Pro. You pay only for images that succeed.

How much do 1,000 AI images cost by API?

From $25.00 on Frameport Image 1 to $160.00 on Nano Banana Pro, before any image that fails, since failed images are not charged.

Do reference pictures cost extra?

On Frameport Image 1, each reference picture after the first adds a fee, shown in the quote. Frameport Image 2 and Frameport Image 3 include their reference pictures in the price.

Am I charged for images that fail?

No. Each image settles on its own: a batch of four with one failure costs three images, and a request where every image fails costs nothing.

Which image model is the cheapest to call?

In the catalog, our own models, at $0.025 per image. The cheapest image generation API guide covers what each low-priced model is good at, and the best image generation API guide picks a model by job.

Start building.

Your API key is free. Top up from $10 when you are ready.