Title: AI Provider for OpenAI
Author: WordPress.org
Published: <strong>February 24, 2026</strong>
Last modified: May 13, 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.0.3.zip)

 * [Details](https://wordpress.org/plugins/ai-provider-for-openai/#description)
 * [Reviews](https://wordpress.org/plugins/ai-provider-for-openai/#reviews)
 *  [Installation](https://wordpress.org/plugins/ai-provider-for-openai/#installation)
 * [Development](https://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 17 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.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.0.3**
 *  Last updated **3 months ago**
 *  Active installations **30,000+**
 *  WordPress version ** 6.9 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [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/), [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/), and [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://wordpress.org/plugins/tags/ai/)[artificial intelligence](https://wordpress.org/plugins/tags/artificial-intelligence/)
   [connector](https://wordpress.org/plugins/tags/connector/)[gpt](https://wordpress.org/plugins/tags/gpt/)
   [openai](https://wordpress.org/plugins/tags/openai/)
 *  [Advanced View](https://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:

     1 out of 1

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