AIForum.

How to Use Multiple AI Providers in One WordPress Site with Separate Credentials

On this page

THE SHORT ANSWER

WordPress supports several AI providers on one site through separate connector plugins, each holding its own API key on the Settings → Connectors screen. The AI plugin then selects a provider from a prioritized model list, validates capability support before execution, and falls back to another configured provider when the preferred model is unavailable.
Quick facts

WordPress can hold credentials for several AI providers at the same time. Each provider is installed as its own connector plugin — Anthropic, Google, and OpenAI are the three featured connectors — and each keeps its own API key, entered on the Settings → Connectors screen. The AI plugin then selects a provider at runtime from a prioritized model list, checks whether the chosen connector supports the requested operation, and can fall back to another configured provider when the preferred model is unavailable.

This guide is for site owners and developers who want more than one provider configured on a single WordPress installation — to keep credentials separated per vendor, route different tasks to different models, or maintain a working fallback when one provider is down or rate-limited. It covers the setup, the selection logic, verification, and the limits worth knowing before you commit.

What “separate credentials” means in WordPress

Provider access is not bundled into a single settings field. According to the multi-provider support documentation, the plugin supports multiple AI providers “through the WordPress AI Client and connector system,” and “provider access is supplied by separate AI Connector plugins.”

That produces a one-to-one relationship between a provider and a credential:

  • One connector plugin per provider — Anthropic, Google, OpenAI, or a custom connector implementation.
  • One API key per connector, obtained from the provider and pasted into that connector’s field.
  • One shared consumer — the AI plugin — which reads whichever connectors are installed, active, and authenticated.

The Settings Connectors screen is the single place where these are managed. It “lets you connect your WordPress site to external services” and ships with the three featured connectors. Each connector includes a link to the provider’s site where you can create or copy the required credentials.

Prerequisites

Before starting, confirm you have:

  • Administrator access to the WordPress dashboard.
  • The AI plugin. The Connectors screen displays a notice to install it, and the plugin requires a valid AI connector before it can be used.
  • At least one connector plugin installed and active.
  • An API key from each provider you intend to use.
  • A rough idea of which operations you need — text generation, image generation, or vision — so you can confirm capability support later.

Setting up two or more providers

Step 1 — Open Settings → Connectors

From the WordPress dashboard, select Settings > Connectors. The screen shows the AI plugin notice and the featured connector options.

Step 2 — Install the AI plugin

Select Install the AI plugin. After installing, WordPress adds an AI screen under Settings, used to configure AI features and experiments for your site. Do this first: connectors are of little use to features without the consumer plugin. The plugin requires a valid AI connector before it can be used.

Step 3 — Install a connector plugin

Select Install next to the provider you want. This installs and activates the plugin associated with that connector.

Step 4 — Add the API key

After the connector plugin is installed and active, add an API key from the provider. Use the link on the connector to create or copy credentials from the provider’s site, then paste the key into the connector’s field and save.

Step 5 — Repeat for each additional provider

Return to Settings → Connectors and repeat steps 3 and 4 for the next provider. Each connector keeps its own key; adding OpenAI does not overwrite an existing Anthropic credential.

Step 6 — Confirm on the AI screen

Open Settings → AI. If no valid connector is configured, the screen shows a message asking you to verify that one or more AI connectors are configured. Seeing that message after you have entered keys means the connector is not installed, not active, or its authentication is not being detected.

How WordPress selects among configured providers

Once more than one connector is present, selection is not a manual per-request choice in the basic flow. It is driven by preference lists and capability checks:

  • Text workflows use get_preferred_models_for_text_generation().
  • Image workflows use get_preferred_image_models().
  • Vision workflows use get_preferred_vision_models().
  • Features can override the preferred ordering using filters.

Most experiment abilities build prompts with using_model_preference( ...$models ), then check runtime support with is_supported_for_text_generation() or is_supported_for_image_generation(). That check is what stops a request from being sent to a connector that cannot handle it: capability checks prevent running requests on unsupported connectors.

Fallback is automatic. If a preferred model is unavailable, another configured model or provider can be used. This is the main operational reason to configure more than one provider — not novelty, but the ability to keep a feature working when the first choice is not.

Connector detection for developers

Credential detection is connector-aware. has_ai_credentials() inspects wp_get_connectors() for ai_provider connectors with configured authentication. The wpai_has_ai_credentials filter allows custom connector implementations to report their configured status, and has_valid_ai_credentials() performs a runtime check. If you are writing a custom connector, or debugging why a provider is not being seen, these are the functions to inspect.

An illustrative three-provider layout

This is a design sketch, not a tested configuration. The documentation does not map specific vendors to specific capabilities, so verify capability support on your own installation before relying on any arrangement.

