AI Gateway Image Generation
The Vercel AI Gateway supports image generation and editing capabilities. You can generate new images from text prompts, edit existing images, and create variations with natural language instructions.
To see which models AI Gateway supports for image generation, use the Image Gen filter at the AI Gateway Models page.
To implement image generation with AI Gateway, use one of the following methods:
- AI SDK: Use the AI SDK for TypeScript/JavaScript applications with native support for streaming, multi-modal inputs, and type-safe model interactions
- TanStack AI: Use
generateImagewithvercelGatewayImagefrom@tanstack/ai-vercel-gatewayfor text-to-image generation. See the setup guide for authentication and the adapter reference for supported operations. - Chat Completions API: Use the Chat Completions endpoints for compatibility with existing OpenAI integrations across any programming language
Last updated September 15, 2026
Was this helpful?