Skip to content

Vercel AI Gateway plugin for WordPress

1 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

  1. Install the Vercel AI Gateway plugin on your WordPress site

  2. 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.