Title: rtCamp’s AI Provider for OpenRouter
Author: rtCamp
Published: <strong>September 30, 2026</strong>
Last modified: September 30, 2026

---

Search plugins

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

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

# rtCamp’s AI Provider for OpenRouter

 By [rtCamp](https://profiles.wordpress.org/rtcamp/)

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

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

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

## Description

rtCamp’s AI Provider for OpenRouter registers OpenRouter as an AI provider for the
WordPress AI Client. It enables WordPress to access hundreds of AI models for text
and image generation (including OpenAI GPT, Anthropic Claude, Google Gemini, and
open-source models) through a single unified API and API key.

**Requirements:**

 * **WordPress AI Client**: This plugin requires the [WordPress AI Client](https://wordpress.org/plugins/ai/)(`
   ai`) plugin (or core AI Client features in WordPress 7.0+) to be installed and
   active.
 * **OpenRouter Account & API Key**: An API key from [OpenRouter](https://openrouter.ai/)
   is required to connect to models.

**Features:**

 * OpenRouter provider registration for the WordPress AI Client.
 * Configure different default models for text and image generation.
 * Model selection displays live pricing (cost per 1M tokens or per image generation).
 * Text generation using OpenRouter’s chat completions endpoint, supporting all 
   chat modalities.
 * Image generation using OpenRouter’s chat completions image modality.
 * Autocomplete model selection dynamically populated from OpenRouter’s model catalog.

**Developer Filters:**

 * `rtcamps_ai_provider_for_openrouter_text_generation_params`: Filter the request
   parameters before dispatching text generation requests to OpenRouter.
 * `rtcamps_ai_provider_for_openrouter_image_generation_params`: Filter the request
   parameters before dispatching image generation requests to OpenRouter.

### External services

This plugin connects to third-party services provided by OpenRouter, Inc. to retrieve
available AI model listings and process AI generation requests.

 * **Model Catalog Discovery:**
    - **What it is used for:** Fetching available text and image models and their
      pricing metadata for the settings screen.
    - **What data is sent and when:** An HTTP GET request is sent to OpenRouter (`
      https://openrouter.ai/api/v1/models`) when an administrator visits the OpenRouter
      Settings page or queries the plugin’s REST API endpoints (`/wp-json/ai-openrouter/
      v1/models` and `/wp-json/ai-openrouter/v1/image-models`). No personal data,
      site data, or API keys are transmitted during this request. Retrieved models
      are cached locally in WordPress transients.
 * **Content & Image Generation:**
    - **What it is used for:** Generating text completions and images requested 
      through the WordPress AI Client.
    - **What data is sent and when:** Prompts, context text/inputs, and the configured
      OpenRouter API key (sent in the HTTP Authorization header) are sent via HTTPS
      POST to OpenRouter (`https://openrouter.ai/api/v1/chat/completions`) only 
      when a user explicitly initiates an AI generation action.

This service is provided by OpenRouter, Inc.

 * OpenRouter Terms of Service: [https://openrouter.ai/terms](https://openrouter.ai/terms)
 * OpenRouter Privacy Policy: [https://openrouter.ai/privacy](https://openrouter.ai/privacy)

### Source Code

The source code is available on [GitHub](https://github.com/rtCamp/rtcamps-ai-provider-for-openrouter).

## Screenshots

[⌊Connector settings page showing OpenRouter API key configuration.⌉⌊Connector settings
page showing OpenRouter API key configuration.⌉[

Connector settings page showing OpenRouter API key configuration.

[⌊OpenRouter settings page showing model selection and cost information.⌉⌊OpenRouter
settings page showing model selection and cost information.⌉[

OpenRouter settings page showing model selection and cost information.

[⌊Example of generating post excerpt using OpenRouter in the WordPress editor.⌉⌊
Example of generating post excerpt using OpenRouter in the WordPress editor.⌉[

Example of generating post excerpt using OpenRouter in the WordPress editor.

[⌊Example of generating an image using OpenRouter in the WordPress editor.⌉⌊Example
of generating an image using OpenRouter in the WordPress editor.⌉[

Example of generating an image using OpenRouter in the WordPress editor.

## Installation

 1. Ensure the **WordPress AI Client** plugin (`ai`) is installed and activated.
 2. Upload plugin files to `/wp-content/plugins/rtcamps-ai-provider-for-openrouter/`
    or install via the WordPress Plugins menu.
 3. Activate **rtCamp’s AI Provider for OpenRouter** through the Plugins menu in WordPress.
 4. Add your OpenRouter API key in **Settings > Connectors**.
 5. Configure default text and image models in **Settings > OpenRouter Settings**.

## 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 WordPress AI Client?

No, this plugin requires the WordPress AI Client plugin (`ai` or `wordpress/php-
ai-client`) to be installed and activated. It registers OpenRouter as an available
provider for the WordPress AI Client.

### Where do I set the OpenRouter API key?

Once the WordPress AI Client is installed, set your API key in **Settings > Connectors**
under the OpenRouter section.

### Where do I choose the text and image models?

Use **Settings > OpenRouter Settings** to choose default models for text and image
generation.

### How much does it cost to generate text and images?

The cost depends on the models you choose. The settings page displays the cost per
1M tokens for text models and per image for image models.

### Which OpenRouter models are selected by default?

The plugin defaults to `openrouter/free` for text and `openrouter/auto` for images
as there are no free image options available, but you can change this in the settings.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

 *   [ rtCamp ](https://profiles.wordpress.org/rtcamp/)
 *   [ Milind More ](https://profiles.wordpress.org/milindmore22/)
 *   [ Vishal Kotak ](https://profiles.wordpress.org/vishal4669/)
 *   [ Aishwarrya Pande ](https://profiles.wordpress.org/aishwarryapande/)
 *   [ Aviral Mittal ](https://profiles.wordpress.org/aviralmittal89/)

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

### Interested in development?

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

## Changelog

#### 1.1.1

 * Renamed the plugin to “rtCamp’s AI Provider for OpenRouter” for better clarity
   and branding.
 * Updated the plugin description to reflect the new name and provide a clearer 
   overview of its functionality.
 * Updated slug, constants, and text domain to match the new plugin name for consistency
   across the codebase.

#### 1.1.0

 * Updated overall settings page UI for better user experience and added tooltips
   for each setting to provide more context and guidance to users.
 * Added badges to indicate the different cost of each type of request such as input,
   output, image read, web search, cache read, and cache write to help users make
   informed decisions when selecting models and generating content.
 * Refactored code to convert plugins js files to TypeScript for better maintainability
   and type safety.
 * Updated dependencies to ensure compatibility with the latest WordPress and AI
   plugin versions.

#### 1.0.0

 * Initial release of the OpenRouter provider plugin.
 * Added text and image model settings.
 * Added OpenRouter image generation support via chat completions image modality.

## Meta

 *  Version **1.1.1**
 *  Last updated **4 weeks ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 7.0 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [AI](https://wordpress.org/plugins/tags/ai/)[connector](https://wordpress.org/plugins/tags/connector/)
   [image-generation](https://wordpress.org/plugins/tags/image-generation/)[LLM](https://wordpress.org/plugins/tags/llm/)
   [openrouter](https://wordpress.org/plugins/tags/openrouter/)
 *  [Advanced View](https://wordpress.org/plugins/rtcamps-ai-provider-for-openrouter/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

 *   [ rtCamp ](https://profiles.wordpress.org/rtcamp/)
 *   [ Milind More ](https://profiles.wordpress.org/milindmore22/)
 *   [ Vishal Kotak ](https://profiles.wordpress.org/vishal4669/)
 *   [ Aishwarrya Pande ](https://profiles.wordpress.org/aishwarryapande/)
 *   [ Aviral Mittal ](https://profiles.wordpress.org/aviralmittal89/)

## Support

Got something to say? Need help?

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