
rtCamp’s AI Provider for OpenRouter
v1.2.0rtCamp · 2026年9月30日 上架
OpenRouter connector for the WordPress AI Client.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 551
- 最近更新
- 2026年11月23日
需要 WordPress 7.0+已测试到 7.1.5PHP 7.4+
截图
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, image, and speech generation as well as decision making (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 (
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 is required to connect to models.
Features:
- OpenRouter provider registration for the WordPress AI Client.
- Configure different default models for text, image, text-to-speech (TTS), and decision models.
- Model selection displays live pricing (cost per 1M tokens, per image generation, or per request).
- Text generation using OpenRouter’s chat completions endpoint, supporting all chat modalities.
- Image generation using OpenRouter’s chat completions image modality.
- Text-to-speech (TTS) conversion using OpenRouter’s audio speech endpoint.
- Dynamic voice selection populated based on the selected TTS model’s supported voices.
- OpenRouter decision model support returning structured answers and calibrated probabilities for binary (noul), choice, scoring, and bounding box questions.
- 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.rtcamps_ai_provider_for_openrouter_tts_params: Filter the request parameters before dispatching text-to-speech requests to OpenRouter.rtcamps_ai_provider_for_openrouter_decision_params: Filter the request parameters before dispatching decision model 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, image, speech, and decision models along with their pricing and voice 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/rtcamps-ai-provider-for-openrouter/v1/models,/wp-json/rtcamps-ai-provider-for-openrouter/v1/image-models,/wp-json/rtcamps-ai-provider-for-openrouter/v1/tts-models, and/wp-json/rtcamps-ai-provider-for-openrouter/v1/decision-models). No personal data, site data, or API keys are transmitted during this request. Retrieved models are cached locally in WordPress transients.
- Content, Image, Speech Generation & Decision Making:
- What it is used for: Generating text completions, images, synthesizing speech, and evaluating structured decision questions requested through the WordPress AI Client and plugin APIs.
- What data is sent and when: Prompts, context text/inputs, questions, 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/completionsfor text and images,https://openrouter.ai/api/v1/audio/speechfor speech synthesis, andhttps://openrouter.ai/api/v1/systemoneorhttps://openrouter.ai/api/alpha/decisionsfor decision requests) only when a user or feature explicitly initiates an AI action.
This service is provided by OpenRouter, Inc.
- OpenRouter Terms of Service: https://openrouter.ai/terms
- OpenRouter Privacy Policy: https://openrouter.ai/privacy
Source Code
The source code is available on GitHub.



