Skip to main content
DeepSeek provides high-performance reasoning and chat models.
Even though DeepSeek is a built-in provider, it still requires you to bring your own key because ngrok.ai inference is not available for it at this time.

Setup

1

Create an access key

Follow the quickstart to create an access key in app.ngrok.ai.
2

Store your DeepSeek API key

Sign up at platform.deepseek.com and create an API key. Then add a provider key.
3

Create a configuration

Create an access key configuration with a deepseek routing rule and allow DeepSeek in the access scope.
4

Assign and send requests

Assign the configuration to your access key and send requests with your access key:
from openai import OpenAI

client = OpenAI(
    base_url="https://gateway.ngrok.ai/v1",
    api_key="ng-xxxxx-g1-xxxxx",
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello!"}]
)

Available models

See the model catalog.

Next steps