Best AI Image Generation APIs: Per-Image Prices (2026)

Compare 6 AI image generation APIs on API.market by price per image, free trial and editing support, with the unit math and a first request to run.
Best AI Image Generation APIs: Per-Image Prices (2026)
Best AI Image Generation APIs: Per-Image Prices (2026)

If you need to add image generation to an app, the first thing you run into is that nobody states what one image costs. One vendor sells credits. Another wants a subscription before you can test a single prompt. A third charges by megapixel and never says so on the front page.

This guide compares six image generation APIs listed on API.market by the number that matters in production: what a single generated image costs, and what a thousand cost. Prices, free allowances and request formats come from each listing's own documentation, which we read on 21 November 2026. We did not run paid requests for this update, so nothing here is a benchmark of speed or image quality. Where a listing does not say something, we say so instead of guessing.

The short version: for a cheap first test, start with the Low-Cost Image Generate API or the Ultra Low Cost AI Images API, because both have a finite free trial. For editing with reference images, look at FLUX.2 [pro] or Nano Banana Pro. For images that contain readable words, look at Ideogram v3 Balanced. For a flat, simple per-image price with no unit math, Seedream 4.5 is the easiest to budget.

How this comparison was checked

Everything below was read from the live API.market listing pages and their documentation through the catalog, on 21 November 2026. That means:

  • Checked: current price per unit, how many units a request consumes, whether a free trial exists, supported parameters, whether the endpoint is synchronous or asynchronous, and published rate limits.
  • Not checked: output quality, latency under load, uptime, and whether any given prompt passes a provider's safety filter. We did not generate images for this revision, so we make no claim about which model looks best. Judge that with your own prompts.
  • Code samples: the snippets in this article are adapted from the listing documentation. We checked them for syntax by reading them against the documented request shape. We did not execute them against the live providers, so run them once with a small test before wiring them into anything.

Two terms are worth pinning down because they cause most budget surprises.

An API unit is the thing you are billed for. On some listings one unit equals one image. On others, like FLUX.2 [pro], the number of units per request depends on the image size. Always convert units to images before comparing prices.

A free trial on API.market is a finite allowance per product. It is a one-time amount to test the product, not a monthly refill. A listing described as pay as you go (PAYG) can still charge for every unit you use, even though its monthly price is $0.

The six APIs at a glance

API What it does Price as listed Free trial Sync or async
Low-Cost Image Generate Text to image, image to image, object removal, upload Plans on the listing; units per call not stated in the docs 10 trial units Not stated in the docs
Ultra Low Cost AI Images zimage and gptimage-2 generation, GPT Image 2 editing Listing title advertises $0.002 per image 20 trial units Returns a hosted URL in the response
FLUX.2 [pro] Generation and editing with up to 8 reference images $0.02 per unit, 2 units for a 1 MP image, so $0.04 None, PAYG Async, poll for the result
Seedream 4.5 Text-to-Image High resolution text to image, up to 4 images per call $0.04 per image None, PAYG Synchronous
Ideogram v3 Balanced Text to image with style presets and inpainting $0.075 per successful request None, PAYG Async, poll for the result
Nano Banana Pro (magicapi) Generation and editing with up to 14 reference images $0.21 per image at 1K or 2K, $0.42 at 4K None, PAYG Async, poll for the result
Most popular in this guide
Low-Cost Image Generate APIAn almost free AI image generation API for cost-conscious developers. including text to image, object remove, image to image
Text to imageBy AstroSoft
33subscribers
2.2MAPI calls
Lowest plan: 10 FREE API units

Illustration accompanying the price comparison

An earlier version of this guide also covered an Imagen-4 listing. That listing no longer resolves in the catalog, so we removed it rather than recommend something a reader cannot subscribe to. We also corrected several prices that had drifted since the first version was written: FLUX.2 [pro] and Nano Banana Pro cost more per image than that version said.

What a request really costs

Per-unit prices are easy to quote and easy to misread. Here is the arithmetic for each pricing model, using the numbers on the listings.

FLUX.2 [pro] charges $0.02 per API unit, and the documentation defines units per request as 1, plus the megapixels of the output image, plus the megapixels of every input image, rounded up to a whole unit. A 1 MP image from a text prompt is 1 + 1 = 2 units, which is $0.04. Add one 1 MP reference photo and it is 3 units, $0.06. A 4 MP output with no inputs is 5 units, $0.10. The listing's own table shows these three cases. So the headline $0.02 is the price of a unit, not of an image, and a thousand 1 MP images cost $40, not $20.

