WordPress AI Client: What Site Owners, Agencies & Plugin Teams Should Know

For years, every AI feature on a WordPress site came with its own setup screen and its own API key field. Install an SEO plugin, a chatbot and an image generator, and you pasted the same key into three settings pages, often paid for AI credits three times over, and had no single place to see what each plugin sent or spent. Switching providers meant waiting for every plugin to support the new one. The WordPress AI Client changes that. Shipped in WordPress 7.0 “Armstrong” on May 20, 2026, it is a provider-agnostic layer inside core that lets any plugin ask for text, images or structured data while the site owner decides which AI provider answers. You add your OpenAI, Anthropic or Google key once under Settings > Connectors, and every compatible plugin can use it.

WordPress AI Client

That sounds simple, but it affects three groups very differently. Site owners need to know what it costs and where their keys live. Agencies need a repeatable way to manage AI across dozens of client sites. Plugin teams need to rethink how they build, price and support AI features. With WordPress running a huge plugin ecosystem on 38.3% of all websites (W3Techs, November 2026), this is one of the biggest platform shifts since the block editor. In this guide, we will break down how the AI Client works, what changed in WordPress 7.1, and the practical steps each group should take now.

What Is the WordPress AI Client?

The WordPress AI Client is a built-in PHP API that lets WordPress code talk to generative AI models through one consistent interface. Instead of a plugin calling OpenAI’s API directly, it describes what it needs (“summarize this post in three sentences” or “return JSON that matches this schema”) and WordPress routes the request to a suitable model from a provider the site owner has configured.

The main entry point is a single function, wp_ai_client_prompt(), which returns a fluent prompt builder. This means plugin developers write prompts and features, while credentials, provider logic and model selection stay inside core. For site owners, the result is fewer settings screens and more control. For the WordPress ecosystem, it means AI becomes infrastructure, the same way the database or the REST API is infrastructure, rather than something every plugin reinvents.

The Two Layers: PHP AI Client And the WordPress Wrapper

Under the hood, the AI Client has two parts. The first is the PHP AI Client (wordpress/php-ai-client), a provider-agnostic SDK maintained by the WordPress project. It handles provider communication, model selection and response normalization, and it is bundled in core as an external library, much like the Requests library. Because it is not tied to WordPress, it can also be used in other PHP projects.

The second part is the WordPress wrapper, the WP_AI_Client_Prompt_Builder class. It translates the SDK into familiar WordPress conventions: snake_case methods, WP_Error returns instead of exceptions, and integration with the WordPress HTTP API, hooks, the Abilities API and the Connectors screen. If you have built anything with the REST API or the HTTP API, the AI Client will feel familiar from the first line of code.

What It Does Not Include

The most common misunderstanding is that WordPress 7.0 “added ChatGPT to WordPress”. It did not. The merge proposal was explicit that core ships no AI providers and does not automatically enable AI calls. Updating to 7.0 or 7.1 will not send a single request to an AI model on its own.

Providers ship as separate plugins so they can evolve as fast as the AI market does. There are three official ones (AI Provider for Anthropic, AI Provider for Google and AI Provider for OpenAI), and anyone can build more. The WordPress.org directory already lists community providers, including one for Kimi (Moonshot AI) and a generic connector for any OpenAI-compatible API, and an Ollama provider for local models is in development.

How the WordPress AI Client Works with Connectors, Abilities API & MCP

The AI Client is one of three AI building blocks that shipped in WordPress 7.0, alongside the AI Connectors screen and the Connectors API. The same release added a client-side version of the Abilities API, which first arrived in WordPress 6.9. Each piece has a clear job. The AI Client sends prompts out to models. The Connectors screen and API store and manage the credentials those calls need. The Abilities API describes what a site and its plugins can do, so AI agents can discover and run those actions. Put together, they make WordPress both a consumer of AI (plugins calling models) and a tool for AI (agents operating the site). If you have read our guide on how to use MCP with WordPress, the AI Client is the outbound half of that story.

AI Connectors: One Place for API Keys

The Connectors screen, found under Settings > Connectors, is the part of the AI Client that site owners actually see. It lists Anthropic, Google and OpenAI by default. You click Install for a provider, paste your API key and save. From then on, any plugin built on the AI Client can use that connection without asking for its own key.

WordPress 7 AI Connectors screen

Behind that screen, the Connectors API automatically discovers providers registered in the AI Client’s registry and creates connectors with the right metadata. Provider plugins that register there get the Connectors integration for free. In WordPress 7.1, Connectors also gained username and application-password authentication in addition to plain API keys, which opens the door to services that do not use simple keys.

