{"id":286045,"date":"2026-02-24T02:14:44","date_gmt":"2026-02-24T02:14:44","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-provider-for-google\/"},"modified":"2026-12-04T17:08:51","modified_gmt":"2026-12-04T17:08:51","slug":"ai-provider-for-google","status":"publish","type":"plugin","link":"https:\/\/bel.wordpress.org\/plugins\/ai-provider-for-google\/","author":5911429,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.1","stable_tag":"1.3.1","tested":"7.2","requires":"7.0","requires_php":"7.4","requires_plugins":null,"header_name":"AI Provider for Google","header_author":"WordPress AI Team","header_description":"AI Provider for Google for the WordPress AI Client.","last_updated":"2026-12-04 17:08:51","external_support_url":"","external_repository_url":"https:\/\/github.com\/wordpress\/ai-provider-for-google\/","donate_link":"","header_plugin_uri":"https:\/\/github.com\/WordPress\/ai-provider-for-google","header_author_uri":"https:\/\/make.wordpress.org\/ai\/","rating":0,"author_block_rating":0,"active_installs":50000,"downloads":361934,"num_ratings":0,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"githubsync","date":"2026-02-24 02:13:40","revision":3468160},"1.0.2":{"tag":"1.0.2","author":"githubsync","date":"2026-03-04 14:51:29","revision":3474660},"1.0.3":{"tag":"1.0.3","author":"githubsync","date":"2026-03-15 18:56:24","revision":3483253},"1.1.0":{"tag":"1.1.0","author":"githubsync","date":"2026-05-13 21:42:25","revision":3531406},"1.1.1":{"tag":"1.1.1","author":"githubsync","date":"2026-08-17 20:05:01","revision":3651666},"1.2.0":{"tag":"1.2.0","author":"githubsync","date":"2026-09-21 18:27:35","revision":3706130},"1.2.1":{"tag":"1.2.1","author":"githubsync","date":"2026-10-27 18:53:17","revision":3769266},"1.3.0":{"tag":"1.3.0","author":"githubsync","date":"2026-11-17 14:59:33","revision":3807648},"1.3.1":{"tag":"1.3.1","author":"githubsync","date":"2026-12-04 17:08:51","revision":3844922}},"upgrade_notice":{"1.3.1":"<p>This version bumps the WordPress minimum supported version from 6.9 to 7.0.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3474660,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3474660,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3474660,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3474660,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3474660,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3844936,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"landingPage\":\"\\\/wp-admin\\\/options-connectors.php\",\"preferredVersions\":{\"php\":\"8.1\",\"wp\":\"latest\"},\"features\":{\"networking\":true},\"steps\":[{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"ai\"},\"options\":{\"activate\":true}},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"ai-provider-for-google\"},\"options\":{\"activate\":true}},{\"step\":\"runPHP\",\"code\":\"<?php require '\\\/wordpress\\\/wp-load.php'; update_option( 'wpai_features_enabled', true ); update_option( 'wpai_feature_image-generation_enabled', true );\"}]}"}},"all_blocks":[],"tagged_versions":["1.0.1","1.0.2","1.0.3","1.1.0","1.1.1","1.2.0","1.2.1","1.3.0","1.3.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2353,5739,25308,224606,150],"plugin_category":[258697],"plugin_contributors":[77594],"plugin_business_model":[216440,216239],"class_list":["post-286045","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-artificial-intelligence","plugin_tags-connector","plugin_tags-gemini","plugin_tags-google","plugin_category-connectors","plugin_contributors-wordpressdotorg","plugin_business_model-canonical","plugin_business_model-community","plugin_committers-flixos90","plugin_committers-githubsync","plugin_committers-jeffpaul","plugin_committers-wordpressdotorg","plugin_support_reps-flixos90","plugin_support_reps-isotropic","plugin_support_reps-jason_the_adams","plugin_support_reps-swissspidy"],"banners":{"banner":"https:\/\/ps.w.org\/ai-provider-for-google\/assets\/banner-772x250.png?rev=3474660","banner_2x":"https:\/\/ps.w.org\/ai-provider-for-google\/assets\/banner-1544x500.png?rev=3474660","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/ai-provider-for-google\/assets\/icon.svg?rev=3474660","icon":"https:\/\/ps.w.org\/ai-provider-for-google\/assets\/icon.svg?rev=3474660","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin provides Google AI (Gemini) integration for the PHP AI Client SDK. It enables WordPress sites to use Google's Gemini models for text generation, image generation, text to speech, embedding generation, and other AI capabilities.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li>Text generation with Gemini models<\/li>\n<li>Image generation with Imagen models<\/li>\n<li>Embedding generation with any embedding-capable Google model, including multimodal embeddings from images, audio, video, and PDF documents<\/li>\n<li>Text to Speech conversion with Gemini models<\/li>\n<li>Function calling support<\/li>\n<li>Automatic provider registration<\/li>\n<\/ul>\n\n<p>Available models are dynamically discovered from the Google AI API, including Gemini models for text generation, Imagen models for image generation, and embedding models for embedding generation.<\/p>\n\n<p><strong>Requirements:<\/strong><\/p>\n\n<ul>\n<li>PHP 7.4 or higher<\/li>\n<li>WordPress 7.0 or higher<\/li>\n<li>Google Gemini 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-google\/<\/code><\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Configure your Google API key via the <code>GOOGLE_API_KEY<\/code> environment variable or constant<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20get%20a%20google%20api%20key%3F\"><h3>How do I get a Google API key?<\/h3><\/dt>\n<dd><p>Visit the <a href=\"https:\/\/aistudio.google.com\/\">Google AI Studio<\/a> to create an API key for the Gemini API.<\/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 Google-specific implementation that the PHP AI Client uses.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.1 - 2026-12-04<\/h4>\n\n<p><strong>Changed<\/strong><\/p>\n\n<ul>\n<li>Bump WordPress tested-up-to version 7.2 (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/59\">#59<\/a>).<\/li>\n<li>Bump WordPress minimum supported version to 7.0 (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/59\">#59<\/a>).<\/li>\n<\/ul>\n\n<p><strong>Fixed<\/strong><\/p>\n\n<ul>\n<li>Handle Gemini candidates without generated content and map newer finish reasons without failing (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/57\">#57<\/a>).<\/li>\n<\/ul>\n\n<h4>1.3.0 - 2026-11-17<\/h4>\n\n<p><strong>Added<\/strong><\/p>\n\n<ul>\n<li>Added support for embedding generation (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/30\">#30<\/a>).<\/li>\n<\/ul>\n\n<h4>1.2.1 - 2026-10-27<\/h4>\n\n<p><strong>Changed<\/strong><\/p>\n\n<ul>\n<li>Hardened response file handling by validating and explicitly encoding all model-supplied file data (URLs, MIME types, base64 payloads, including TTS audio) before <code>File<\/code> construction, with clearer indexed <code>ResponseException<\/code> errors and expanded test coverage (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/55\">#55<\/a>).<\/li>\n<\/ul>\n\n<p><strong>Fixed<\/strong><\/p>\n\n<ul>\n<li>Google tool-calling compatibility by switching function declarations to <code>parametersJsonSchema<\/code>, normalizing schema maps\/empty schemas to JSON objects, filtering unsupported declaration fields (e.g., <code>annotations<\/code>), and preserving Gemini function call IDs across continuation requests (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/51\">#51<\/a>).<\/li>\n<\/ul>\n\n<p><strong>Developer<\/strong><\/p>\n\n<ul>\n<li>Excluded <code>tests\/<\/code> and <code>phpunit.xml.dist<\/code> from Composer package archives by adding <code>export-ignore<\/code> rules to <code>.gitattributes<\/code>, so these development\/testing files are no longer shipped in consumers\u2019 <code>vendor\/<\/code> directories (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/48\">#48<\/a>).<\/li>\n<li>Added unit tests for <code>GoogleTextToSpeechConversionModel<\/code>, covering request preparation, prompt parsing, audio\/WAV response handling, and authentication behavior (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/49\">#49<\/a>).<\/li>\n<li>Added security issue reporting guidance to <code>SECURITY.md<\/code>, including responsible disclosure instructions and a link to the official WordPress HackerOne program for submitting security concerns (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/52\">#52<\/a>).<\/li>\n<li>Added a <code>.github\/CODEOWNERS<\/code> global fallback entry assigning ownership of all files to <code>@WordPress\/ai-provider-for-google-maintainers<\/code> when no more specific rule matches (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/53\">#53<\/a>).<\/li>\n<li>Added maintainer and contribution documentation by introducing <code>CONTRIBUTING.md<\/code> and updating <code>README.md<\/code> with current maintainer contacts (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/54\">#54<\/a>).<\/li>\n<\/ul>\n\n<h4>1.2.0 - 2026-09-21<\/h4>\n\n<p><strong>Added<\/strong><\/p>\n\n<ul>\n<li>Support for text to speech conversion (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/31\">#31<\/a>).<\/li>\n<li>WordPress Playground preview blueprint that installs and activates the AI plugin and Google provider, enables AI and image generation\/editing settings, logs in automatically, opens the Connectors screen, and configures Playground networking for provider requests after credentials are set (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/43\">#43<\/a>).<\/li>\n<\/ul>\n\n<p><strong>Changed<\/strong><\/p>\n\n<ul>\n<li>Updated the supported development baseline to PHP AI Client 1.3.1 and added automated compatibility testing across PHP 7.4\u20138.4 with the lowest and latest supported dependencies (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/40\">#40<\/a>).<\/li>\n<\/ul>\n\n<p><strong>Fixed<\/strong><\/p>\n\n<ul>\n<li>Google thought signature round-tripping and thought token usage compatibility for tool-calling requests (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/26\">#26<\/a>).<\/li>\n<li>Gemini tool-calling by preserving <code>thoughtSignature<\/code> values across turns so function calls remain valid in multi-step conversations (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/36\">#36<\/a>).<\/li>\n<li>Gemini usage parsing to use Google\u2019s authoritative <code>totalTokenCount<\/code> when available, ensuring prompt tokens are included in reported totals while keeping a backward-compatible fallback for older responses (<a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/pull\/44\">#44<\/a>).<\/li>\n<\/ul>\n\n<p>Older changelog entries can be found in the <a href=\"https:\/\/github.com\/WordPress\/ai-provider-for-google\/blob\/trunk\/CHANGELOG.md\">CHANGELOG.md<\/a> file.<\/p>","raw_excerpt":"Google AI (Gemini) provider for the PHP AI Client SDK.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/286045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/5911429"}],"replies":[{"embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=286045"}],"wp:attachment":[{"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=286045"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=286045"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=286045"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=286045"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=286045"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bel.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=286045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}