> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepSeek

> 了解如何在 Agno 中使用 DeepSeek 模型。

DeepSeek 是一个为大型语言模型提供端点的平台。
在此处查看他们的模型库：[here](https://api-docs.deepseek.com/quick_start/pricing)。

我们建议您进行实验，以找到最适合您用例的模型。以下是一些通用建议：

* `deepseek-chat` 模型适用于大多数基本用例。
* `deepseek-reasoner` 模型适用于复杂的推理和多步任务。

DeepSeek 没有速率限制。请参阅他们的[文档](https://api-docs.deepseek.com/quick_start/rate_limit)了解在高流量期间如何处理较慢的响应。

## 认证

设置您的 `DEEPSEEK_API_KEY` 环境变量。从此处获取您的密钥：[here](https://platform.deepseek.com/api_keys)。

<CodeGroup>
  ```bash Mac theme={null}
  export DEEPSEEK_API_KEY=***
  ```

  ```bash Windows theme={null}
  setx DEEPSEEK_API_KEY ***
  ```
</CodeGroup>

## 示例

在您的 `Agent` 中使用 `DeepSeek`：

<CodeGroup>
  ```python agent.py theme={null}
  from agno.agent import Agent, RunResponse
  from agno.models.deepseek import DeepSeek

  agent = Agent(model=DeepSeek(), markdown=True)

  # 在终端中打印响应
  agent.print_response("Share a 2 sentence horror story.")

  ```
</CodeGroup>

<Note> 在此处查看更多示例：[here](../examples/models/deepseek)。 </Note>

## 参数

<Snippet file="model-deepseek-params.mdx" />

`DeepSeek` 还支持 [OpenAI](/reference/models/openai) 的参数。
