langchain-groq
An integration package connecting Groq and LangChain
What it is and what it does
langchain-groq is a LangChain integration package that bridges Groq's inference API with LangChain's language model interface. It allows developers to use Groq as a language model provider within LangChain applications, enabling chat completions and text generation tasks. The package wraps Groq's API client and exposes it through LangChain's standard chat model interface, making it easy to swap Groq in and out of existing LangChain workflows.
The package depends on groq and langchain-core, both lightweight dependencies. It supports Python 3.10 through 3.14 and is marked as production-stable. With no known security vulnerabilities and active maintenance, it is suitable for production use in applications that need inference through Groq's API.
Use it for:
- Build a chatbot or conversational agent using Groq within a LangChain application.
- Replace an existing LangChain language model provider with Groq to reduce latency in real-time inference tasks.
- Integrate Groq into a multi-step LangChain pipeline for document processing or question-answering workflows.
- Prototype language model applications quickly by using Groq through LangChain's unified interface.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Connects Groq's inference API to LangChain, enabling language model applications to use Groq as a provider for chat and text generation tasks.
Yes. The package has low install friction, active maintenance, a permissive MIT license, and no known vulnerabilities. It integrates cleanly into LangChain workflows and is worth installing if you need inference through Groq's API within a LangChain application.
Install
langchain-groq on PyPI
pip
pip install langchain-groquv
uv add langchain-groqpoetry
poetry add langchain-groqInstalling langchain-groq
Before you install
Low friction install with only 2 runtime dependencies. Active maintenance with a recent release 65 days ago and an active repository.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install langchain-groq
from langchain_groq import ChatGroq
chat = ChatGroq()
response = chat.invoke("Hello")
Requires a Groq API key set in the environment to authenticate requests.
Verify before relying
- What specific model names are available through the Groq integration.
- Whether the package supports streaming responses or only batch inference.
- What rate limits or usage quotas are enforced by Groq's API.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — groq, langchain-core |
| Maintenance | actively maintained — 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,347,492/month — #3,117 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: langchain_groq-1.1.3-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
langchain-deepseekIntegrates DeepSeek language models into…
permissive · top 5,000 on PyPI
langchain-huggingfaceConnects Hugging Face models and embeddings to…
permissive · top 5,000 on PyPI
langchain-testsProvides standard test base classes and…
permissive · top 5,000 on PyPI
langchain-cerebrasIntegrates Cerebras AI inference services with…
permissive · top 15,000 on PyPI
langchain-perplexityIntegrates Perplexity AI models into LangChain…
permissive · top 15,000 on PyPI
langchain-ollamaConnects LangChain applications to Ollama,…
permissive · top 5,000 on PyPI
langchain-openaiProvides LangChain integrations for OpenAI's…
permissive · top 1,000 on PyPI
langchain-mistralaiConnects Mistral AI language models to…
permissive · top 5,000 on PyPI
langchain-xaiConnects xAI's language models to LangChain…
permissive · top 5,000 on PyPI
langchain-fireworksIntegrates Fireworks.ai language models with…
permissive · top 5,000 on PyPI