Abilities API And the MCP Adapter

The Abilities API arrived in WordPress 6.9 and creates a central registry of what a site can do, such as “create a draft post”, “update a product price” or “purge the cache”. WordPress 7.0 added a JavaScript version, and 7.1 expanded it with better querying, filtering and input validation, as we covered in What’s New in WordPress 7.1 “Mary Lou”.

Exposing WordPress abilities to AI

The MCP Adapter translates those abilities into the Model Context Protocol, so assistants like Claude or ChatGPT can operate a site from outside. Plugins are already using this pattern. For example, xSpeed Cache’s built-in MCP server lets an assistant check cache status, run benchmarks or purge caches, with an admin approving each action. The AI Client handles the opposite direction: your site asking a model for help.

A Simple Request Flow Example

Imagine an SEO plugin with a “Generate meta description” button. Here is what happens when an editor clicks it on a site running WordPress 7.0 or later:

  1. The plugin calls wp_ai_client_prompt() with the post content and an instruction to return a description under 155 characters.
  2. It first checks is_supported_for_text_generation(). If no provider is connected, it hides the button and links to Settings > Connectors.
  3. WordPress picks a suitable text model from the providers the owner connected (for example Claude through the Anthropic provider), or the plugin’s preferred model if available.
  4. The response comes back as plain text, or as a WP_Error the plugin can show as an admin notice.

The plugin never touches the API key and never names a provider. If the owner switches from OpenAI to Google next month, the button keeps working.

From Experiment to Core: A Quick Timeline

The AI Client did not appear overnight. It came out of the Core AI team’s “AI Building Blocks” initiative, which shipped pieces as Composer packages and feature plugins so developers could test them in production before anything reached core. Knowing the timeline helps you understand why some features are stable and others are still moving.

DateMilestone
November 2025First tagged release of the WordPress AI Client SDK (wordpress/wp-ai-client 0.1.0), with its own “AI Credentials” settings screen
December 2025WordPress 6.9 ships with the Abilities API
February 3, 2026Merge proposal published for adding the WP AI Client to WordPress 7.0
February 20, 2026AI Client merged into core trunk; the standalone wp-ai-client package is set to be sunset
May 20, 2026WordPress 7.0 “Armstrong” released (six weeks after the original April 9 date) with the AI Client, Connectors screen and Connectors API
August 19, 2026WordPress 7.1 “Mary Lou” released; Connectors gain new auth methods, while larger AI Client additions are deferred

What Site Owners Should Know About the WordPress AI Client

If you run a business site, a blog or a WooCommerce store, the AI Client mostly works in the background. You will notice it through the Connectors screen and through plugins that start offering AI features without asking for a separate key. But a few decisions are yours to make, and they affect cost, privacy and security. The good news is that the AI Client puts those decisions in one place instead of scattering them across five plugin settings pages. The questions below are the ones we hear most from site owners setting it up for the first time.

Nothing Happens Until You Connect a Provider

Updating to WordPress 7.0 or later does not turn on AI. Until you install a provider and add a key in Settings > Connectors, AI Client features in plugins will either stay hidden or show a prompt to connect one. This is intentional: you choose whether your site uses AI at all.

If you want to try built-in AI features right away, the official AI plugin from the Core AI team uses the AI Client to generate titles, excerpts and images inside the block editor. Install it on a staging site first, connect one provider and see how it fits your editorial workflow before you roll it out to your live site.

Choosing a Provider

Because the AI Client is provider-agnostic, your choice is not permanent. Pick based on what you already pay for and what you need. If your team already has an OpenAI, Anthropic (Claude) or Google (Gemini) account, start there. If you need image generation, check that your provider’s models support it, since not every model handles every modality.

You can also connect more than one provider. When a plugin asks for a model, WordPress uses the plugin’s preferred model if it is available and otherwise falls back to any compatible model from the providers you configured. That fallback is useful when one provider has an outage or when a feature needs something only one provider offers.

Costs: You Pay the Provider Directly

The AI Client follows a bring-your-own-key model. Your provider bills you for the tokens your plugins use, so there is no middleman markup. That is a real saving compared with plugins that sell AI by credit, but it also means usage adds up across every plugin that uses your connection.

This matters because cost is already a limiting factor for many businesses. In McKinsey’s 2026 State of AI survey, about 20% of respondents said AI operating costs, including token costs, constrained their AI use. Core does not include a spending cap, usage dashboard or per-plugin quota yet, so set a monthly budget limit inside your provider’s own dashboard before you connect it to WordPress.

Where Your API Keys Are Stored

