A WordPress plugin that adds an admin settings page to configure which AI provider is tried first for each task type — text generation, image generation, and vision — when multiple providers are connected.
- WordPress 7.0+
- PHP 8.2+
- The AI plugin (wordpress.org/plugins/ai)
- At least one AI provider plugin (
ai-provider-for-anthropic,ai-provider-for-google,ai-provider-for-openai)
Install via Composer:
composer require jazzsequence/ai-connector-priorityOr drop ai-connector-priority.php into your mu-plugins directory.
Once activated, go to Settings → AI Priority to configure the provider order for each task type.
| Task | Used for |
|---|---|
| Text generation | Title generation, excerpt, summarization, content resizing, editorial notes, meta descriptions |
| Image generation | Featured image generation, inline image generation, image editing |
| Vision | Alt text generation, image analysis |
For each task type, select your 1st, 2nd, and 3rd choice provider. The AI plugin will try the first-choice provider's models first. If no model from that provider is registered, it falls back to the next choice.
Note: Anthropic does not support image generation and is excluded from that task type.
The fallback applies at model selection time (whether a model is registered in the active provider plugin), not at runtime. If the selected model's API call fails, the user sees an error rather than an automatic retry.
Settings are stored in wp_options under ai_connector_priority.
MIT