Title: AI Provider for OpenRouter
Author: Jonathan Bossenger
Published: <strong>March 23, 2026</strong>
Last modified: March 23, 2026

---

Search plugins

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

![](https://ps.w.org/ai-provider-for-openrouter/assets/icon-256x256.png?rev=3489265)

# AI Provider for OpenRouter

 By [Jonathan Bossenger](https://profiles.wordpress.org/psykro/)

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

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

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

## Description

This plugin provides OpenRouter integration for the PHP AI Client SDK. It enables
WordPress sites to use hundreds of AI models from various providers through OpenRouter’s
unified, OpenAI-compatible API.

### External services

This plugin connects to the [Open Router API](https://openrouter.ai/docs/) to generate
text using a wide range of AI models.

Using this plugin requires an OpenRouter API key, which can be obtained by creating
an account on the [OpenRouter](https://openrouter.ai/) website. Create an account
and generate an API key at https://openrouter.ai/settings/keys.

You can find the OpenRouter terms of service here: https://openrouter.ai/terms, 
and their privacy policy here: https://openrouter.ai/privacy.

**Features:**

 * Text generation with any OpenRouter-supported model
 * Automatic model discovery from the OpenRouter API
 * Automatic provider registration

Available models are dynamically discovered from the OpenRouter /models endpoint,
including models from OpenAI, Anthropic, Google, Meta, Mistral, and many more.

**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
 * OpenRouter API key

## Installation

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

## FAQ

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

Visit [OpenRouter](https://openrouter.ai/) to create an account and generate an 
API key at https://openrouter.ai/settings/keys.

### 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 OpenRouter-specific implementation that the PHP AI Client uses.

## Reviews

![](https://secure.gravatar.com/avatar/96af4a89b18637ff0247b8c4a74ff77535afbaa93e14dbd4994485caa3fb6a53?
s=60&d=retro&r=g)

### 󠀁[Works 100s](https://wordpress.org/support/topic/works-100s/)󠁿

 [bradvin](https://profiles.wordpress.org/bradvin/) March 25, 2026 1 reply

Works exactly as I was hoping – nice work!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/ai-provider-for-openrouter/reviews/)

## Contributors & Developers

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

Contributors

 *   [ Jonathan Bossenger ](https://profiles.wordpress.org/psykro/)

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

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

### Interested in development?

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

## Changelog

#### 1.0.0

 * Initial release
 * Support for text generation models via OpenRouter
 * Automatic model discovery from the OpenRouter API

## Meta

 *  Version **1.0.0**
 *  Last updated: **8 months ago**
 *  Active installations: **400+**
 *  WordPress Version: ** 6.9 or higher **
 *  Tested up to: **7.0.8**
 *  PHP Version: ** 7.4 or higher **
 *  Language:
 * [Dutch](https://nl.wordpress.org/plugins/ai-provider-for-openrouter/), [English (US)](https://wordpress.org/plugins/ai-provider-for-openrouter/),
   [Nepali](https://ne.wordpress.org/plugins/ai-provider-for-openrouter/), [Persian](https://fa.wordpress.org/plugins/ai-provider-for-openrouter/),
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/ai-provider-for-openrouter/),
   and [Portuguese (Portugal)](https://pt.wordpress.org/plugins/ai-provider-for-openrouter/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ai-provider-for-openrouter)
 * Tags:
 * [AI](https://en-ca.wordpress.org/plugins/tags/ai/)[artificial intelligence](https://en-ca.wordpress.org/plugins/tags/artificial-intelligence/)
   [connector](https://en-ca.wordpress.org/plugins/tags/connector/)[openrouter](https://en-ca.wordpress.org/plugins/tags/openrouter/)
 *  [Advanced View](https://en-ca.wordpress.org/plugins/ai-provider-for-openrouter/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/ai-provider-for-openrouter/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-openrouter/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-openrouter/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-openrouter/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-openrouter/reviews/?filter=1)

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

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

## Contributors

 *   [ Jonathan Bossenger ](https://profiles.wordpress.org/psykro/)

## Support

Issues resolved in last two months:

     0 out of 1

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