Gemini API provider

Maintained by Andrea Bertelli
A Moodle AI provider plugin that integrates Google's Gemini AI models into Moodle's AI subsystem. Supports text generation, image generation, and text summarization with configurable rate limiting and privacy-first design.
Price option: Free

Supports Moodle 4.5-5.1 See all versions
Latest release: 4 months ago
Installations: 590
Downloads (last 90 days): 393

Frankenstyle name: aiprovider_gemini
AI providers

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi, thank you for this useful plugin. Just wanted to check please, following Google's upcoming updates to Imagen 4 models, which will be discontinued on 17 August 2026; are there plans for the plugin to be updated accordingly before this date, please? Thank you.
Hi! Have you considered adding 'model' => $responsebody->modelVersion to the array that is returned by handle_api_success? It seems to allow both extracting the name of the model used by calling get_response_data()['model'] and adding model name to ai_action_register table (which seems to be done by manager class)
Thanks Luca for reporting the typo, i've fixed in new version!
Gemini AI Provider v2.1 is out! Introducing support for the latest Gemini 3 Flash, Gemini 3.1 Pro, and Gemini 3.1 Flash-Lite models for even faster and smarter AI responses in Moodle.
Hi! I noticed a small detail in the code. In `ai/provider/gemini/classes/provider.php` (line 83) the provider name is set to `aiprovider_openai`, but since this plugin implements the Gemini provider it might be more correct to use `aiprovider_gemini`. Just pointing it out in case it helps.
I have just released version 2.0 of the plugin. You will find that you can download the version for Moodle 4.5 and the one for Moodle 5.0+. In this version, ‘Imagen 3.0’ has been removed because it is no longer supported.
Thanks for your work! Would love to move to Gemini here as well.
Thank you for developing the plugin. I hope you get it ready for Moodle 5 and 5.1. Please keep us posted.
Hi Alfredo, we've just started working on a version that'll be compatible with 5.0, and it should be ready by the end of the year. The new version has brought about some big changes, so there's a lot of work to be done.
I would like to know if this Gemini API Provider plugin will be available soon for Moodle version 5.0? I installed this version and it's not working yet.
Approval issue created: CONTRIB-10050