This plugin allows your WordPress site to connect to the Vercel AI Gateway. It enables your WordPress site to use hundreds of generative AI models from over 20 different providers, to generate text, images, video, and more.
The Vercel AI Gateway connector is built on top of WordPress’s built-in AI client and integrates seamlessly with its connector API. This way it unlocks using AI powered plugins on your site.
This plugin requires WordPress 7.0.
Since WordPress 7.0 is not yet released, you can currently test this plugin by using the latest WordPress 7.0 RC.
Once WordPress 7.0 stable is out (scheduled for May 20, 2026), you can use it with the regular release.
Available models are dynamically discovered from the AI Gateway API – you get access to new models as soon as they’re available.
The AI Gateway gives you access to more than 100 models from over 20 providers, including:
You can access all of these and many more directly through the AI Gateway, drastically simplifying your setup. For a full list of models, browse the official AI Gateway models list.
Once you install the Vercel AI Gateway Provider plugin on your WordPress site, any AI feature that uses the WordPress built-in AI client can use it, typically through other plugins.
If you want to write your own plugin that uses it, you can do so through the WordPress built-in AI client as well. Here’s a code example:
$result = wp_ai_client_prompt( 'Hello, world!' )
->using_provider( 'ai_gateway' )
->generate_text_result();
Note however, that the usage of using_provider will make the prompt only work if the individual WordPress site has the Vercel AI Gateway Provider plugin active and configured. You should therefore only use it if you want to enforce usage of the AI Gateway.
Otherwise, for broader ecosystem compatibility, it is recommended that you don’t specify a provider. You can optionally specify model preferences, for example like this:
$result = wp_ai_client_prompt( 'Hello, world!' )
->using_model_preference( 'claude-opus-4.7', 'gemini-3.1-pro-preview', 'gpt-5.4' )
->generate_text_result();
In this case, the first relevant model encountered on the site will be used, and if the site has the Vercel AI Gateway Provider plugin active and configured, it will rely on the AI Gateway.
See the official docs for more examples.
This plugin connects to the AI Gateway API for inference.
See the Vercel AI Product Terms and the Vercel Privacy Policy.