{"id":286836,"date":"2026-03-23T17:11:31","date_gmt":"2026-03-23T17:11:31","guid":{"rendered":"https:\/\/en-za.wordpress.org\/plugins\/ai-provider-for-openrouter\/"},"modified":"2026-03-23T17:12:59","modified_gmt":"2026-03-23T17:12:59","slug":"ai-provider-for-openrouter","status":"publish","type":"plugin","link":"https:\/\/mai.wordpress.org\/plugins\/ai-provider-for-openrouter\/","author":7511363,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"7.0","requires":"6.9","requires_php":"7.4","requires_plugins":null,"header_name":"AI Provider for OpenRouter","header_author":"Jonathan Bossenger","header_description":"AI Provider for OpenRouter for the WordPress AI Client.","assets_banners_color":"0de5eb","last_updated":"2026-03-23 17:12:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/jonathanbossenger\/ai-provider-for-openrouter","header_author_uri":"https:\/\/jonathanbossenger.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":135,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"psykro","date":"2026-03-23 17:12:59"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3489265,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3489265,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3489265,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3489265,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2353,5739,25308,223725],"plugin_category":[],"plugin_contributors":[133017],"plugin_business_model":[],"class_list":["post-286836","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-artificial-intelligence","plugin_tags-connector","plugin_tags-openrouter","plugin_contributors-psykro","plugin_committers-psykro"],"banners":{"banner":"https:\/\/ps.w.org\/ai-provider-for-openrouter\/assets\/banner-772x250.png?rev=3489265","banner_2x":"https:\/\/ps.w.org\/ai-provider-for-openrouter\/assets\/banner-1544x500.png?rev=3489265","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ai-provider-for-openrouter\/assets\/icon-128x128.png?rev=3489265","icon_2x":"https:\/\/ps.w.org\/ai-provider-for-openrouter\/assets\/icon-256x256.png?rev=3489265","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin provides OpenRouter integration for the PHP AI Client SDK. It enables WordPress sites to use hundreds of AI models from various providers through OpenRouter's unified, OpenAI-compatible API.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to the <a href=\"https:\/\/openrouter.ai\/docs\/\">Open Router API<\/a> to generate text using a wide range of AI models.<\/p>\n\n<p>Using this plugin requires an OpenRouter API key, which can be obtained by creating an account on the <a href=\"https:\/\/openrouter.ai\/\">OpenRouter<\/a> website. Create an account and generate an API key at https:\/\/openrouter.ai\/settings\/keys.<\/p>\n\n<p>You can find the OpenRouter terms of service here: https:\/\/openrouter.ai\/terms, and their privacy policy here: https:\/\/openrouter.ai\/privacy.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li>Text generation with any OpenRouter-supported model<\/li>\n<li>Automatic model discovery from the OpenRouter API<\/li>\n<li>Automatic provider registration<\/li>\n<\/ul>\n\n<p>Available models are dynamically discovered from the OpenRouter \/models endpoint, including models from OpenAI, Anthropic, Google, Meta, Mistral, and many more.<\/p>\n\n<p><strong>Requirements:<\/strong><\/p>\n\n<ul>\n<li>PHP 7.4 or higher<\/li>\n<li>For WordPress 6.9, the <a href=\"https:\/\/github.com\/WordPress\/php-ai-client\">wordpress\/php-ai-client<\/a> package must be installed<\/li>\n<li>For WordPress 7.0 and above, no additional changes are required<\/li>\n<li>OpenRouter API key<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to <code>\/wp-content\/plugins\/ai-provider-for-openrouter\/<\/code><\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Configure your OpenRouter API key via the <code>OPENROUTER_API_KEY<\/code> environment variable or constant<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20get%20an%20openrouter%20api%20key%3F\"><h3>How do I get an OpenRouter API key?<\/h3><\/dt>\n<dd><p>Visit <a href=\"https:\/\/openrouter.ai\/\">OpenRouter<\/a> to create an account and generate an API key at https:\/\/openrouter.ai\/settings\/keys.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20work%20without%20the%20php%20ai%20client%3F\"><h3>Does this plugin work without the PHP AI Client?<\/h3><\/dt>\n<dd><p>No, this plugin requires the PHP AI Client plugin to be installed and activated. It provides the OpenRouter-specific implementation that the PHP AI Client uses.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Support for text generation models via OpenRouter<\/li>\n<li>Automatic model discovery from the OpenRouter API<\/li>\n<\/ul>","raw_excerpt":"AI Provider for OpenRouter for the PHP AI Client SDK.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/286836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/7511363"}],"replies":[{"embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=286836"}],"wp:attachment":[{"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=286836"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=286836"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=286836"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=286836"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=286836"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mai.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=286836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}