Choosing an AI provider for Moodle

Moodle's AI subsystem can send requests to several providers, and the right choice depends on where data may go, what your contracts allow, which actions you need and what each provider costs to run.

On this page

Choosing an AI provider for Moodle starts with where your data is allowed to go

The provider you choose decides where Moodle AI prompts are processed, which contract governs that processing and which actions you can offer users. Before you enable any AI feature, an administrator or CIO has to make that decision, and it usually comes before a pilot, before any course content is shared with a model and before personal data is involved. Moodle's core AI subsystem supports OpenAI, Azure AI, AWS Bedrock, Gemini, DeepSeek, Anthropic and a self-hosted Ollama server. Anthropic's provider was added in Moodle 5.3, so confirm which Moodle version you run before you plan around it.

Start by mapping where each candidate provider processes requests and which legal entity signs the terms. Ask each vendor, and your own cloud or contract team, to confirm the processing region, whether prompts or outputs are retained, whether they are used for model training, and which sub-processors are involved. Cloud-hosted options such as Azure AI and AWS Bedrock run inside a provider account you may already govern, while the Ollama server keeps processing on infrastructure you operate. Record the answers in writing, because the data protection and procurement teams will ask for them before any student or staff data reaches a model.

Then check which actions each provider must support for your intended use. Text actions such as summarising and explaining are the common starting point, but image generation in the editor depends on the provider and the Moodle version, so confirm it for each candidate rather than assuming it. Also estimate running costs with the vendor, since pricing usually depends on usage, model choice and whether you pay per request or through a cloud account. Write these answers into a short decision record that names the provider, the region, the contract, the enabled actions and the owner who approved them, so the choice can be reviewed when Moodle or the provider changes.

Five criteria that separate the providers in practice

The seven providers in Moodle's core AI subsystem differ less in their feature lists than in where prompts are processed, what the contract allows, and which actions and models they serve. The cards below set out the questions to put to each provider and the checks to run in your own environment before you choose one.

Data residency and processing location

Ask each provider where prompts and completions are processed, where they are stored, and whether either location can be fixed to a region you choose. Note that the endpoint Moodle calls is not always the place where inference runs. For a self-hosted Ollama server, the answer depends on your own hosting. Confirm the region with your legal and data protection teams before a pilot, because personal data from course content will travel with every request.

Contract and data-use terms

Ask whether the provider uses customer prompts or outputs to train models, how long it retains request data, and whether it signs a data processing agreement that covers the Moodle use case. Read the terms that apply to your account tier, not the public marketing pages, because enterprise and standard terms often differ. Record the answers with the date you checked them, since providers change terms.

Supported actions including image generation

Moodle's AI actions are not offered equally by every provider. Check each provider against the actions you plan to enable, such as summarise, explain, and generate text, and against image generation for the text editor. A provider that handles text well may not handle images, so a split design, with one provider for text and another for images, is a common outcome. Confirm the current action support in the Moodle AI documentation for your release.

Model and version availability

Each action is tied to a model or deployment that the provider can retire or rename. Ask how long a model stays available, how the provider announces retirements, and whether you can pin a version for an exam period. In Moodle, a model change can alter how an action responds, so plan a retest after each change. Check the model list in your Moodle site rather than assuming the provider's latest model is supported.

Running cost drivers

Costs fall into the provider's usage charges, the cloud or hosting bill for any endpoint you run, and the internal effort of setup, governance and monitoring. Usage charges rise with the number of users, the actions enabled per course, and the length of prompts. A self-hosted Ollama server moves the cost into hardware, GPU capacity and operations. Ask each provider for pricing that matches your expected action volume, and ask for the figures in writing.

Access and credential handling

Each provider needs an API key, a deployment ID, an IAM role, or basic authentication for an Ollama endpoint. Decide who holds these credentials, where they are stored, and how they are rotated. Confirm that the Moodle site restricts who can change provider settings, and that keys are not exposed in logs, backups or course content. Check whether your identity and secrets policies allow the chosen authentication method.

How each core provider fits different constraints

This table compares the seven core Moodle AI providers on where processing happens, fit for organizations already on a cloud, image generation to confirm, and the situations where each one tends to fit. Treat the image generation, regional and contract cells as items to verify with each vendor and with your Moodle version before you choose.

