> ## 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.

# Together

> 了解如何将 Together 与 Agno 一起使用。

Together 是一个为大型语言模型提供端点的平台。
在此处查看他们的模型库：[here](https://www.together.ai/models)。

我们建议通过实验来找到最适合您用例的模型。

Together 有基于层级的速率限制。有关更多信息，请参阅[文档](https://docs.together.ai/docs/rate-limits)。

## 认证

设置您的 `TOGETHER_API_KEY` 环境变量。在此处从 Together 获取您的密钥：[from Together here](https://api.together.xyz/settings/api-keys)。

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

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

## 示例

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

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

  agent = Agent(
      model=Together(id="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"),
      markdown=True
  )

  # 在终端中打印响应
  agent.print_response("写一个两句的恐怖故事。")
  ```
</CodeGroup>

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

## 参数

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

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