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:
ai) plugin (or core AI Client features in WordPress 7.0+) to be installed and active.Features:
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.This plugin connects to third-party services provided by OpenRouter, Inc. to retrieve available AI model listings and process AI generation requests.
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.https://openrouter.ai/api/v1/chat/completions) only when a user explicitly initiates an AI generation action.This service is provided by OpenRouter, Inc.
The source code is available on GitHub.