Skip to main content
Portkey provides a robust and secure gateway to integrate various Large Language Models (LLMs) into applications, including DeepSeekโ€™s models. With Portkey, take advantage of features like fast AI gateway access, observability, prompt management, and more, while securely managing API keys through Model Catalog.

Quick Start

Get DeepSeek working in 3 steps:
Tip: You can also set provider="@deepseek" in Portkey() and use just model="deepseek-chat" in the request.

Add Provider in Model Catalog

  1. Go to Model Catalog โ†’ Add Provider
  2. Select DeepSeek
  3. Choose existing credentials or create new by entering your DeepSeek API key
  4. Name your provider (e.g., deepseek-prod)

Complete Setup Guide โ†’

See all setup options, code examples, and detailed instructions

Advanced Features

Multi-round Conversations

DeepSeek supports multi-turn conversations where context is maintained across messages:

JSON Output

Force structured JSON responses from DeepSeek models:

Tool Calling

DeepSeek supports tool calling (function calling) on the deepseek-chat model. Pass tools and optionally tool_choice in your request:

Reasoning (deepseek-reasoner)

The deepseek-reasoner model supports chain-of-thought reasoning. Use the reasoning_effort parameter to control reasoning behavior:
When streaming, reasoning_content is included in the delta for deepseek-reasoner responses.

Managing DeepSeek Prompts

Manage all prompt templates to DeepSeek in the Prompt Library. All current DeepSeek models are supported, and you can easily test different prompts. Use the portkey.prompts.completions.create interface to use the prompt in an application.

Supported Endpoints

  • Chat Completions
  • Streaming Chat Completions

Next Steps

Add Metadata

Add metadata to your DeepSeek requests

Gateway Configs

Add gateway configs to your DeepSeek requests

Tracing

Trace your DeepSeek requests

Fallbacks

Setup fallback from OpenAI to DeepSeek
For complete SDK documentation:

SDK Reference

Complete Portkey SDK documentation
Last modified on April 8, 2026