Seedream 4.5 is billed by generated image count, at $0.04 each. The n parameter lets you request one to four images in a call, and the docs say billing follows usage.generated_images. A thousand images is $40, and four images in one call is $0.16.

Ideogram v3 Balanced is one unit per successful request, $0.075, whatever the aspect ratio, resolution or style you pick. A thousand images is $75. The docs state that failed or cancelled predictions are not billed.

Nano Banana Pro from the magicapi listing is $0.21 per unit. A 1K or 2K image is one unit ($0.21), and a 4K image is two units ($0.42). Reference images, aspect ratio and output format do not change the price. A thousand 2K images is $210. It is the most expensive option here by a wide margin, which is why it makes sense for a small number of high value images and not for bulk generation.

Ultra Low Cost AI Images advertises $0.002 per image in its listing title. The documentation we read explains the models and the request format, and it does not break the price down per model, so treat $0.002 as the floor and check the pricing tab for gptimage-2 before you budget around it. If $0.002 holds, a thousand images would be $2. We could not confirm the separate $0.003 figure for GPT Image 2 that an earlier version of this guide stated, so we dropped it.

Low-Cost Image Generate has a 10 unit free trial. The docs list four endpoints and do not say how many units each call consumes, and plan prices sit on the listing's pricing tab. An earlier version of this guide quoted a $5 monthly Pro plan with 2,000 units. We did not re-verify that in this revision, so look at the plan details on the listing before you rely on it.

A worked example makes the spread concrete. Say your app makes 5,000 images a month, all 1 MP or 1K/2K, text prompt only:

  • FLUX.2 [pro]: 5,000 x $0.04 = $200
  • Seedream 4.5: 5,000 x $0.04 = $200
  • Ideogram v3 Balanced: 5,000 x $0.075 = $375
  • Nano Banana Pro: 5,000 x $0.21 = $1,050
  • Ultra Low Cost AI Images: 5,000 x $0.002 = $10, if the advertised rate applies to the model you pick

Failed predictions are not billed on the three listings that say so, which helps. It does not make retries free: a retry that succeeds is a new charge.

1. Low-Cost Image Generate API

Low-Cost Image Generate by astrosoft bundles four jobs behind one product: text to image, image to image, object removal, and an upload endpoint that turns a local file into a hosted URL. The catalog shows more than two million total API calls on the listing and 32 subscribers as of today. That is a usage figure, not a quality measurement.

What the documentation says it does:

  • POST /text_to_image takes a prompt, an optional negative_prompt, and width and height.
  • POST /object_remove takes an init_image URL and a mask_image URL. White pixels in the mask mark what is removed and black pixels mark what stays. The mask has to be single channel and match the image dimensions.
  • POST /image_to_image takes an init_image and a prompt describing the change.
  • POST /upload takes a file and returns a URL you can feed to the other endpoints.

Authentication is one x-api-market-key header. Error responses in the docs are plain JSON with a status and a message, such as an invalid key, an empty prompt or mismatched mask dimensions.

A first call, from the listing documentation:

curl -X POST 'https://prod.api.market/api/v1/astrosoft/low-cost-image-generate/text_to_image' \
  -H 'accept: application/json' \
  -H 'x-api-market-key: YOUR-API-KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "A girl standing in a field of flowers with lake",
    "negative_prompt": "blurry, low quality, text",
    "width": 1024,
    "height": 768
  }'

The 10 trial units are a one-time allowance for this product. Use them to see whether the output suits your use case, particularly the object removal endpoint, which is the feature most of the other listings here do not have. If you need to clean backgrounds out of product photos, that is the reason to pick this one.

2. Ultra Low Cost AI Images API

Ultra Low Cost AI Images by aqua-ai exposes a single OpenAI style endpoint, POST /images/generations, with two models: zimage for standard generation and gptimage-2, which also supports editing when you pass a source image URL.

The documented parameters are model, prompt, an optional ratio (square is 1024x1024, portrait is 1024x1792, landscape is 1792x1024) and the optional image for edits. A successful response returns success, the model, a hosted url and a latency figure in seconds. The default rate limit is 10 image requests per minute per API key, and some keys have custom limits. That limit matters more than the price if you plan batch jobs: 10 a minute is 600 an hour, so a 10,000 image backlog takes most of a day.

