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);
MCP
Remote Model Context Protocol (MCP) support is now available on Groq
Remote MCP enables AI applications to connect with external systems like databases, APIs, and tools.
Learn More

External API Compatibility

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

Was this page helpful?