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

# Groq

> 了解如何将 Groq 与 Agno 结合使用。

Groq 为大型语言模型提供了闪电般的快速 API 终端。

您可以在[此处](https://console.groq.com/docs/models)查看所有 Groq 支持的模型。

* 对于一般用途，我们推荐使用 `llama-3.3-70b-versatile`
* 对于更快的响应，我们推荐使用 `llama-3.1-8b-instant`。
* 对于图像理解，我们推荐使用 `llama-3.2-90b-vision-preview`。

#### 多模态支持

通过 Groq，我们支持将 `Image` 作为输入

## 身份验证

设置您的 `GROQ_API_KEY` 环境变量。您可以在[此处](https://console.groq.com/keys)获取您的密钥。

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

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

## 示例

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

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

  agent = Agent(
      model=Groq(id="llama-3.3-70b-versatile"),
      markdown=True
  )

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

  ```
</CodeGroup>

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

## 参数

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

`Groq` 是 [Model](/reference/models/model) 类的子类，可以访问相同的参数。
