Groq

Welcome

Fast LLM inference, OpenAI-compatible. Simple to integrate, easy to scale. Start building in minutes.

import OpenAI from "openai"; const client = new OpenAI({  apiKey: process.env.GROQ_API_KEY,  baseURL: "https://api.groq.com/openai/v1", });  const response = await client.responses.create({  model: "openai/gpt-oss-20b",  input: "Explain the importance of fast language models", }); console.log(response.output_text);
OpenAI Logo
OpenAI's GPT-OSS-Safeguard 20B model is now available on Groq
A reasoning model for Trust & Safety workflows with customizable policy-based content moderation.
Learn More

Getting Started

Take a quick video tour on how to get started building your app on Groq.

External API Compatibility

OpenAI base URL:
https://api.groq.com/openai/v1
Learn about OpenAI compatibility

Was this page helpful?