ProviderWhere processing happensFit for organizations already on a cloudImage generation to confirmWhen it tends to fit
OpenAIVendor-hosted API, outside your infrastructureFits teams on other clouds with no existing OpenAI commitmentConfirm with the provider plugin and your Moodle versionTeams that want a direct vendor API and accept processing outside their network
Azure AIYour Azure resource, with regional deployment choices to confirmStrong fit for organizations already running Microsoft 365 and AzureConfirm the editor image feature for your deploymentMicrosoft-centred institutions that want deployment IDs, endpoints and regions under their own tenancy
AWS BedrockYour AWS account and chosen region, with foundation models to confirmStrong fit for organizations already running workloads on AWSConfirm image support per model and Moodle release (Bedrock support starts at Moodle 5.2)AWS-centred teams that want IAM credentials and traffic kept inside an AWS environment
GeminiVendor-hosted API, outside your infrastructureFits teams on Google Cloud or with an existing Google agreementConfirm with the provider plugin and your Moodle versionTeams that want a Google model and can accept processing outside their network
DeepSeekVendor-hosted API, outside your infrastructureLimited cloud alignment, so fit depends on the wider vendor positionConfirm with the provider plugin and your Moodle versionUse only after reviewing data location, contract and policy terms with your data protection team
Anthropic ClaudeVendor-hosted API, outside your infrastructureFits teams with an existing Anthropic agreement or no cloud preferenceNot supported (confirm before planning the editor image feature)Text actions only, paired with another provider if editor images are needed. Added in Moodle 5.3
Ollama (self-hosted)Your own servers, with prompts kept inside your networkFits any cloud or on-premises estate, since you run the modelConfirm model support for images before planning the featureData must stay inside your infrastructure, and you can size GPUs and accept self-run operations
Contract and regional terms (all providers)Verify data location, retention and sub-processors in each agreementCheck the terms your procurement team already holdsNot applicableAsk each vendor for written terms before a pilot involving personal data

How Moodle routes an AI request to a provider

Moodle's AI subsystem separates the provider from the placement. A provider plugin holds the connection to one AI service, such as OpenAI, Azure AI, AWS Bedrock, Gemini, DeepSeek, Anthropic or a self-hosted Ollama server. A placement is a Moodle feature that asks for AI help, such as course assistance or the text editor. Each action can be mapped to a different provider, so one provider may serve text summaries while another serves image generation. Before the rollout, list every placement and action you plan to enable, then record which provider each one calls. Confirm this mapping in the AI settings of your Moodle version, because the available actions and the way they are assigned change between releases.

When a request reaches a cloud provider, the prompt and any data Moodle includes in it leave your Moodle server and travel to the provider's endpoint. The data then sits under that provider's processing terms, region and retention settings, not only yours. When the provider runs on your own infrastructure, as with an Ollama server inside your network, the request stays within the network boundary you control. This boundary is the main thing the data protection review must map: for each action, the team should be able to say whether the request crosses the Moodle server's perimeter, which region receives it, and which account or endpoint is called. Confirm the endpoint and network path for each provider in your own environment, and check the provider's current data handling documentation rather than relying on this summary.

Where a Moodle AI request travels by provider type

The request starts when a teacher or student triggers an AI action in Moodle, such as course assistance or the text editor. The AI subsystem then uses the provider configured for that action. If the provider is a self-hosted Ollama server, the request stays on hosts inside the organization's network. If it is a cloud provider such as OpenAI, Azure AI, AWS Bedrock, Gemini, DeepSeek or Anthropic, the request leaves that boundary. Check which provider is assigned to each action, and confirm with the provider where that traffic is processed and stored under your contract.

Request paths from Moodle to a self-hosted or external AI provider.

Steps to shortlist and test an AI provider for Moodle