WordPress looks for a provider key in three places, in this order: an environment variable (such as ANTHROPIC_API_KEY), a PHP constant defined in wp-config.php, and finally the database value saved through the Connectors screen. Keys saved in the database are masked in the admin interface but are not encrypted at rest, and encryption is still being discussed in a follow-up ticket.

For most small sites, the Connectors screen is fine as long as your site follows the basics in our WordPress security guide. For stores, membership sites or anything handling sensitive data, ask your host to set the key as an environment variable instead. That keeps it out of database backups and exports.

Privacy and Content Ownership

Every AI Client request sends some of your content to a third-party provider. A “summarize this post” button sends the post. A WooCommerce assistant might send product or order details. Read your provider’s data policy, especially whether API data is used for training and how long it is retained.

If you work in a regulated field or under GDPR, update your privacy policy to mention the AI provider as a data processor. And keep a human review step for anything published. AI can write a first draft of a product description, but it will not know about the recall your supplier announced yesterday.

What Agencies Should Know About the WordPress AI Client

For agencies, the AI Client is both a simplification and a new responsibility. Before 7.0, each AI plugin on a client site stored its own key in its own way, and auditing that across 40 sites was close to impossible. Now there is one standard connection layer per site, which makes AI something you can manage with a checklist and a deployment process. At the same time, clients will start asking for AI features, and someone has to decide who pays for usage, who can trigger it and what happens when a key leaks. Here is how to get ahead of those questions.

Standardize Credentials Across Client Sites

Decide on one way of storing keys and use it on every site you manage. The safest option is environment variables set at the hosting level, followed by constants in wp-config.php. Both survive database migrations, stay out of staging copies and backups, and can be rotated without logging into the WordPress admin.

Document which provider each client uses, which account owns the key and when it was last rotated. If a developer leaves your team or a client changes agencies, you will know exactly which keys to revoke.

Decide Who Pays for AI Usage

There are two common billing models. In the first, the client creates their own provider account and owns the key, so they pay usage directly and you charge only for setup and support. In the second, your agency owns the provider account and bills usage as part of a care plan. The first is simpler and more transparent. The second gives you more control but means you carry the risk of a runaway plugin burning through credits.

Whichever you choose, set hard spending limits in the provider dashboard and agree on them in writing. Because core has no per-plugin quotas yet, one badly coded plugin can consume a month’s budget in a day.

Control Who Can Trigger AI

By default, any plugin that uses the AI Client can make requests once a provider is connected. Developers can use the wp_ai_client_prevent_prompt filter to block prompts in specific cases, such as for users without the manage_options capability. When a prompt is blocked, no AI call is made, the feature reports itself as unsupported and the plugin receives an error.

For multi-author sites, a small must-use plugin with this filter is a good agency standard. You can allow AI for editors and admins while keeping contributors and customers from triggering paid requests. Pair it with role controls inside the plugins themselves. For example, ThinkRank includes a role manager that controls which SEO and AI areas each user role can reach.

AI-powered client workflow in WordPress

Test Updates on Staging First

As plugins move from their own AI integrations to the AI Client, some will raise their minimum WordPress version to 7.0. The official AI plugin did exactly that in version 0.5.0. Clients still on 6.x may suddenly lose features or see plugin update warnings.

Build a short test plan for AI features: connect a provider on staging, check that each AI button still works, confirm keys are read from the environment and not the database, and only then update production. Tools like InstaWP or your host’s staging feature make this quick.

New Service Opportunities

The AI Client lowers the cost of building custom AI features, which turns them into billable work. A few examples agencies are already pitching: automatic alt text for large media libraries, AI-written first drafts of product descriptions for WooCommerce catalogs, internal “summarize this support ticket” tools, and on-brand content briefs generated from a client’s style guide.

Because these features use the client’s existing connection, you do not need to build or host your own AI backend. Combine them with workflow automation tools for WordPress, and you can offer AI retainers without becoming an AI infrastructure company.

What Plugin Teams Should Know About the WordPress AI Client

Before WordPress 7.0, every plugin that offered AI features had to connect to each AI company on its own. WordPress now owns that connection, so a plugin’s job is to build a good feature on top of it and keep it safe. Here is what that means in practice.

Use WordPress’s Built-In AI Connection

