
AI Provider for Vercel AI Gateway connects WordPress to Vercel AI Gateway so your site can use many leading AI models through one provider.
With one Vercel AI Gateway API key, compatible WordPress AI features can generate text and images using models from providers such as OpenAI, Anthropic, Google, xAI, BFL Flux, Bytedance Seedream, Recraft, and others.
The plugin is built for sites and developers using the WordPress AI Client. After setup, the provider can be selected as vercel-ai-gateway by compatible AI Client integrations.
This plugin is useful if your WordPress site, theme, or plugin already uses the WordPress AI Client and you want to route AI requests through Vercel AI Gateway.
It does not add a public chatbot or front-end widget by itself. It registers a provider that other AI Client-powered features can use.
You can provide your Vercel AI Gateway API key in one of these ways:
AI_GATEWAY_API_KEYExample constant:
define( 'AI_GATEWAY_API_KEY', 'vck_...' );
If the WordPress Connectors screen is managing the key, the plugin settings page will show the key status instead of asking you to enter the same key twice.
Once the plugin is configured, compatible WordPress AI Client integrations can use the provider ID:
vercel-ai-gateway
If your AI feature lets you choose a provider or model, select Vercel AI Gateway and then choose the model you want to use.
Developers can also use the provider directly through the WordPress AI Client:
use WordPress\AiClient\AiClient;
$result = AiClient::prompt( 'Summarize this post in two sentences.' )
->usingProvider( 'vercel-ai-gateway' )
->usingModel( 'anthropic/claude-sonnet-4.6' )
->generateTextResult();
echo $result->toText();<h3>External services</h3>
This plugin connects to Vercel AI Gateway, an external API service provided by Vercel Inc.
The service is used to:
When you save or test your API key, open the plugin settings, or when the model cache expires, the plugin may send your Vercel AI Gateway API key to https://ai-gateway.vercel.sh/v1/models to retrieve the available model list. The model list is cached for 10 minutes in a WordPress transient.
When a compatible AI Client feature uses this provider, the plugin sends the configured API key, selected model ID, prompt text, chat messages, image inputs if provided, and generation settings needed to complete the request.
Requests may be sent to Vercel AI Gateway endpoints such as:
https://ai-gateway.vercel.sh/v1/modelshttps://ai-gateway.vercel.sh/v1/chat/completionshttps://ai-gateway.vercel.sh/v1/images/generationsVercel AI Gateway may route the request to the underlying model provider selected by the model ID.
Vercel AI Gateway is provided by Vercel Inc.
The available model list comes from Vercel AI Gateway and is shown in the plugin settings screen. The plugin groups models into text and image options when possible.
Supported model types include:
See the Vercel AI Gateway model catalog for the full list:
https://vercel.com/ai-gateway/models
GPL-2.0-or-later