> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-eugene-1763577327-bfe51c2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Groq

<Warning>
  This page makes reference to [Groq](https://console.groq.com/docs/overview), an AI hardware and software company. For information on how to use Grok models (provided by [xAI](https://docs.x.ai/docs/overview)), see the [xAI provider page](/oss/python/python/integrations/providers/xai).
</Warning>

> [Groq](https://groq.com) developed the world's first Language Processing Unit™, or `LPU`.
> The `Groq LPU` has a deterministic, single core streaming architecture that sets the standard
> for GenAI inference speed with predictable and repeatable performance for any given workload.
>
> Beyond the architecture, `Groq` software is designed to empower developers like you with
> the tools you need to create innovative, powerful AI applications.
>
> With Groq as your engine, you can:
>
> * Achieve uncompromised low latency and performance for real-time AI and HPC inferences
> * Know the exact performance and compute time for any given workload
> * Take advantage of our cutting-edge technology to stay ahead of the competition

## Installation and Setup

Install the integration package:

<CodeGroup>
  ```bash pip theme={null}
  pip install langchain-groq
  ```

  ```bash uv theme={null}
  uv add langchain-groq
  ```
</CodeGroup>

Request an [API key](https://console.groq.com/login?utm_source=langchain\&utm_content=provider_page) and set it as an environment variable:

```bash theme={null}
export GROQ_API_KEY=gsk_...
```

## Chat models

See a [usage example](/oss/python/integrations/chat/groq).

```python theme={null}
from langchain_groq import ChatGroq
```

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit the source of this page on GitHub.](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/groq.mdx)
</Callout>

<Tip icon="terminal" iconType="regular">
  [Connect these docs programmatically](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
</Tip>
