# The AI Image Generator API for Every Top Model

> Revana puts the image models developers ask for behind one API key and one request shape: send a prompt, name the model and get the image back in seconds. You pay per image from prepaid credit, an image that fails costs nothing, and switching models is a one-word change in your code. Prices as of 2026-11-21.

- Page: https://revana.si/image-api

## Request

```bash
# One Idempotency-Key per job, made once: resend with the same $KEY after a timeout, a 429 or a 5xx
KEY=$(uuidgen)
curl https://api.revana.si/v1/generations \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $KEY" \
  -d '{
  "model": "nano-banana-pro",
  "input": {
    "prompt": "A ceramic coffee mug on a white table, soft window light, catalog photo",
    "resolution": "1K",
    "aspect_ratio": "4:5"
  },
  "max_cost_usd": 0.04
}'
```

## Which model

- **Photoreal products and people**: Nano Banana Pro, Imagen 4
- **Readable text on the picture**: Ideogram V3, GPT Image 2
- **Drafts and big batches**: GPT Image 2.6 Flare, Qwen Image 3.0
- **Style, concept art and characters**: Midjourney V7, Seedream 5.0 Lite

## Cost of 1,000 images (USD, November 2026)

| Model | Setting | Per image | 1,000 images |
|---|---|---|---|
| [Seedream 5.5](https://revana.si/models/seedream-5.5) | resolution: 1K | $0.02 | $20.00 |
| [Grok Imagine Image 2.0](https://revana.si/models/grok-imagine-image-2.0) | resolution: 1K | $0.02 | $20.00 |
| [GPT Image 2.6 Flare](https://revana.si/models/gpt-image-2.6-flare) | resolution: 1K | $0.02 | $20.00 |
| [GPT Image 2](https://revana.si/models/gpt-image-2) | resolution: 1K | $0.03 | $30.00 |
| [Flux 2 Pro](https://revana.si/models/flux-2-pro) | resolution: 1MP | $0.03 | $30.00 |
| [Ideogram V3](https://revana.si/models/ideogram-v3) | quality: turbo | $0.03 | $30.00 |
| [Qwen Image 3.0](https://revana.si/models/qwen-image-3.0) | resolution: 1K | $0.03 | $30.00 |
| [Nano Banana Pro](https://revana.si/models/nano-banana-pro) | resolution: 1K | $0.04 | $40.00 |
| [Imagen 4](https://revana.si/models/imagen-4) | any size | $0.05 | $50.00 |
| [Recraft V4.1](https://revana.si/models/recraft-v4.1) | resolution: 1K | $0.05 | $50.00 |

## Python

```python
import os
import time
import uuid
import requests

API = "https://api.revana.si/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['REVANA_API_KEY']}"}

# One Idempotency-Key per job, made once: resend with the same key after a timeout,
# a 429 or a 5xx and you get the same job back, never a second charge.
key = str(uuid.uuid4())
resp = requests.post(f"{API}/generations", headers={**HEADERS, "Idempotency-Key": key}, json={
    "model": "seedream-5.5",
    "input": {
        "prompt": "A running shoe on pale concrete, hard noon shadows, catalog photo.",
        "resolution": "2K",
        "aspect_ratio": "4:3",
        "num_images": 2,
    },
    "max_cost_usd": 0.11,  # your cap for the whole request
})
resp.raise_for_status()
gen_id = resp.json()["id"]

job = requests.get(f"{API}/generations/{gen_id}", headers=HEADERS).json()
while job["status"] not in ("succeeded", "failed"):
    time.sleep(3)
    job = requests.get(f"{API}/generations/{gen_id}", headers=HEADERS).json()

if job["status"] == "failed":
    raise SystemExit(job.get("error"))  # a failed job is not charged
for i, url in enumerate(job["output"]["urls"]):
    with open(f"shoe-{i}.png", "wb") as f:
        f.write(requests.get(url).content)
print("charged", job["cost_usd"])
```

## FAQ

### What is an AI image generator API?

It lets your app send a text prompt, and optionally reference pictures, to an AI model and get a finished image back. Revana gives you one API key for Nano Banana, GPT Image, Seedream, FLUX, Midjourney, Imagen and other image models, with one request shape for all of them.

### How much does an image cost?

It depends on the model and the size. On Revana Seedream 5.5 starts at $0.02 an image and Nano Banana Pro costs $0.04 at 1K (prices as of November 2026). Every model's price is on its page, and failed images cost $0.

### Is there a free way to try the API?

Your Revana API key is free, and so are price quotes, so you can test requests and check costs without paying. Images are paid per image from prepaid credit, which starts at $10, never expires and has no subscription.

### Which model is best for text in images?

Ideogram V3 and GPT Image are the strongest choices for readable text such as posters, labels and social graphics. Both run on your Revana key, so you can test the same prompt on each and keep the result that reads best.

### Can I get several images from one request?

Yes. Set num_images to get up to 4 pictures from one prompt on models that support it; each delivered picture is billed at the model's price, so four Seedream 5.5 pictures at 1K cost $0.08. Midjourney V7 returns four pictures per request.

### Why use one API instead of each model maker?

Calling each maker directly means a separate account, key, request format and bill for every model. With Revana you integrate once, and if a route fails the job moves to another route for that model, so a failed image costs nothing and needs no retry code.

### How fast are images?

Most images come back in a few seconds; larger sizes and premium models can take a little longer. Jobs run asynchronously, so you can poll for the result or receive a signed webhook when each image is ready.

### Can I use the images commercially?

Commercial use depends on each model maker's terms, so check the terms for the model you plan to use before publishing. Each model page on Revana names its maker.