Suppose a site configures all three featured connectors with separate keys. A text-heavy workflow consults the text preference list and runs on whichever configured text-capable model ranks first; if that model is unavailable, the next configured provider is used. An image workflow consults a different list entirely. Because capability checks run before execution, a provider that cannot perform the requested operation is skipped rather than failing mid-request.

The practical benefit is that the site does not need to be reconfigured when a provider’s availability changes. The tradeoff is that the exact model behind a given output can vary, which matters if you are comparing results or publishing generated content.

Why keeping credentials separate is worth the setup

  • Failure isolation. A single provider outage does not take every AI feature offline, because fallback can use another configured connector.
  • Independent key rotation. You can revoke or replace one provider’s key without touching the others.
  • Usage attribution. Per-provider keys make it easier to see which provider is consuming which workload, since billing and rate limits remain per provider.
  • Routing by task. Different preference lists govern text, image, and vision workflows, so a site can deliberately spread work across vendors.

None of these are automatic guarantees. They are the practical consequences of the architecture, and they depend on each connector actually being installed, authenticated, and capable of the operation being requested.

Verifying the setup and troubleshooting

Common symptoms and what they indicate:

  • “Verify that one or more AI connectors are configured” — no valid connector is detected. Check that the connector plugin is installed and active, that the API key was saved, and that the provider account is in good standing.
  • A feature appears unavailable — the documentation notes that features “may appear unavailable until a connector is installed, authenticated, and capable of the required operation.” All three conditions must hold.
  • Requests go to an unexpected provider — preference ordering, not the order in which you installed connectors, determines selection. Filters can change that ordering.
  • A custom connector is ignored — use the wpai_has_ai_credentials filter so it reports configured status correctly.

When verifying, work from the outside in: confirm the connector plugin is active, confirm the key is present and accepted, then confirm the capability check passes for the operation you are trying to run. If a feature still reports no connector, the failure is usually at one of those three points rather than in the feature itself.

Limitations and tradeoffs

  • Fallback changes the model, not just the route. Automatic fallback keeps a feature running, but a different provider may produce different output.
  • Capability coverage is uneven. Not every connector supports every operation; the capability check exists precisely because this is not guaranteed.
  • Credential handling is your responsibility. Multiple providers means multiple secrets to store, rotate, and revoke. Removing a connector should include revoking the key at the provider.
  • Documentation is moving. The Settings Connectors documentation was published May 30, 2026 and last modified June 8, 2026, and the multi-provider experiment documentation lives on the develop branch. Behavior and interface can change between releases.
  • Cost and limits stay separate. Separate keys make per-provider usage easier to attribute, but they do not consolidate billing or rate limits into one pool.

Next step

Start with one connector, install the AI plugin, and confirm that a feature actually runs and produces output. Then add a second provider and observe which model handles a request — the preference list, not installation order, decides. If your results differ from what you expect, note your WordPress version, connector plugins, and the exact message shown on Settings → AI, and share those details with the community so others can compare against their own setups.

FAQ

Can I use different providers for text and image tasks on the same site?

The architecture supports it: text workflows consult get_preferred_models_for_text_generation(), while image workflows consult get_preferred_image_models(). Capability checks run before execution, so a connector that cannot perform the operation is skipped rather than failing mid-request.

What happens if my preferred provider is unavailable?

If a preferred model is unavailable, another configured model or provider can be used. This fallback is automatic, which is the main practical reason to configure more than one connector.

Do I need the AI plugin before adding connectors?

The Connectors screen displays a notice to install the AI plugin, and the plugin requires a valid AI connector before it can be used. Installing the AI plugin first means the connectors have a consumer ready when you add keys.

Where exactly do I enter each API key?

On the Settings → Connectors screen. After a connector plugin is installed and active, you add an API key from the provider; each connector includes a link to the provider's site where you create or copy the credentials.

References

  1. https://wordpress.org/documentation/article/settings-connectors-screen/
  2. https://github.com/WordPress/ai/blob/develop/docs/experiments/multi-provider-support.md

Related terms

AI Connector plugin
A separate plugin that supplies access to one AI provider; installing and authenticating it is what makes that provider available to the AI plugin.
WordPress AI Client
The layer through which the AI plugin communicates with providers via the connector system.
Capability check
A runtime test of whether a connector supports the requested operation, performed before a request is executed.
Provider/model preference list
An ordered list consulted per workflow type — text, image, or vision — that determines which configured model is tried first.
wp_get_connectors()
The function inspected by has_ai_credentials() to find ai_provider connectors with configured authentication.

Leave a Reply

Your email address will not be published. Required fields are marked *