This sequence moves from confirming what your Moodle version supports to a reviewed, evidence-backed decision on which AI provider may be piloted. Each step produces a record that the next step depends on, so the final review works from facts rather than vendor claims.

  1. Confirm the Moodle version and its AI features

    The platform administrator records the exact Moodle version in use and checks which AI providers, placements and actions that version ships with. Provider availability differs between releases: the Anthropic provider, for example, arrived in Moodle 5.3, and per-course and per-activity access controls are a Moodle 5.1 feature. Confirm the upgrade path from the release notes if the site is on an older version. The check is complete when the version, the provider list and the placement list are written down and match the test site you plan to use.

  2. Map the actions and personal data involved

    The product owner, with an academic lead, lists each AI action you intend to enable, such as summarizing content, explaining material, or generating text and images in the editor. For each action, the data protection lead notes whether prompts or outputs can contain personal data, including student work, names or assessment material. Actions that will touch exam content or identifiable learner data should be flagged for stricter provider terms. The check is a signed-off action list with a yes or no on personal data for every row.

  3. Shortlist providers against residency and contract needs

    Using the action list, the platform team compares candidate providers on where prompts are processed, whether each required action is supported, and whether your organization can accept the contract model. Include the self-hosted Ollama option if data must stay inside your infrastructure, and check that image generation is available for providers you need for the editor. Confirm current regional options and supported models directly with each vendor, because these change. The check is a shortlist table with one row per provider and a stated reason for each exclusion.

  4. Obtain written terms from each shortlisted provider

    Procurement and legal request written terms from each shortlisted provider covering data processing, data retention, whether provider staff can access prompts, use of data for model training, sub-processors, regions and breach notification. Ask the vendor for the document that governs your account, not marketing material, and record the version and date. Where you run Ollama on your own servers, the equivalent evidence is your own configuration and network records. The check is a file per provider that legal has reviewed and marked as acceptable or as having open questions.

  5. Configure a test provider on a non-production site

    The Moodle administrator sets up one shortlisted provider on a non-production copy of the site, using test credentials or a test deployment at the provider. Enter the endpoint, keys and any deployment or model settings for each action, and restrict the AI placements to a small set of test courses and test accounts. Keep production data out of this environment. The check is a configuration record that lists each enabled action, the model or deployment it uses, and the test accounts that can reach it.

  6. Run test prompts per action and record results

    Testers run a fixed set of prompts for each action on the action list, including ordinary content, prompts that contain synthetic personal data, and prompts that try to draw out content the action should not return. They record output quality, response time, failures, any errors in the logs and what is stored in Moodle's AI action records. Repeat the same prompts for each provider so results are comparable. The check is a results sheet that shows every action tested against every shortlisted provider, with the stored records reviewed.

  7. Review results with legal, data protection and academic teams

    Before any pilot, the platform owner presents the terms, the test results and the stored-record findings to legal, data protection and academic integrity leads. The group decides which provider and which actions may proceed, what conditions apply, and which placements stay off. Record the decision, the reasons and any open items with owners. The check is a signed decision record that names the approved provider, the approved actions and the conditions attached, and that states what must be re-checked if the Moodle version or provider terms change.

Security and operational considerations for the provider decision

The provider you choose is only part of the risk. How credentials are stored, who can change the configuration, what gets logged and how dependent you are on one vendor all shape the day-to-day exposure. Review these five areas before you commit to a provider.

API credential storage and rotation

Each Moodle AI provider needs an API key or cloud credential entered in the provider settings. Anyone with access to the database, backups or the site administration screens may be able to read it, so the key is only as protected as those places. Ask who can view stored keys, where backups are kept and how the key is replaced without downtime. Use a dedicated key per environment so a leaked test key does not expose production.

Who can change provider configuration

Changing the provider, endpoint or model for an action changes where student and staff text is sent. Limit the AI provider and placement settings to a small set of site administrators and record who made each change. Review the capabilities that control AI access in your roles, because a manager role with broad configuration rights can redirect prompts to a different provider without a code change. Treat provider changes like a change to a data processor.

Logging and retention of AI action records

Moodle records AI actions, so each provider decision also decides how much learner text is kept and for how long. Check which action records the site stores, who can view the AI usage and user reports, and how long they remain before deletion. Confirm the retention period with your data protection team and align it with the provider's own data handling terms, since the two stores may keep different copies.

Dependence on one provider's availability and changes

A single provider can be unavailable, retire a model or change its pricing and terms. When the provider is removed, AI placements in the editor and course assistance stop working for every course. Ask each vendor how model versions are retired and how much notice you receive. Plan a tested fallback provider for the actions that matter most, and confirm that Moodle's configuration lets you switch without rebuilding courses.

Protecting the self-hosted Ollama endpoint

An Ollama server that Moodle calls is an internal API, and a reachable endpoint with no authentication can be used by anyone on that network. Restrict it to the Moodle web servers with network rules, place it behind a reverse proxy that enforces basic authentication and keep it off public addresses. Confirm the endpoint and credentials in the provider settings, and test that unauthenticated requests are refused before the pilot begins.

Questions buyers ask before choosing an AI provider for Moodle

How much does it cost to run AI in Moodle?

