Image generation APIs for AI agents
13 APIs compared on price, free tier, MCP support and real usage. Prices from the vendors' pricing pages, checked Oct 9, 2026.
| API | Free | Price | SDK downloads / wk | GitHub stars | MCP |
|---|---|---|---|---|---|
| OpenAI Image API (GPT Image) GPT Image models for image generation and editing via Images and Responses APIs. |
— | gpt-image-2 1024x1024: $0.006 low / $0.053 medium / $0.211 high per … | 156M | 11.3K | MCP (community) |
| Gemini API image generation (Nano Banana / Imagen) Gemini image models (Nano Banana) for generation and editing via the Gemini API. |
— | Nano Banana 2.1: $0.0336 per 1K image, $0.0504 per 2K, $0.113 per 4K | 74.9M | 1,717 | MCP (community) |
| Leonardo API Image and video generation API with multiple models, billed pay-as-you-go. |
— | not published | 24.3K | 56 | MCP |
| Prodia Generate and edit images and videos through one inference API over FLUX, SDXL, Seedream, Veo and other models. |
— | Per image: FLUX.2 Klein 4B text-to-image $0.0005 (up to 1 MP) to … | 724 | — | |
| Recraft API Raster and vector (SVG) image generation, editing and vectorization API. |
— | $0.04 per raster image, $0.08 per vector image (V4/V3) … | — | 60 | MCP |
| FLUX API FLUX.2 and FLUX 3 image generation and editing API. |
— | 1 credit = $0.01; FLUX.2 [pro] from $0.03/image … | — | 20 | MCP |
| Stability AI Image API Stable Image Ultra/Core and SD 3.5 generation plus editing and upscaling. |
25 free credits | Free plan then 1 credit = $0.01; Stable Image Ultra 8 credits, Core 3 … |
— | — | MCP (community) |
| Ideogram API Text-to-image API known for accurate text rendering in images. |
— | from $15/mo | — | — | MCP |
| getimg.ai AI-powered image and video generation, editing, and audio creation platform. |
— | from $15/mo | — | — | |
| Segmind API platform for running AI image generation and other models on demand or with dedicated endpoints. |
— | Pay-as-you-go credits; specific model prices vary | — | — | |
| Artbreeder Pro Generate and edit images using AI with varying credit-based tiers. |
— | $0.07 / credit | — | — | |
| Dream by WOMBO Generates images from text prompts using AI. |
5 image generations per day | Free plan · paid from $19.99/mo | — | — | |
| Deep Dream Generator Generates AI images, videos, and music with customizable models and quality settings. |
Free plan with limits based on user level | Free plan · paid from $9/mo | — | — |
Nothing here matches. Search all APIs →
Other categories
Web search APIs Scraping and crawling Browser automation (cloud) Code sandboxes Memory for agents Vector databases LLM gateways and routers Email sending Voice (speech-to-text, text-to-speech) Payments for agents Blockchain RPC and node providers DEX swap and liquidity APIs Crypto market and on-chain data 3D model generation Sound effects and music generation Video generation APIs Model hosting and inference Embeddings and rerank Document parsing and OCR LLM observability and evals Error tracking and analytics Databases and backends Auth and user accounts File storage and media CDN Hosting and deployment SMS, chat and notifications Integrations and automation Business apps with APIs Maps and location Wallets, tokens and NFTs Stock and financial data Game backends and multiplayer Speech-to-text and transcription