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.
★ 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.zipFrom 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
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.1.0 | Jun 29, 2026 | ai-router.zip | 3 |
| 1.0.1 | Jun 29, 2026 | ai-router.zip | 0 |
| 1.0.0 | Jun 29, 2026 | ai-router.zip | 0 |
| 0.4.3 | Mar 29, 2026 | ai-router.zip | 1 |
| 0.4.1 | Mar 29, 2026 | ai-router.zip | 2 |
| 0.4.0 | Mar 27, 2026 | ai-router.zip | 0 |
| 0.3.0 | Mar 27, 2026 | ai-router.zip | 1 |
| 0.2.0 | Mar 26, 2026 | ai-router.zip | 0 |
| 0.1.0 | Mar 26, 2026 | ai-router.zip | 2 |