Create a DeepSeek API key
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from DeepSeek’s Your First API Call, Models & Pricing, Error Codes and Lists Models pages, retrieved 2026-10-16.
The DeepSeek API is OpenAI- and Anthropic-compatible and is paid from a prepaid balance: DeepSeek deducts each call from your topped-up or granted balance, using the granted balance first.
- Sign in to the DeepSeek Platform.
- Add funds on the platform’s Top up page if the account has no balance. Without one, calls fail
with
402 - Insufficient Balanceeven though the key is valid (Error Codes). - Open the API keys page (platform.deepseek.com/api_keys) and create a key.
- Copy the key and paste it into the connection. Keep it out of client-side code and version control.
The connection checks the key by listing the models at https://api.deepseek.com/models, which runs
no model. A 401 there means the key is wrong. DeepSeek does not document whether that endpoint
also checks the balance, so the first chat call is what confirms the account can pay.
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose DeepSeek, and pick DeepSeek API key. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: DeepSeek in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.