
Vercel AI Gateway plugin for WordPress
Quick Answer
The Vercel AI Gateway plugin for WordPress enables access to over 400 AI models from 40+ providers via a single API key.
Quick Take
The Vercel AI Gateway plugin for WordPress enables access to over 400 AI models from 40+ providers via a single API key. It supports multi-modal content generation, automatic fallbacks during outages, and dynamic model discovery, streamlining AI integration for WordPress sites. This plugin requires WordPress 7.0 and simplifies management with unified billing and observability.
Key Points
- Access 400+ AI models from providers like OpenAI and Google with one API key.
- Supports text, JSON, image, and video generation through a single prompt builder.
- Automatic fallbacks ensure AI features remain operational during outages.
- Dynamic model discovery allows new models without plugin updates.
- Unified billing simplifies management across multiple AI providers.
📖 Reader Mode
~2 min read1 min read
The Vercel AI Gateway plugin gives any WordPress site access to hundreds of models from 40+ providers through a single API key. Providers include Anthropic, Google, OpenAI, xAI, DeepSeek, MiniMax, Moonshot AI, and more.
The plugin is implemented as a connector for the new WordPress AI Client, which requires WordPress 7.0, released today.
Link to headingWhat this enables
Any AI-powered plugin works automatically. Plugins built on the WordPress AI Client pick up the connector without their own provider integrations or API keys.
One key, many providers. Manage a single AI Gateway key in Settings > Connectors instead of credentials per provider.
Multi-modal content generation. Text, structured JSON, image generation and editing, and video, all through the same prompt builder.
Automatic fallbacks. AI features stay online during provider outages.
Dynamic model discovery. New models become available without a plugin update.
Unified billing and observability across providers, at provider prices.
Link to headingGetting started
Install the Vercel AI Gateway plugin on your WordPress site
Add your AI Gateway API key under Settings > Connectors
To call AI Gateway directly from your own code:
$excerpt = wp_ai_client_prompt( 'Write a 2-sentence excerpt for this post: ' . $post->post_content )
->using_provider( 'ai_gateway' )
->generate_text();
Writing a two-sentence excerpt for a WordPress blog post
See the plugin documentation for more details, including examples for text, structured JSON output, image generation, and video.
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

