BotBeat
...
← Back

> ▌

AutomatticAutomattic
PRODUCT LAUNCHAutomattic2026-03-25

WordPress 7.0 Introduces Built-In AI Client: Provider-Agnostic API for Plugin Developers

Key Takeaways

  • ▸WordPress 7.0 includes a built-in, provider-agnostic AI Client API that abstracts AI model selection and routing
  • ▸Plugin developers use a fluent builder pattern via wp_ai_client_prompt() to request text generation, image generation, and structured JSON responses
  • ▸The API supports advanced features including temperature control, JSON schema validation, and multi-variant generation (e.g., generating 4 image variations from one prompt)
Source:
Hacker Newshttps://make.wordpress.org/core/2026/03/24/introducing-the-ai-client-in-wordpress-7-0/↗

Summary

WordPress 7.0 has introduced a native AI Client — a provider-agnostic PHP API that enables plugin developers to integrate AI capabilities without being locked into a specific provider. The AI Client provides a unified interface through which plugins can send prompts to AI models and receive results, with WordPress handling the routing to appropriate models based on site owner configuration.

The implementation centers on a fluent builder pattern accessed through the wp_ai_client_prompt() function, allowing developers to chain configuration methods for customization. The API supports both text and image generation, with features including temperature adjustment, JSON schema-based structured responses, and the ability to generate multiple variations of outputs.

The AI Client represents a significant step toward democratizing AI integration in WordPress, abstracting away provider complexity and enabling site owners to choose their preferred AI provider while maintaining consistent plugin functionality across different configurations.

  • Site owners configure their preferred AI provider once, and all plugins automatically route requests to that provider through the standardized interface

Editorial Opinion

WordPress's native AI Client is a pragmatic and thoughtful approach to AI integration that prioritizes developer experience and site owner flexibility. By providing a provider-agnostic abstraction layer, WordPress positions itself as a neutral platform that empowers rather than constrains its ecosystem. This decision will likely accelerate AI adoption across WordPress plugins while reducing vendor lock-in concerns.

Large Language Models (LLMs)Generative AIMLOps & InfrastructureProduct Launch

More from Automattic

AutomatticAutomattic
INDUSTRY REPORT

WordPress.com Reports Spike in AI-Generated DMCA Takedowns, 86% Rejection Rate

2026-03-20
AutomatticAutomattic
PRODUCT LAUNCH

WordPress Launches MCP Adapter to Connect AI Agents with Core Abilities API

2026-03-03
AutomatticAutomattic
PRODUCT LAUNCH

Automattic Ships Wave of AI Infrastructure and Product Updates for WordPress

2026-02-26

Comments

Suggested

Google / AlphabetGoogle / Alphabet
RESEARCH

Deep Dive: Optimizing Sharded Matrix Multiplication on TPU with Pallas

2026-04-05
GitHubGitHub
PRODUCT LAUNCH

GitHub Launches Squad: Open Source Multi-Agent AI Framework to Simplify Complex Workflows

2026-04-05
SourceHutSourceHut
INDUSTRY REPORT

SourceHut's Git Service Disrupted by LLM Crawler Botnets

2026-04-05
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us