The docs show the authentication header as Authorization: Bearer YOUR_KEY, which differs from the x-api-market-key header on the other listings, so copy it from this listing and not from another. A request looks like this:

curl -X POST 'https://prod.api.market/api/mcp/aqua-ai/cheap-ai-image/v1/images/generations' \
  -H 'Authorization: Bearer YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "zimage",
    "prompt": "A cinematic photo of a glass greenhouse in the rain",
    "ratio": "landscape"
  }'

The trial is 20 units, one time. The listing shows 65 subscribers, a 3.7 rating from 3 reviews and a much smaller call count than the astrosoft listing. That is a small sample, so run your own prompts before committing volume to it. Errors documented include a safety violation, an upstream failure and a timeout, each returned as success: false with an error message.

3. FLUX.2 [pro] Image Generation and Editing API

FLUX.2 [pro] is Black Forest Labs' model, served by magicapi. The developer describes it as high quality generation and editing with up to eight reference images. We repeat that as the developer's description, not as our test result.

Useful details from the listing:

  • Up to 8 reference image URLs in input_images (jpeg, png, gif or webp) for editing or combining people, products and styles.
  • Aspect ratios including 1:1, 16:9, 9:16, 4:5 and custom, with output from 0.5 to 4 megapixels. Images top out at 2048x2048, so a 4 MP request at a non-square ratio may be reduced.
  • Output as webp (default), jpg or png, with a seed for repeatable results.
  • Asynchronous: the POST returns 201 Created and a prediction id, and you poll GET /predictions/{id} until the status is succeeded, failed or canceled.

The cost control to remember is that input images count toward the bill. The docs say each reference image adds its own megapixels, so shrinking large reference photos before sending them lowers the cost. The listing also notes that an old example request sent a prompt_upsampling field that this model version does not accept, so leave it out of your own requests.

There is no free trial on this listing, and no monthly fee. Every request after your first is billed at the unit math above.

4. Seedream 4.5 Text-to-Image API

Seedream 4.5 is ByteDance's model, served by byteplus under the model ID seedream-4-5-251128. It is the simplest to budget because one image is one unit at $0.04, and it is synchronous, so the generated image URL comes back in the same response with no polling loop.

The documented request goes to POST /text-to-image/run under the base URL https://prod.api.market/api/proxy/byteplus/seedream. Parameters are model, prompt (up to 4,000 characters), size (presets from 2560x1440 up to 4096x4096, plus custom sizes within stated limits), n for one to four images, response_format (url or b64_json), guidance_scale from 0 to 20, and a watermark flag that defaults to false.

curl -X POST "https://prod.api.market/api/proxy/byteplus/seedream/text-to-image/run" \
  -H "Content-Type: application/json" \
  -H "x-api-market-key: YOUR_API_MARKET_KEY" \
  -d '{
    "input": {
      "model": "seedream-4-5-251128",
      "prompt": "A cinematic portrait of a woman in neon rain, ultra detailed",
      "size": "2560x1440",
      "n": 1,
      "response_format": "url",
      "guidance_scale": 3,
      "watermark": false
    }
  }'

The docs call the returned URL a signed URL. Treat it as temporary: download the file to your own storage as soon as you get it, and do not store the link in your database as the permanent address of the image. There is no free trial, so your first test is a paid one at $0.04.

5. Ideogram v3 Balanced API

Ideogram v3 Balanced is the one to look at when the image needs words in it, because the listing's use cases centre on graphics where the prompt names the text to show. As with the others, that is the listing's claim. Test your own headline strings before you build a feature around it.

It is also the most configurable on style: 15 aspect ratios from 1:3 to 3:1, 69 fixed resolutions, five style types, 62 named style presets such as Flat Vector and Watercolor, and style reference images. You can inpaint by sending an image and a black and white mask, where black pixels are regenerated and white pixels are kept.

One behaviour catches people out: magic_prompt_option defaults to Auto, which may rewrite your prompt before generation. If the result does not match your prompt word for word, that is why. Set it to Off when you need the prompt used exactly as written, which matters a lot when the prompt contains text that must be spelled correctly.

Price is a flat $0.075 per successful request. The rate limit is 10 requests per second on all plans, and polling a prediction counts toward it even though the GET itself is free, so poll every one to five seconds, not in a tight loop.

