skillfed

langchain-groq

An integration package connecting Groq and LangChain

langchain-groq v1.1.3 2.3M downloads/30d#3,117 on PyPI144,266
Permissive license MIT Active released

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-groq

uv

uv add langchain-groq

poetry

poetry add langchain-groq

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

groq langchain integrationgroq language model providerfast inference with langchaingroq chat completionlangchain groq llmgroq api wrapperlangchain provider integration
llm-integrationlangchain-providerinference-api

More Artificial Intelligence packages