[WordPress] 外掛分享: rtCamp’s AI Provider for OpenRouter

首頁 › 外掛目錄 › rtCamp’s AI Provider for OpenRouter
WordPress 外掛 rtCamp’s AI Provider for OpenRouter 的封面圖片
全新外掛
安裝啟用
—
尚無評分
15 天前
最後更新
—
問題解決
WordPress 7.0+ PHP 7.4+ v1.1.1 上架:2026-09-29

內容簡介

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 的模型目錄

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 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 (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 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
OpenRouter Privacy Policy: https://openrouter.ai/privacy

Source Code
The source code is available on GitHub.

延伸相關外掛

文章
Filter
Mastodon