# GPT Image 2 on AI Gateway

**Published:** April 21, 2026 | **Authors:** Walter Korman, Rohan Taneja, Jerilyn Zheng

---

GPT Image 2 is now available on [Vercel AI Gateway](https://vercel.com/ai-gateway).

OpenAI's newest image model supports detailed instruction following, accurate placement and relationships between objects, and rendering of dense text across multiple aspect ratios.

The model can render fine-grained elements including small text, iconography, UI elements, dense compositions, and subtle stylistic constraints, at up to 2K resolution. Non-English text is also supported and reads coherently.

GPT Image 2 can produce photos, cinematic stills, pixel art, manga, and other distinct visual styles, with consistency in texture, lighting, composition, and detail. This suits workflows like game prototyping, storyboarding, marketing creative, and medium-specific asset generation.

To use GPT Image 2, set model to `openai/gpt-image-2` in the [AI SDK](https://ai-sdk.dev/), or try it directly in our [m](https://vercel.com/ai-gateway/models/gpt-image-2)[odel playground](https://vercel.com/ai-gateway/models/gpt-image-2).

```typescript
import { generateImage } from 'ai';
const result = await generateImage({
  model: 'openai/gpt-image-2',
  prompt: 'Poster of Vercel AI products, Bauhaus style.',
});
```

![image (27)](//images.ctfassets.net/e5382hct74si/68Q2JSnbSFhIAJNUdzGv50/a10fc1069c11d393fbe51fbd3abda035/image__27_.png)

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in [custom reporting](https://vercel.com/docs/ai-gateway/capabilities/custom-reporting), [observability](https://vercel.com/docs/observability/ai-sdk-observability), [Bring Your Own Key](https://vercel.com/docs/ai-gateway#bring-your-own-key) support, and intelligent provider routing with automatic retries.

Learn more about [AI Gateway](https://vercel.com/docs/ai-gateway), view the [AI Gateway model leaderboard](https://vercel.com/ai-gateway/leaderboards) or try it in our [model playground](https://vercel.com/ai-gateway/models/gpt-image-2).

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)