The running cost depends on which provider handles each action and how much your users send through it, so no single figure applies to every site. For cloud providers, you pay the vendor for model usage, usually metered per request or per token, and those charges recur for as long as the features are switched on. For a self-hosted Ollama server, the recurring cost is the compute you run it on, including GPU capacity, storage, power or cloud instance hours, and the staff time to patch and monitor it. Ask each vendor for its current published rates for the models you plan to use, and ask your partner to model usage from your expected course and editor activity. Confirm current rates directly with each vendor before you compare them.

How long does a provider evaluation take?

The length depends on how many providers you compare, how many AI actions you plan to enable, and whether your security and data protection teams must review each one. The work breaks into four parts: confirming what each provider supports in your Moodle version, testing the chosen providers against representative course content, reviewing contract and data terms, and documenting the decision. Your Moodle release affects the list of available providers, so check the Moodle release notes for your version first. Ask a partner for the evaluation plan and its dependencies in the written scope before work starts, since the timing will follow from those inputs.

What does the work need from our team?

Your team needs to supply decisions and access rather than build the integration. Expect to name the people who approve provider terms, the data protection lead who reviews what leaves your environment, and an academic lead who knows which courses and assessments the AI features will touch. Your Moodle administrators need to provide a test site, the account details needed to create provider credentials, and the ability to change site settings during testing. If you plan to run Ollama, your infrastructure team must confirm where the server sits and who will operate it. Agree these responsibilities in the written scope so that reviews do not stall the pilot.

Can we choose AI providers ourselves without a partner?

Yes. Moodle's AI providers are configured through the site administration, so an experienced Moodle administrator can set up a provider, enable placements and run basic tests without outside help. The harder parts are evaluating contract terms, mapping where personal data goes, and documenting the setup for compliance reviewers. If your team already has staff who handle vendor reviews and Moodle administration, you may cover most of the work internally. A partner can add value by running a structured comparison, testing each provider against your content and preparing the evidence your review boards ask for. The decision depends on your capacity and how much evidence your governance process requires.

Does a self-hosted Ollama server remove the need for a cloud contract?

A self-hosted Ollama server removes the need for a cloud AI contract for the actions it serves, but it does not remove every contract or cost. Your organization still pays for the hardware or cloud capacity that runs the model, and you still need to confirm that the models you choose have licenses that allow your intended use. Ollama supports a narrower set of model capabilities than some cloud providers, so check that the actions you need are supported before you commit. Ask your Moodle and infrastructure teams to confirm the endpoint, authentication and network path from Moodle to the server. Keeping prompts inside your own infrastructure also means your team owns patching, capacity planning and availability.

What should we ask a partner for in a scoped quote?

A scoped quote should state what is in and out of the work, and it should list the deliverables and the dates or milestones you will review. Ask for the providers included in the evaluation, the Moodle versions and hosting environment covered, and the number of AI actions and placements to test. Request the assumptions behind any effort figures, the inputs you must supply, and the acceptance criteria for each deliverable. Ask how the partner will handle vendor-specific details such as region, endpoint and model selection, and whether a retest or handover is included. Also ask for the costs your organization will still carry directly, such as vendor usage fees and infrastructure. The quote should separate one-time work from ongoing support.

What a scoped provider evaluation includes

A scoped provider evaluation starts with a requirements review, before anyone opens a provider console. DeployOpen would record which Moodle AI actions your organization wants (for example course assistance and text generation in the editor, and whether image generation is needed), where prompts and responses may be processed, which contract terms your procurement and legal teams must accept, and which Moodle release you run or plan to run. The output is a written list of hard constraints and nice-to-have features, so the comparison is judged against your rules rather than against vendor marketing. Your data protection and procurement leads should confirm these constraints early, because they decide which providers are even eligible.

Next comes a comparison of the shortlisted providers against those constraints. For each candidate the review would cover data residency and processing location, contract and data use terms, the actions the provider supports in your Moodle version, and the running cost components you would pay (provider usage fees, any cloud account or GPU hosting, and the staff time to operate it). Some of these points depend on the Moodle release, so confirm the supported provider list against the release notes for your version. Ask each provider for current terms in writing, since a comparison written from memory will go stale.

The evaluation then includes a test configuration on a non-production Moodle site, configured with the chosen provider credentials, placements and access settings that would be used in a pilot. Testing confirms that each action returns output in the expected form, that errors are handled cleanly, and that the settings in config.php and the AI provider screens match the written design. The engagement closes with handover notes for the data protection team, describing what data leaves your environment and how it is recorded, and for the academic integrity team, describing where AI features appear and how usage is reported. Scope, deliverables and timeline are agreed in writing before work starts, and DeployOpen does not publish prices, so a quote follows from that written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.