Pedagogical AI Image (gpt-image-2) icon

Pedagogical AI Image (gpt-image-2)

Maintained by Miguël Dhyne
This plugin adds a button to the Moodle TinyMCE toolbar. It allows users to generate educational images directly inside Moodle using OpenAI's `gpt-image-2` image generation model.
Price option: Free

Supports Moodle 4.3-5.2 See all versions
Latest release: 6 days ago
Installations: 5
Downloads (last 90 days): 127

Frankenstyle name: tiny_imageia
TinyMCE

Description

This plugin adds an AI Image button to the Moodle TinyMCE toolbar, letting teachers generate original educational visuals — diagrams, infographics, timelines, illustrations — without ever leaving the editor. No external tool, no file juggling: describe the image, generate, insert.

It is built around OpenAI's gpt-image-2, currently one of the strongest models available for rendering legible text, labelled arrows and dense scientific diagrams — precisely what teaching material demands and what most image models still get wrong.

What teachers can do

  • Pick a prompt from a bank of 30+ ready-to-use educational prompts (Sciences, History & Geography, Languages, Mathematics, Arts, Computing)
  • Edit the selected prompt before sending it, or write one from scratch
  • Choose size and quality, with the estimated cost displayed live before generating
  • Insert the result straight into the Moodle editor, or download it as PNG

AI transparency, built in (since 1.6 version)

Article 50 of the EU AI Act requires AI-generated content to be clearly identifiable. The plugin handles this on two levels:

  • A discreet "AI-generated" label burned into the bottom-right corner of the image, applied both on insertion and on download. The wording is customisable — institutions can append their own name.
  • A machine-readable disclosure (data-ai-generated attribute and alt text) added to every inserted image. It cannot be switched off, and unlike a visual mark it survives cropping.

Administrators choose the policy site-wide: label disabled, optional (ticked or unticked by default), or mandatory. In mandatory mode the rule is enforced at insertion time, so it cannot be bypassed from the browser.

Cost transparency, built in

Image generation is billed per image, and costs add up quietly. A dedicated tab explains OpenAI's token-based pricing in plain language, lists estimated costs per quality level, and includes a budget simulator: enter your number of teachers, images per week and weeks per year, and get the projected weekly, monthly and yearly spend. A third tab offers prompt-writing guidance, because a well-built prompt means fewer expensive regenerations.

Security and privacy

  • The API key is stored server-side and never exposed to browsers
  • All requests go through a Moodle External Service, protected by require_login() and the tiny/imageia:use capability — so you decide which roles may generate images
  • Full Privacy API implementation, and GDPR guidance for administrators in the README

Requires a paid OpenAI API key. Available in English and French.

Contributors

Awards

Privacy friendly