Skip to content
Software capabilities
Groq

How to list available Groq models

List models through the OpenAI-compatible API or official Groq SDK, then check model limits and response headers before production traffic.

Documentation reviewed · 3 methods with sources

Ways to do it

  1. API: GET /openai/v1/models
  2. SDK: groq.models.list()
  3. API: Rate-limit response headers
API

GET /openai/v1/models

List model IDs and metadata.

Read source: Groq API reference for listing models
Requirements
A Groq API key as a Bearer token.
Limitations
Availability and per-model RPM, RPD, TPM, TPD, and audio limits change.

Example shell

curl --fail https://api.groq.com/openai/v1/models -H "Authorization: Bearer $GROQ_API_KEY"
SDK

groq.models.list()

List models with the official JavaScript SDK.

Read source: Groq models guide and JavaScript example
Requirements
Node.js, groq-sdk, and a Groq API key.
Limitations
SDK calls use the same account and model limits as REST.

Example text

import Groq from "groq-sdk";
const client = new Groq({ apiKey: process.env.GROQ_API_KEY });
const models = await client.models.list();
API

Rate-limit response headers

Read request and token budgets in the response headers on inference requests.

Read source: Groq rate limits
Requirements
An inference request authenticated with a Groq API key.
Limitations
The request limit header reports requests per day. The token limit header reports tokens per minute.

Example text

x-ratelimit-remaining-requests
x-ratelimit-remaining-tokens