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:
- Go to Site administration > General > AI providers.
- Click 'Create a new provider instance' and select 'DeepSeek API provider'.
- Enter a name and your DeepSeek API key.
- If required, set a site-wide rate limit and/or a user rate limit.
- Click 'Create instance'.
To configure the DeepSeek AI provider instance:
- Go to Site administration > General > AI providers.
- Click the settings link for the DeepSeek API provider instance.
- 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:
- Go to Site administration > General > AI providers.
- Click the toggle to enable the instance.
Troubleshooting
For error causes and solutions, see Error Codes | DeepSeek API Docs.