Pollinations AI provider

Maintained by Kristen Leigh Goliath
Free AI provider plugin for Moodle's AI subsystem using Pollinations API (Pollinations Account Required). Supports text generation, text summarisation, and image generation with BYOP device flow authentication, per-user rate limiting, and balance monitoring.
Price option: Free

Supports Moodle 4.4-5.2 See all versions
Latest release: 2 weeks ago
Installations: 0
Downloads (last 90 days): 38

Frankenstyle name: aiprovider_pollinations
AI providers

Description

The Pollinations AI provider integrates the Pollinations.ai API with Moodle's built-in AI subsystem (Moodle 4.5+). It provides three AI capabilities:

  • Text generation — powered by models like GPT, DeepSeek, Qwen, Mistral, and more
  • Text summarisation — automatically summarise course content and activities
  • Image generation — create images from text prompts directly in the TinyMCE editor

Key features:

  • BYOP (Bring Your Own Pollen) device flow — admins connect their Pollinations account with a simple device code, no redirect URLs or manual API key entry
  • Automatic model discovery — available text and image models are fetched daily from the Pollinations API
  • Per-user rate limiting — prevent abuse with configurable global and per-user limits
  • Balance monitoring — scheduled task checks your Pollen balance and alerts admins when low
  • Retry with exponential backoff — resilient handling of 429 and 5xx errors
  • Content safety filtering — optional filtering for NSFW content, personal information, and secrets

Requirements:

  • Moodle 4.5 or later (PHP 8.1+)
  • A Pollinations.ai account (sign up at enter.pollinations.ai) with pollen (free or paid credits)

Contributors

Awards

Privacy friendly
Automated testing support