Plugin teams no longer need separate code for OpenAI, Claude or Gemini. Every request starts with wp_ai_client_prompt(), which returns a WP_AI_Client_Prompt_Builder. You chain methods to describe the task, then call a generation method. The methods plugin teams use most:

  • Prompt content: with_text() adds the text to work on, and with_file() attaches an image or document.
  • Instructions and limits: using_system_instruction() sets the role and rules, while using_max_tokens() and using_temperature() control length and randomness.
  • Structured output: as_json_response( $schema ) asks the model to return JSON that matches your schema.
  • Model choice: using_model_preference() lists the models you prefer, in order.
  • Site actions: using_abilities() exposes registered abilities to the model as function calls.
  • Generation: generate_text() returns a string, while generate_text_result() and generate_image_result() return a full result object. Each returns a WP_Error on failure.

Because the plugin never names a provider or stores a key, the same code keeps working if the site owner switches from OpenAI to Google next month.

Check for a Connected AI Provider First

A well-built plugin checks for a connected provider before showing any AI button. Build the prompt you plan to send, then call the matching check on it, such as is_supported_for_text_generation() or is_supported_for_image_generation(). The check confirms that a connected provider has a model that can handle that request, not only that some provider exists.

If the check returns false, hide the button and show a short notice such as “Connect an AI provider to use this feature” that links to Settings > Connectors. Still wrap the generation call in an is_wp_error() check. A request can fail at runtime because of an expired key or a rate limit, and a prompt blocked by the wp_ai_client_prevent_prompt filter returns a WP_Error with the code prompt_prevented. Show that error as an admin notice instead of failing silently.

Make Features Work with Any AI Model

A plugin can say which AI model it prefers, but the final choice belongs to the site owner. If a plugin prefers OpenAI and the owner has only connected to Claude, WordPress will use Claude.

Plugin teams should test their AI features with more than one provider. A feature that only works well with one AI model will disappoint many users.

Keep AI Instructions Protected

Every AI request costs the site owner money, because they pay their AI provider for usage. If a plugin lets visitors send any request they like from their browser, someone could misuse an AI button as a free chatbot and run up the bill.

A plugin should keep its AI instructions inside WordPress, where users can’t change them. A “Generate Excerpt” button should only ever generate excerpts. In practice, that means:

  • Build prompts on the server: write the prompt and system instruction in PHP. The browser should send only IDs and options, such as a post ID, never the prompt text.
  • Give each feature its own endpoint: create a dedicated REST route per AI feature instead of a generic “send any prompt” endpoint, and verify the request nonce.
  • Check capabilities: use a permission_callback such as current_user_can( ‘edit_post’, $post_id ) so only the right users can trigger a paid request.
  • Treat user input as content: sanitize anything the user supplies and pass it with with_text(), never as part of the system instruction.
  • Add a final guard: the wp_ai_client_prevent_prompt filter receives the prompt builder and can block a prompt, for example for users without a given capability.

Switch From Early Test Versions

Some plugins used an early version of this AI system that they bundled themselves, before it became part of WordPress. Now that it’s built in, those plugins should switch to the built-in version.

Plugin teams need to plan this switch carefully, because many sites still run WordPress versions older than 7.0. Teams should keep their plugins working on those older versions until they announce a new minimum WordPress version in the changelog.

Rethink How AI Features Are Priced

Many AI plugins made money by selling AI credits. With the AI Client, site owners connect their own AI account and pay the AI company directly. This is often called “bring your own key.” Because users already have that connection, they will expect plugins to use it instead of selling them credits. We saw this coming when building ThinkRank, which lets users connect OpenAI, Claude, Gemini or OpenRouter with their own key.

ThinkRank AI provider settings with your own API key

Plugins will compete on the quality of their AI features, not on selling access to AI. The winners will be plugins that do one job very well, such as writing SEO metadata, answering documentation questions or generating page content with Essential Blocks.

Real-World Examples of the WordPress AI Client in Action

It helps to picture how the AI Client shows up in everyday work. The examples below are the kinds of WordPress AI features that become easier to build and cheaper to run once a single connection is shared across plugins. Some already exist in the official AI plugin, and others are natural fits for third-party plugins. Each one uses the same pattern: a plugin describes the task, the AI Client sends it to the owner’s chosen provider, and the result comes back in a standard format.

  • Content teams: generate title options, excerpts and meta descriptions from a draft, then let an editor pick and polish one.
  • Accessibility: write alt text for hundreds of images in the media library in one batch, with an editor reviewing before saving.
  • WooCommerce stores: turn a supplier spec sheet into a structured product description using JSON output, so price and SKU fields stay accurate.
  • Documentation and support: summarize long support threads or suggest related docs for a ticket.
  • Design: generate placeholder or featured images inside the editor while a designer works on the final asset.
  • Site management: combined with abilities and MCP, an assistant can read a performance report and suggest fixes, as covered in our post on xSpeed Cache’s AI-native performance tools.