6. Nano Banana Pro (magicapi listing)

Nano Banana Pro is Google's image model, served by magicapi at $0.21 per unit, with 4K costing two units. The developer describes it as its state of the art generation and editing model. It takes up to 14 reference images in image_input, and offers 1K, 2K (default) and 4K resolution and aspect ratios up to 21:9.

Two details deserve attention. First, the listing says a 2K request took about 113 seconds of processing in its example, so your polling deadline needs to be generous. Second, allow_fallback_model is false by default. If you set it to true, a request made while Nano Banana Pro is at capacity may run on a different model (the docs name ByteDance Seedream 5), so only enable it if you are happy for the output model to change.

A separate listing, google/nano-banana-pro in the catalog, also exists. We did not compare its pricing here, so check both pages if you plan to buy this model.

Choosing by the job you have

Start from the job, not the model name.

  • You want to try an image API today without paying. Use the free trial on the Low-Cost Image Generate API (10 units) or the Ultra Low Cost AI Images API (20 units). Both are one-time allowances, so plan your test prompts before you burn them.
  • You need to remove objects from photos. The astrosoft listing is the only one here with a dedicated object removal endpoint. Ideogram's inpainting covers part of that job, but it regenerates a masked region from a prompt, which is not the same thing.
  • You need to edit or combine existing images. FLUX.2 [pro] (up to 8 references) and Nano Banana Pro (up to 14) are built for it. GPT Image 2 on the aqua-ai listing also edits from one source image.
  • You need readable text inside the image. Start with Ideogram v3 Balanced, and compare against FLUX.2 [pro] and Nano Banana Pro, whose listings also feature text in their examples.
  • You need predictable cost at volume. Seedream 4.5 is a flat $0.04 per image with a synchronous response. Ideogram is a flat $0.075 per request. FLUX.2 [pro] varies with size and references, so model your typical request before you commit.
  • You are generating thousands of images in a batch. Check rate limits first. A 10 per minute limit changes the schedule more than a one cent price gap does.

If you need to compare more models than this list covers, browse the image generation category, which includes additional models we did not review in this revision.

Your first request, with the checks that save money

The sync listings return the image in the response. The async listings (FLUX.2 [pro], Ideogram, Nano Banana Pro) work in two steps: you create a prediction, then poll for it. This sample follows the FLUX.2 [pro] documentation. It checks every HTTP status before parsing, uses finite timeouts, stops at a total deadline, keeps the prediction ID in every error so you can look the job up later, and validates that the output is a URL before calling it a success.

import os
import time
import requests

API_KEY = os.environ["API_MARKET_KEY"]
BASE_URL = (
    "https://prod.api.market/api/v1/magicapi/"
    "high-quality-image-generation-editing-black-forest-labs-flux-2-pro"
)
VERSION = "285631b5656a1839331cd9af0d82da820e2075db12046d1d061c681b2f206bc6"
HEADERS = {"Content-Type": "application/json", "x-api-market-key": API_KEY}


def create_prediction(prompt):
    response = requests.post(
        f"{BASE_URL}/predictions",
        headers=HEADERS,
        json={"version": VERSION, "input": {"prompt": prompt, "resolution": "1 MP", "aspect_ratio": "1:1"}},
        timeout=(5, 30),
    )
    if response.status_code != 201:
        raise RuntimeError(f"create failed: {response.status_code} {response.text[:300]}")
    return response.json()["id"]


def wait_for_output(prediction_id, deadline_seconds=300):
    started = time.monotonic()
    while time.monotonic() - started < deadline_seconds:
        response = requests.get(
            f"{BASE_URL}/predictions/{prediction_id}",
            headers={"x-api-market-key": API_KEY},
            timeout=(5, 30),
        )
        if response.status_code == 429:
            retry_after = response.headers.get("Retry-After", "")
            time.sleep(int(retry_after) if retry_after.isdigit() else 5)
            continue
        if response.status_code != 200:
            raise RuntimeError(f"poll failed for {prediction_id}: {response.status_code}")
        body = response.json()
        if body["status"] == "succeeded":
            output = body.get("output")
            if not isinstance(output, str) or not output.startswith("https://"):
                raise RuntimeError(f"{prediction_id} succeeded with no usable output")
            return output
        if body["status"] in ("failed", "canceled"):
            raise RuntimeError(f"{prediction_id} {body['status']}: {body.get('error')}")
        time.sleep(2)
    raise TimeoutError(f"deadline reached, prediction {prediction_id} may still finish")


