Groq offers 12 models through Lava’s AI Gateway, supporting Chat Completions, Transcription. Authentication uses Authorization: Bearer. See the Groq API docs for provider-specific parameters.
Supports both managed API keys (from Lava) and BYOK mode.
Quick Start
const response = await fetch('https://api.lavapayments.com/v1/forward?u=https%3A%2F%2Fapi.groq.com%2Fopenai%2Fv1%2Fchat%2Fcompletions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${forwardToken}`,
},
body: JSON.stringify({
model: 'openai/gpt-oss-120b',
messages: [{ role: "user", content: "Hello!" }],
}),
});
Chat Completions
Target URL: https://api.groq.com/openai/v1/chat/completions
| |
|---|
| Content Type | application/json |
| Streaming | Yes (set stream: true in request body) |
| Model | Input / 1M tokens | Output / 1M tokens |
|---|
| moonshotai/kimi-k2-instruct-0905 | $1.00 | $3.00 |
| llama-3.3-70b-versatile | $0.59 | $0.79 |
| qwen/qwen3-32b | $0.29 | $0.59 |
| meta-llama/llama-4-maverick-17b-128e-instruct | $0.20 | $0.60 |
| meta-llama/llama-guard-4-12b | $0.20 | $0.20 |
| openai/gpt-oss-120b | $0.15 | $0.60 |
| meta-llama/llama-4-scout-17b-16e-instruct | $0.11 | $0.34 |
| openai/gpt-oss-20b | $0.07 | $0.30 |
| llama-3.1-8b-instant | $0.05 | $0.08 |
Transcription
Target URL: https://api.groq.com/openai/v1/audio/transcriptions
| |
|---|
| Content Type | multipart/form-data |
| Streaming | No |
| Model | Input / minute | Output / minute |
|---|
| whisper-large-v3 | $0.0019 | Free |
| whisper-large-v3-turbo | $0.0007 | Free |
| whisper-large-v3-en | $0.0003 | Free |
Next Steps