Groq

Welcome

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

from openai import OpenAI
import os
client = OpenAI(
    api_key=os.environ.get("GROQ_API_KEY"),
    base_url="https://api.groq.com/openai/v1",
)

response = client.responses.create(
    input="Explain the importance of fast language models",
    model="openai/gpt-oss-20b",
)
print(response.output_text)
MCP Logo
Google Workspace Connectors are now available on Groq
Connect your AI agents to Gmail, Google Calendar, and Google Drive with ready-made connectors.
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?