This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new AI Gateway with unified API access to 100+ models.
You can follow their documentation here: https://api-docs.deepseek.com/
Gateway Integration#
Create a Helicone account
Create a DeepSeek AI account
Log into platform.deepseek.ai or create an account. Once you have an account, you can generate an API key from your dashboard.
Set HELICONE_API_KEY and DEEPSEEK_API_KEY as environment variable
Modify the base URL and add Auth headers
Replace the following DeepSeek AI URL with the Helicone Gateway URL:
https://api.deepseek.ai/v1/chat/completions -> https://deepseek.helicone.ai/v1/chat/completions
and then add the following authentication headers:
Now you can access all the models on DeepSeek AI with a simple fetch call:
Example#
For more information on how to use headers, see Helicone Headers docs. And for more information on how to use DeepSeek AI, see DeepSeek AI Docs.
