AI image generator API
One text-to-image API for 18 production image models, newest first. Same authentication, same request shape, same response format — swap the model id and nothing else changes.
Most recent addition: Nano Banana 2.1, added Oct 2026. We add the best image models available, each behind the request shape you already use.
- 1
Create an API key in the Developer Dashboard and export it:
Terminalexport GETIMG_API_KEY="your-api-key"
- 2
Open Claude Code in your project and send it this prompt:
PromptIntegrate the getimg.ai image and video generation API into this project. 1. Read the docs index at https://docs.getimg.ai/llms.txt, then the Quickstart, Models and Generate images / Generate videos guides it links. 2. Use the official SDK for this codebase (getimg-ai on npm, getimg on PyPI), or plain HTTP if neither fits. 3. Read the API key from the GETIMG_API_KEY environment variable. Never hardcode it or commit it. 4. Pick a model by calling the list models endpoint instead of guessing an id.
Pay per request. Powering 1M+ generations daily. Compare all models
Every image model, compared
Live capabilities and pricing, pulled straight from the same catalog the API serves. Newest first.
| Model | Added | From / image | Max resolution | Reference images |
|---|---|---|---|---|
| Nano Banana 2.1google | Oct 2026 | $0.04/image | 4K | Up to 14 |
| GPT Image 2.5 Flareopenai | Sep 2026 | $0.06/image | 2K | Up to 10 |
| GPT Image 2.5 Sunburstopenai | Sep 2026 | $0.06/image | 2K | Up to 10 |
| Seedream 5.0 Probytedance | Sep 2026 | $0.05/image | 2K | Up to 10 |
| Qwen Image 3.0 Proalibaba | Sep 2026 | $0.04/image | 2K | Up to 3 |
| Grok Imagine Image 2.0xai | Aug 2026 | $0.09/image | 2K | Up to 3 |
| Nano Banana 2 Litegoogle | Jun 2026 | $0.035/image | 1K | Up to 3 |
| Grok Imagine Imagexai | Jun 2026 | $0.03/image | 2K | Up to 3 |
| Wan 2.7 Imagealibaba | Apr 2026 | $0.03/image | 2K | Up to 9 |
| Wan 2.7 Image Proalibaba | Apr 2026 | $0.075/image | 2K | Up to 9 |
| Qwen Image 2.0 Proalibaba | Apr 2026 | $0.075/image | 2K | Up to 3 |
| Qwen Image 2.0alibaba | Apr 2026 | $0.035/image | 2K | Up to 3 |
| GPT Image 2openai | Apr 2026 | $0.06/image | 2K | Up to 10 |
| Nano Banana 2google | Feb 2026 | $0.08/image | 4K | Up to 4 |
| Seedream 5.0 Litebytedance | Feb 2026 | $0.035/image | 2K | Up to 10 |
| Z-Image Turboalibaba | Dec 2025 | $0.015/image | 1K | — |
| Seedream 4.5bytedance | Dec 2025 | $0.04/image | 4K | Up to 10 |
| Seedream 4bytedance | Nov 2025 | $0.03/image | 4K | Up to 10 |
Which image model should you call?
Most teams start on the current flagship and add a second model for the jobs it handles badly. Here is the short version.
Start here — newest model
Nano Banana 2.1, added Oct 2026. Prompt adherence and text rendering improve with almost every generation of these models, so the newest release is usually the strongest default.
Final assets
Nano Banana 2.1 renders at 4K, so output survives print, retina displays and aggressive cropping without an upscaling pass.
Character and brand consistency
Nano Banana 2.1 accepts up to 14 reference images, which is what you need to hold a face, product or style steady across a whole set.
Image generation API FAQ
What is an AI image generator API?
It is an HTTP endpoint that turns a text prompt into an image. You POST a model id and a prompt, and the response contains the generated image plus a usage object with the exact cost of that request.
The alternative is running diffusion models on your own GPUs, which means provisioning hardware, managing model weights, handling cold starts and paying for idle capacity between requests.
Which image models are available through the API?
18 image models are live right now. The most recent additions are Nano Banana 2.1, GPT Image 2.5 Flare, GPT Image 2.5 Sunburst. Each has its own page with parameters, code samples and pricing.
Generating video instead? See the AI video generation API.
How do you decide which image models to add?
We add the best image models available. Each one is assessed on output quality, reliability and cost before it goes into the catalog, so the list stays short enough to actually choose from.
Once a model is in, it is callable immediately — same endpoint, same request format, no SDK upgrade. Only the model id changes.
The most recent addition is Nano Banana 2.1, added Oct 2026.
How much does an image generation API cost?
Pricing is per image and varies by model and resolution. Current image rates run from $0.015 to $0.18 per image. There is no subscription and no minimum spend — you pay for the images you generate.
The comparison table above lists the current rate for every image model.
Can I switch between image models without rewriting my integration?
Yes. Every image model on getimg.ai uses the same endpoint, authentication and request shape. Changing model means changing one string, so moving onto a newer release does not mean reworking your integration.
Start generating images with the getimg API
Create a key, add credit and make your first call in minutes.
Get your API key