Moodle Plugins directory: Gemini API provider | Moodle.org
Gemini API provider
A Moodle AI provider that integrates Google’s Gemini and Imagen models to deliver high‑quality text generation, text summarisation, and image creation directly within Moodle’s core AI framework, featuring per‑action configuration for default models and endpoints (e.g., gemini-2.5-flash for text and imagen-3.0-generate-002 for images), optional system instructions for consistent behavior, and built‑in site‑wide and per‑user rate limiting to control usage and costs; designed with privacy in mind, it avoids storing personal data and uses hashed identifiers derived from the site and user to prevent sending PII, while requests include only necessary fields such as prompt text, selected model, and relevant parameters; administrators can centrally manage API keys (Google AI Studio), limits, and defaults, teachers can leverage AI in supported contexts for drafting content, summarising readings, and generating illustrative media, and students benefit from structured, AI‑assisted learning experiences where permitted; requires Moodle 4.1+ and PHP 8.0+, fetches available models from Google when an API key is present, and aligns with Moodle’s plugin documentation guidance, offering a straightforward setup, clear governance controls, and a robust, privacy‑aware path to modern generative AI in education.
Comments