DeepSeek API provider

From MoodleDocs


The Moodle integration with DeepSeek provides access to the AI actions generate text, summarise text and explain text.

Requirements

You need a DeepSeek account with access to a (paid) DeepSeek API key.

DeepSeek API provider set-up

To create a provider instance:

  1. Go to Site administration > General > AI providers.
  2. Click 'Create a new provider instance' and select 'DeepSeek API provider'.
  3. Enter a name and your DeepSeek API key.
  4. If required, set a site-wide rate limit and/or a user rate limit.
  5. Click 'Create instance'.

To configure the DeepSeek AI provider instance:

  1. Go to Site administration > General > AI providers.
  2. Click the settings link for the DeepSeek API provider instance.
  3. Enable/disable actions as required.

For each action, you can customise the model's behaviour via the settings link.

AI models include deepseek-chat and deepseek-reasoner.

  • deepseek-chat (Non-thinking Mode) is optimised for general conversations and content creation. It provides quicker, more affordable, and direct responses.
  • deepseek-reasoner (Thinking Mode) is designed for tasks needing more reasoning or step-by-step answers.

Choose deepseek-chat for fast, simple outputs, and deepseek-reasoner for cases that need deeper reasoning.

To enable the DeepSeek API provider instance:

  1. Go to Site administration > General > AI providers.
  2. Click the toggle to enable the instance.

Troubleshooting

For error causes and solutions, see Error Codes | DeepSeek API Docs.