Title: AI Provider for OpenAI
Author: WordPress.org
Published: <strong>Februari 24, 2026</strong>
Last modified: Séptembor 21, 2026

---

Search plugins

![](https://ps.w.org/ai-provider-for-openai/assets/banner-772x250.png?rev=3474662)

![](https://ps.w.org/ai-provider-for-openai/assets/icon.svg?rev=3474662)

# AI Provider for OpenAI

 By [WordPress.org](https://profiles.wordpress.org/wordpressdotorg/)

[Download](https://downloads.wordpress.org/plugin/ai-provider-for-openai.1.2.0.zip)

 * [Details](https://rhg.wordpress.org/plugins/ai-provider-for-openai/#description)
 * [Reviews](https://rhg.wordpress.org/plugins/ai-provider-for-openai/#reviews)
 *  [Installation](https://rhg.wordpress.org/plugins/ai-provider-for-openai/#installation)
 * [Development](https://rhg.wordpress.org/plugins/ai-provider-for-openai/#developers)

 [Support](https://wordpress.org/support/plugin/ai-provider-for-openai/)

## Description

This plugin provides OpenAI integration for the PHP AI Client SDK. It enables WordPress
sites to use OpenAI’s GPT models for text generation, DALL-E for image generation,
and other AI capabilities.

**Features:**

 * Text generation with GPT models
 * Image generation with DALL-E models
 * Function calling support
 * Web search support
 * Automatic provider registration

Available models are dynamically discovered from the OpenAI API, including GPT models
for text generation, DALL-E and GPT Image models for image generation, and TTS models
for text-to-speech.

**Requirements:**

 * PHP 7.4 or higher
 * For WordPress 6.9, the [wordpress/php-ai-client](https://github.com/WordPress/php-ai-client)
   package must be installed
 * For WordPress 7.0 and above, no additional changes are required
 * OpenAI API key

## Installation

 1. Upload the plugin files to `/wp-content/plugins/ai-provider-for-openai/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure your OpenAI API key via the `OPENAI_API_KEY` environment variable or 
    constant

## FAQ

### How do I get an OpenAI API key?

Visit the [OpenAI Platform](https://platform.openai.com/) to create an account and
generate an API key.

### Does this plugin work without the PHP AI Client?

No, this plugin requires the PHP AI Client plugin to be installed and activated.
It provides the OpenAI-specific implementation that the PHP AI Client uses.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“AI Provider for OpenAI” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

“AI Provider for OpenAI” has been translated into 19 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/ai-provider-for-openai/contributors)
for their contributions.

[Translate “AI Provider for OpenAI” into your language.](https://translate.wordpress.org/projects/wp-plugins/ai-provider-for-openai)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ai-provider-for-openai/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ai-provider-for-openai/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ai-provider-for-openai/)
by [RSS](https://plugins.trac.wordpress.org/log/ai-provider-for-openai/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.0 – 2026-09-21

**Added**

 * Support for text to speech conversion ([#42](https://github.com/WordPress/ai-provider-for-openai/pull/42)).
 * PHPUnit CI matrix for `wordpress/php-ai-client` versions 1.3.1 and 1.4.0 ([#39](https://github.com/WordPress/ai-provider-for-openai/pull/39)).
 * WordPress Playground preview blueprint ([#46](https://github.com/WordPress/ai-provider-for-openai/pull/46)).

**Changed**

 * Preserve reasoning items and reasoning token usage across multi-turn Responses
   API calls ([#26](https://github.com/WordPress/ai-provider-for-openai/pull/26)).

#### 1.1.0 – 2026-08-17

**Added**

 * Support for OpenAI embedding models, including batch inputs, custom dimensions,
   token usage, and result metadata ([#34](https://github.com/WordPress/ai-provider-for-openai/pull/34)).
 * Support for fine-tuned OpenAI models by deriving capabilities from their underlying
   base models ([#17](https://github.com/WordPress/ai-provider-for-openai/pull/17)).
 * Support for editing and refining generated images using reference images and 
   OpenAI’s image-editing endpoint ([#29](https://github.com/WordPress/ai-provider-for-openai/pull/29)).
 * A `TokenLimitReachedException` when OpenAI responses are incomplete because the
   maximum output-token limit was reached ([#10](https://github.com/WordPress/ai-provider-for-openai/pull/10)).

**Changed**

 * Made sampling-option capabilities model-aware for reasoning models, added Responses
   API support for log probabilities, and reject incompatible sampling and reasoning
   configurations before sending a request ([#40](https://github.com/WordPress/ai-provider-for-openai/pull/40)).
 * Bumped WordPress tested-up-to version 7.1 ([#43](https://github.com/WordPress/ai-provider-for-openai/pull/43)).

**Fixed**

 * Function-call name handling for names that do not meet OpenAI’s naming requirements,
   while preserving the original PHP AI Client function names returned to callers(
   [#31](https://github.com/WordPress/ai-provider-for-openai/pull/31)).

#### 1.0.3

 * Add a provider logo to the metadata if the client version > 1.3.0 ([#19](https://github.com/WordPress/ai-provider-for-openai/pull/19)).
 * Fix mapping of models that support multimodal inputs ([#22](https://github.com/WordPress/ai-provider-for-openai/pull/22)).

#### 1.0.2

 * Add plugin directory assets by @shaunandrews in https://github.com/WordPress/
   ai-provider-for-openai/pull/7
 * Update tags in readme.txt by @jeffpaul in https://github.com/WordPress/ai-provider-
   for-openai/pull/9
 * Fix missing input and output modality combinations. by @felixarntz in https://
   github.com/WordPress/ai-provider-for-openai/pull/11
 * Add provider description by @felixarntz in https://github.com/WordPress/ai-provider-
   for-openai/pull/12

#### 1.0.1

 * Initial release of the plugin
 * Support for GPT text generation models
 * Support for DALL-E image generation models
 * Function calling support
 * Web search support

#### 1.0.0

 * Initial release of the Composer package

## Community plugin

This plugin is developed and supported by a community. [Contribute to this plugin](https://github.com/wordpress/ai-provider-for-openai/)

## Meta

 *  Version **1.2.0**
 *  Last updated **3 háfta óll ago**
 *  Active installations **50,000+**
 *  WordPress version ** 6.9 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Belarusian](https://bel.wordpress.org/plugins/ai-provider-for-openai/), [Chinese (Taiwan)](https://tw.wordpress.org/plugins/ai-provider-for-openai/),
   [Czech](https://cs.wordpress.org/plugins/ai-provider-for-openai/), [Danish](https://da.wordpress.org/plugins/ai-provider-for-openai/),
   [Dutch](https://nl.wordpress.org/plugins/ai-provider-for-openai/), [English (UK)](https://en-gb.wordpress.org/plugins/ai-provider-for-openai/),
   [English (US)](https://wordpress.org/plugins/ai-provider-for-openai/), [German](https://de.wordpress.org/plugins/ai-provider-for-openai/),
   [Hungarian](https://hu.wordpress.org/plugins/ai-provider-for-openai/), [Japanese](https://ja.wordpress.org/plugins/ai-provider-for-openai/),
   [Korean](https://ko.wordpress.org/plugins/ai-provider-for-openai/), [Nepali](https://ne.wordpress.org/plugins/ai-provider-for-openai/),
   [Persian](https://fa.wordpress.org/plugins/ai-provider-for-openai/), [Polish](https://pl.wordpress.org/plugins/ai-provider-for-openai/),
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/ai-provider-for-openai/),
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/ai-provider-for-openai/),
   [Russian](https://ru.wordpress.org/plugins/ai-provider-for-openai/), [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/ai-provider-for-openai/),
   [Turkish](https://tr.wordpress.org/plugins/ai-provider-for-openai/), arde [Ukrainian](https://uk.wordpress.org/plugins/ai-provider-for-openai/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ai-provider-for-openai)
 * Tags
 * [AI](https://rhg.wordpress.org/plugins/tags/ai/)[artificial intelligence](https://rhg.wordpress.org/plugins/tags/artificial-intelligence/)
   [connector](https://rhg.wordpress.org/plugins/tags/connector/)[gpt](https://rhg.wordpress.org/plugins/tags/gpt/)
   [openai](https://rhg.wordpress.org/plugins/tags/openai/)
 *  [Advanced View](https://rhg.wordpress.org/plugins/ai-provider-for-openai/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ai-provider-for-openai/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ai-provider-for-openai/reviews/)

## Contributors

 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

## Support

Issues resolved in last two months:

     0 out of 2

 [View support forum](https://wordpress.org/support/plugin/ai-provider-for-openai/)