Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatGroq | langchain-groq | ❌ | beta | ✅ |
Model features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
Setup
Groq 모델에 액세스하려면 Groq 계정을 생성하고, API 키를 받고,langchain-groq integration package를 설치해야 합니다.
Credentials
Groq console로 이동하여 Groq에 가입하고 API 키를 생성하세요. 완료되면 GROQ_API_KEY environment variable을 설정하세요:Installation
LangChain Groq integration은langchain-groq package에 있습니다:
Instantiation
이제 model object를 인스턴스화하고 chat completion을 생성할 수 있습니다.Reasoning Format
reasoning_format을 설정하기로 선택한 경우, 사용 중인 모델이 이를 지원하는지 확인해야 합니다. 지원되는 모델 목록은 Groq documentation에서 찾을 수 있습니다.Invocation
API reference
모든 ChatGroq 기능과 구성에 대한 자세한 문서는 API reference를 참조하세요.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.