if __name__ == "__main__":
    prediction_id = create_prediction("A paper boat on a calm lake at dawn, soft light")
    print("prediction id:", prediction_id)
    print(wait_for_output(prediction_id))

A few things this sample is careful about, and why.

The create call is not retried automatically. If the POST times out, you do not know whether the provider accepted and billed it. Retrying blindly can create and bill a second image. If you hit a timeout on the create step, record it, check your usage page, and only then decide to resubmit.

The polling loop only retries the free GET. It honours Retry-After when the header is a number of seconds. Some servers send an HTTP date instead, and converting that blindly to an integer will crash, which is why the code checks isdigit() first and falls back to a short wait.

A 429 means you were rate limited. It does not mean your quota is spent. Rate limiting is about how fast you call, and spent quota or an empty balance is a different response from the account side. Read the response body and your account usage before concluding which one you hit.

Finally, remember that a request that returns 201 or a prediction that reports success is not the same as a usable image. The output check catches the case where a job finishes without a result.

For Seedream or the aqua-ai listing, the sync response contains the URL directly, so skip the polling and just check the HTTP status and the url or data[0].url field before using it.

Cost control habits for production

Image APIs make it easy to spend money by accident. A few habits that apply to every listing here:

  1. Convert units to images before you compare. FLUX.2 [pro] and Nano Banana Pro both use units that are not one-to-one with images.
  2. Cap your own spend. Count requests in your code and stop at a daily ceiling. Do not rely on a provider limit to protect your budget.
  3. Store results yourself. Signed or temporary output URLs expire. Copy images to your own storage right away.
  4. Keep the ID of every job. If a deadline hits, the job may still complete and bill. The ID is how you find it.
  5. Test with small sizes. FLUX.2 [pro] at 0.5 MP costs fewer units than 4 MP. Iterate on prompts cheaply, then render the final size.
  6. Do not assume a free trial refills. The 10 and 20 unit allowances are one-time, per product.

FAQs about AI image generation APIs

What is the best AI image generation API?

It depends on the job, and we did not benchmark output quality for this update. For a cheap first test, the Low-Cost Image Generate and Ultra Low Cost AI Images listings both have a finite free trial. For editing with several reference images, FLUX.2 [pro] and Nano Banana Pro are designed for it. For text inside images, Ideogram v3 Balanced is the one to try first.

How much does an AI image generation API cost?

On the listings reviewed here, a single image ranges from the advertised $0.002 on the Ultra Low Cost listing up to $0.21 for a 1K or 2K image on Nano Banana Pro. In between: Seedream 4.5 at $0.04, FLUX.2 [pro] at $0.04 for a 1 MP image, and Ideogram v3 Balanced at $0.075. Check the unit definition first, since FLUX.2 [pro] bills by megapixel.

Is there a free AI image generation API?

There are finite free trials on two of the listings: 10 units on Low-Cost Image Generate and 20 on Ultra Low Cost AI Images. They are one-time allowances per product, not monthly refills. The other four listings are pay as you go with no free trial. Truly keyless image APIs exist elsewhere, but they tend to be rate limited and unsuitable for production.

Do I need to poll for the result?

On FLUX.2 [pro], Ideogram v3 Balanced and Nano Banana Pro, yes. They return a prediction ID and you poll until the status is succeeded, failed or canceled. Seedream 4.5 and the Ultra Low Cost listing return the image URL in the same response.

What is the difference between a 429 error and running out of quota?

A 429 means too many requests in a short time, and the fix is to back off and retry later. Running out of quota or balance is a different condition that you confirm in your account usage and the response body. Do not treat a 429 on its own as proof that your allowance is spent.

Can I store the image URL the API returns?

Treat it as temporary unless the listing says otherwise. The Seedream docs describe a signed URL, and example outputs on other listings point at hosted files that may not be kept forever. Download the image to storage you control as soon as the request succeeds.

Can these APIs edit an existing image?

Several can. FLUX.2 [pro] and Nano Banana Pro accept reference images, GPT Image 2 on the aqua-ai listing edits from one source image, Ideogram v3 Balanced supports inpainting with a mask, and the astrosoft listing offers image to image and object removal. Each handles masks and references differently, so read the parameters on the listing before you build around one.

Related posts