This a a repository plugin for Moodle, that connect to AI services and generates images from text.
Currently this repository plugin supports OpenAI API.
You have to generate API key at https://beta.openai.com/account/api-keys
- Download the plugin and extract/clone it to [moodle_root]/repository/
- Go to your Moodle admin page and install it.
- Go to Admin -> Plugins -> Repository then enable and setup the repo.
- In repository settings you should set the desired image size, your OpenAI key and number of images.
- Image size is the size in pixels of generated images, could be 256x256, 512x512 or 1024x1024.
- You can get the key on this web address : https://beta.openai.com/account/api-keys
- You have to sign in or log in, and set your payment info for having access to text to image API.
- Number of image set the number of images that you get from the AI engine, if you choose more than one you will have to choose one of 2-4 generated images.
- This repo will now be on your file picker.
Enjoy !