What is ImgAPI?
ImgAPI is an API for AI image generation. You send a prompt, and optionally reference images, and get an image back from the model you choose.
The point is to reach several image models through one integration instead of wiring up each provider’s API one by one.
What can I try before integrating?
The online playground lets you pick a model, write a prompt, add reference images and choose the ratio, resolution and quality.
- Multi-select mode to compare models on the same prompt
- A model comparison page with sample outputs
- Three free uses a day without an account
How does the API work?
You use one API key and create a generation task, then poll the task until the image is ready.
The API docs describe the requests. Because generation is asynchronous, your app checks the task rather than waiting on a single long request.
What does it cost?
You pay per successful image. The price depends on the model and resolution, and starts from about 0.0054 USD for a 1K image on the standard GPT Image 2.5 model, according to the pricing section.
Prices are in USD. With an account you can also check in daily for 20 credits. Check the site for current prices before you build on them.
Alternatives to ImgAPI
Teams that add image generation usually either integrate each model provider directly or use a gateway that covers several models. ImgAPI is a gateway focused on image generation only.
- Calling each provider directlyUsing the image APIs from OpenAI, Google or ByteDance separately.
- falA hosted platform for running generative media models through an API.fal.ai ↗
- ReplicateA platform for running machine learning models through an API.replicate.com ↗
How ImgAPI compares
| Option | Best for | Trade-off |
|---|---|---|
| ImgAPI | Developers who want several image models behind one API key and a playground to compare them | You depend on one intermediary, and its prices and model list can differ from the providers’ own |
| Calling each provider directly | Teams that need one specific model and a direct relationship with its provider | Each provider adds its own account, billing and integration |
| fal | A wide range of image, video and audio models | Broader than image generation, so there is more to evaluate |
| Replicate | Trying many open and hosted models | Pricing and model behaviour vary by model |
ImgAPI is a fit when you only need image generation and want to test several models quickly and ship through one key. If you need one specific model directly or a broader set of media models, a provider API or a larger platform may suit better.
Questions people ask about ImgAPI
What is ImgAPI?
A developer API for AI image generation that gives access to several image models through one API key.
Which models does it offer?
The playground lists GPT Image, Gemini (Banana) and Seedream models, each with several versions.
Can I generate from a reference image?
Yes. You can add up to 12 reference images to a prompt.
Is there a free tier?
The web playground gives 3 free uses a day without an account, and signed-in users can check in daily for 20 credits.
How is it priced?
Per successful image, in USD, by model and resolution.
What resolutions are supported?
1K, 2K and 4K, depending on the model.
Is there documentation?
Yes. The site links to API docs and a model comparison page.
What are the alternatives to ImgAPI?
You can call each model provider directly, or use a hosted model platform such as fal or Replicate. They differ in model choice, pricing and how many integrations you maintain.