Current Limitations You Should Plan Around

The WordPress AI Client is a strong foundation, but it is version one of a long-term project. Some pieces that site owners and agencies will expect are not in core yet, and a few areas are still being designed in the open. None of these are reasons to wait, but they should shape how you set things up today. Plan around these gaps, and check the Core AI team’s updates each release, since several are already on the roadmap.

  • No spending controls: core has no site-wide budget, usage dashboard or per-plugin quota. A request for monthly token and request limits is being tracked on GitHub.
  • Unencrypted database keys: keys saved via the Connectors screen are masked but stored in plain text.
  • No native streaming yet: responses arrive all at once. Streaming is being added to the PHP AI Client first.
  • Embeddings are not in WordPress yet: PHP AI Client 1.4.0 added embedding APIs, but the WordPress integration missed the 7.1 cutoff.
  • JavaScript and REST are outside core: client-side use still relies on the separate package or your own endpoints.

What’s Next for AI in WordPress After 7.1?

WordPress 7.1 “Mary Lou” was a smaller step for AI than many expected. Reviews of the release noted that most proposed AI Client additions were moved out of the cycle, and the Guidelines feature for defining brand voice once was declined for merge and continues as a Gutenberg experiment. What did ship was a stronger Abilities API and more flexible Connectors authentication.

The direction is clear, though. Streaming, embeddings for semantic and vector search, and the REST and JavaScript layers are all being actively worked on. Embeddings in particular could change site search, letting visitors find related content even when it shares no keywords with their query. With 88% of organizations already using AI in at least one business function, according to McKinsey’s State of AI in 2025 survey, the pressure to make WordPress AI integration easier will only grow. The safest bet for everyone is to build on the AI Client now, because that is where future improvements will land.

What's New in WordPress 7.1 Mary Lou

Connect One Provider, Test One Feature, Then Scale

The WordPress AI Client turns AI from a plugin-by-plugin add-on into shared infrastructure that you control. Site owners get one place to manage keys and costs. Agencies get a standard layer they can secure, document and bill for. Plugin teams get to stop maintaining vendor SDKs and focus on features people actually pay for. Start small: connect one provider on a staging site, set a spending limit, test one AI feature end to end, and expand from there.

Want more practical WordPress guides like this? Explore more posts on the WPDeveloper blog, and let us know in the comments how you plan to use AI on your WordPress sites. To share ideas and get help from other WordPress users, join our Facebook Community.

Frequently Asked Questions About the WordPress AI Client

Is the WordPress AI Client free?
Yes. The AI Client itself is part of WordPress core and costs nothing. You only pay your AI provider (such as OpenAI, Anthropic or Google) for the requests your plugins make with your API key.
Which WordPress version do I need?
The AI Client is built into WordPress 7.0 and later. Sites on older versions can only use AI Client features if a plugin bundles the standalone Composer packages.
Does WordPress 7.0 send my content to AI automatically?
No. Core ships no AI providers and makes no AI calls on its own. Requests only happen after you install a provider plugin, add a key in Settings > Connectors and use a plugin feature that calls the AI Client.
What is the difference between the AI Client and the PHP AI Client?
The PHP AI Client is the underlying provider-agnostic SDK that can run in any PHP project. The WordPress AI Client is the wrapper around it that adds WordPress conventions, WP_Error handling, hooks and the Connectors integration.
Can I use local or open-source models?
Yes, through community provider plugins. There are providers for OpenAI-compatible APIs, and work on an Ollama provider for local models is underway. Core is designed so anyone can build a provider.
How is the AI Client related to MCP?
They work in opposite directions. The AI Client lets your site call AI models. The Abilities API and MCP Adapter let outside AI assistants discover and run actions on your site. Many plugins will use both.
Can I limit which users can use AI features?
Yes. Developers can use the wp_ai_client_prevent_prompt filter to block prompts based on user capability or any other condition, and individual plugins can add their own role controls.
Picture of Maahi

Maahi

Maahi is a marketing graduate with a strong enthusiasm for exploring tech products. He enjoys discovering new tools and software that enhance productivity. You'll likely find him watching a thrilling movie, TV series or watching a cricket match, when he's not working.

Share This Story

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Join 6 Million+

Happy Customers

Subscribe For The Latest Updates

Subscription Form

No charge. Unsubscribe anytime.

  • 00Days
  • 00Hours
  • 00Mins
  • 00Secs

Unlock every WPDeveloper plugin, SaaS & the Agency Bundle, built for the AI era, at the year’s best prices.