
內容簡介
rtCamp’s AI Provider for OpenRouter 外掛將 OpenRouter 註冊為 WordPress AI Client 的 AI 提供者,讓使用者能透過統一的 API 和 API 金鑰,訪問數百種文本和圖像生成的 AI 模型,如 OpenAI GPT、Anthropic Claude 和 Google Gemini。
【主要功能】
• 註冊 OpenRouter 作為 WordPress AI Client 的提供者
• 配置文本和圖像生成的預設模型
• 實時顯示模型選擇的定價資訊
• 支援 OpenRouter 的聊天完成端點進行文本生成
• 使用 OpenRouter 的圖像生成模式進行圖像創建
• 自動填充模型選擇來自 OpenRouter 的模型目錄
外掛標籤
開發者團隊
② 後台搜尋「rtCamp’s AI Provider for OpenRouter」→ 直接安裝(推薦)
原文外掛簡介
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/completions for text and images, https://openrouter.ai/api/v1/audio/speech for speech synthesis, and https://openrouter.ai/api/v1/systemone or https://openrouter.ai/api/alpha/decisions for 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.
