| 开发者 |
rtcamp
milindmore22 vishal4669 aishwarryapande aviralmittal89 |
|---|---|
| 更新时间 | 2026年11月23日 17:10 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
ai) plugin (or core AI Client features in WordPress 7.0+) to be installed and active.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.ai) is installed and activated./wp-content/plugins/rtcamps-ai-provider-for-openrouter/ or install via the WordPress Plugins menu.Visit OpenRouter to create an account and generate an API key at https://openrouter.ai/settings/keys.
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.
Once the WordPress AI Client is installed, set your API key in Settings > Connectors under the OpenRouter section.
Use Settings > OpenRouter Settings to choose default models for text, image, text-to-speech, and decision models, as well as preferred voices.
The cost depends on the models you choose. The settings page displays the cost per 1M tokens for text and decision models, per image for image models, and pricing for speech models.
The plugin defaults to openrouter/free for text, openrouter/auto for images (as there are no free image options available), and heygen/heygen-voice-1-turbo:free for speech synthesis, but you can change these in the settings.
Yes. The plugin integrates with OpenRouter's audio speech API and the WordPress AI Client text-to-speech conversion interface. You can select any OpenRouter model supporting the speech modality (such as HeyGen Voice Turbo, OpenAI TTS, etc.) and choose from the model's supported voices.
OpenRouter decision models evaluate typed questions about a piece of state and return calibrated probabilities and structured answers instead of freeform text. They support binary questions (noul), multiple choice, scores/ratings, and bounding box detections. You can configure a default decision model in Settings > OpenRouter Settings and access it programmatically via OpenRouterProvider::decisionModel().
/api/v1/audio/speech endpoint.heygen/heygen-voice-1-turbo:free./api/v1/systemone and /api/alpha/decisions endpoints, returning calibrated probabilities and structured answers (choice, noul/binary, score, and bounding box).OpenRouterProvider::decisionModel(), OpenRouterProvider::decisionModelIds(), and OpenRouterProvider::alphaUrl()./wp-json/rtcamps-ai-provider-for-openrouter/v1/tts-models and /wp-json/rtcamps-ai-provider-for-openrouter/v1/decision-models.rtcamps_ai_provider_for_openrouter_tts_params and rtcamps_ai_provider_for_openrouter_decision_params.