To use DeepSeek in PyCharm, find an AI plugin or settings page that supports OpenAI-compatible endpoints, then fill in the Base URL and API key. Below are the parameters and example configs for the three common providers.
Quick Parameters
| Provider | Base URL | Recommended Model |
|---|---|---|
| DeepSeek Official | https://api.deepseek.com | deepseek-chat (V3) / deepseek-reasoner (R1) |
| OpenRouter | https://openrouter.ai/api/v1 | deepseek/deepseek-chat |
| SiliconFlow | https://api.siliconflow.cn/v1 | deepseek-ai/DeepSeek-V3 |
Field names vary by plugin (
Base URL/API Base/apiBase). Use the equivalent field in your UI.
Where to Configure (PyCharm)
- Open Settings/Preferences → Plugins and install an OpenAI-compatible plugin.
- Search “AI / OpenAI / LLM” in Settings to locate the plugin configuration.
- Fill in Base URL, API key, and Model, then save.
- Pick the provider in the AI panel to chat or generate code.
Get an API Key
- DeepSeek: https://platform.deepseek.com
- OpenRouter: https://openrouter.ai/keys
- SiliconFlow: https://siliconflow.cn/
DeepSeek Official Example
{
"baseUrl": "https://api.deepseek.com",
"apiKey": "YOUR_API_KEY",
"model": "deepseek-chat"
}OpenRouter Example
{
"baseUrl": "https://openrouter.ai/api/v1",
"apiKey": "YOUR_API_KEY",
"model": "deepseek/deepseek-chat"
}SiliconFlow Example
{
"baseUrl": "https://api.siliconflow.cn/v1",
"apiKey": "YOUR_API_KEY",
"model": "deepseek-ai/DeepSeek-V3"
}FAQ
- 401 / 403 errors: Check that your API key is correct and your balance is sufficient.
- Slow responses: Try switching to OpenRouter or SiliconFlow.
- Model not found: Verify the model name matches the provider's latest list.

