OpenAI Image API (GPT Image) by OpenAI
GPT Image models for image generation and editing via Images and Responses APIs.
Price
see pricing
list price
Free tier
No
SDK downloads
117M
npm openai · PyPI openai
Status
Up
21 incidents in 30 days
Pricing
| Free tier | — |
|---|---|
| Cheapest paid plan | — |
| Usage price | gpt-image-2 1024x1024: $0.006 low / $0.053 medium / $0.211 high per image |
| Good to know | Newest models gpt-image-2.5-sunburst and -flare: $8/1M image input, $30/1M image output tokens (Batch 50% off). gpt-image-2 standard: $8 input / $30 output per 1M image tokens. Legacy per-image tables also list GPT Image 1.5, 1 and 1 Mini. |
From the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy.
Use it from an agent
| MCP server | Community servers only |
|---|---|
| npm | npm install openai |
| PyPI | pip install openai |
| GitHub | openai/openai-node · 11.2K stars · last push Oct 9, 2026 |
Alternatives to OpenAI Image API (GPT Image)
| API | Free | Price | SDK downloads / wk | GitHub stars | MCP |
|---|---|---|---|---|---|
| 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 | 59.1M | 1,686 | MCP (community) |
| Leonardo API Image and video generation API with multiple models, billed pay-as-you-go. |
— | not published | 18.8K | 56 | MCP |
| Recraft API Raster and vector (SVG) image generation, editing and vectorization API. |
— | $0.04 per raster image, $0.08 per vector image (V4/V3); V4.1 $0.035 raster | — | 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, [klein] 4B from... | — | 13 | 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. |
— | not published | — | — | MCP |