WP Manifestindependent plugin directory
manifest / ai / ai-router

AI Router

Route AI requests to different provider configurations based on capability. Configure multiple instances of the same AI provider (e.g., GPT-4o for text, gpt-image-1 for images) and let AI Router automatically select the right one.

by Per Søderlind · github.com/soderlind/ai-router · website

6stars
9release downloads
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/soderlind/ai-router/releases/download/1.1.0/ai-router.zip

From the readme

AI Router Capability-based AI provider routing for WordPress 7.0 Works with WordPress 7.0-RC2, tested using WordPress AI. Tested text generation and image generation, using two separate Azure OpenAI deployments (gpt-4.1 for text, gpt-image-1 for images). Route AI requests to different provider configurations based on capability. Configure multiple instances of the same AI provider (e.g., GPT-4o for text, gpt-image-1 for images) and let AI Router automatically select the right one. Why AI Router? WordPress 7.0's AI Client SDK only allows one configuration per provider type. AI Router solves this by enabling: - Multiple configurations of the same provider (e.g., separate Azure OpenAI deployments) - Capability-based routing — text generation to GPT-4, images to DALL-E - Default fallback — set a default for unmatched capabilities - Automatic selection — no code changes needed in plugins using the AI SDK Supported Providers AI Router works with any AI provider registered with the WordPress 7 AI Client SDK. Providers are discovered dynamically at runtime via ProviderDiscovery. Tested providers: - OpenAI - Azure OpenAI - Anthropic - Ollama Other providers (Google AI, Cohere, e

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
1.1.0Jun 29, 2026ai-router.zip3
1.0.1Jun 29, 2026ai-router.zip0
1.0.0Jun 29, 2026ai-router.zip0
0.4.3Mar 29, 2026ai-router.zip1
0.4.1Mar 29, 2026ai-router.zip2
0.4.0Mar 27, 2026ai-router.zip0
0.3.0Mar 27, 2026ai-router.zip1
0.2.0Mar 26, 2026ai-router.zip0
0.1.0Mar 26, 2026ai-router.zip2