Lewati ke konten
Logo Groq

Groq

Inference14 modelcontext maks 131K

Catatan dari sumber

Free tier, no credit card. Ultra-fast LPU inference.

Setup dalam 5 menit

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.groq.com/openai/v1",
  apiKey: process.env.GROQ_API_KEY,
});

const response = await client.chat.completions.create({
  model: "gpt-oss-safeguard-20b",
  messages: [{ role: "user", content: "Halo!" }],
});

console.log(response.choices[0].message.content);
.env
GROQ_API_KEY=your-api-key-here

Belum punya API key? Ambil di halaman resmi Groq.

Cara claim API key gratis

Langkah umum — detail pastinya ikutin halaman resmi Groq.

  1. 1.Buka halaman API key Groq
  2. 2.Daftar akun baru, atau login kalau udah punya.
  3. 3.Generate API key di dashboard / settings.
  4. 4.Pakai API key + Base URL https://api.groq.com/openai/v1 di SDK atau HTTP client.

Model tersedia (14)

GPT-OSS Safeguard 20B
gpt-oss-safeguard-20b
Modality
text + reasoning
Context
131K
groq/compound
groq/compound
Modality
Text
Context
131K
Output
8K
Rate limit
30 RPM, 250 RPD
groq/compound-mini
groq/compound-mini
Modality
Text
Context
131K
Output
8K
Rate limit
30 RPM, 250 RPD
Moonshot Kimi K2
moonshot-kimi-k2
Modality
text
Context
131K
Moonshot Kimi K2 0905
moonshot-kimi-k2-0905
Modality
text
Context
131K
openai/gpt-oss-120b
openai/gpt-oss-120b
Modality
Text
Context
131K
Output
65K
Rate limit
30 RPM, 1,000 RPD
openai/gpt-oss-20b
openai/gpt-oss-20b
Modality
Text
Context
131K
Output
65K
Rate limit
30 RPM, 1,000 RPD
qwen/qwen3.6-27b
qwen/qwen3.6-27b
Modality
Text
Context
131K
Output
16K
Rate limit
30 RPM, 1,000 RPD

Model ini di provider lain (4)

Nama model yang sama juga muncul di provider lain menurut sumber masing-masing — versi/kuantisasi bisa beda.

FAQ

Apakah API Groq gratis?

Ya — menurut sumber: "Free tier, no credit card. Ultra-fast LPU inference." Data dari mnfst/awesome-free-llm-apis, freellm.net, models.dev, terakhir di-sync 2 Sep 2026 — cek sumber untuk kondisi terbaru.

Ada berapa model gratis di Groq?

14 model tercantum per 2 Sep 2026, termasuk GPT-OSS Safeguard 20B, groq/compound, groq/compound-mini.

Berapa rate limit Groq?

Beda-beda per model, contoh: groq/compound: 30 RPM, 250 RPD; groq/compound-mini: 30 RPM, 250 RPD; openai/gpt-oss-120b: 30 RPM, 1,000 RPD. Limit lengkap per model, lihat tabel di atas.

Berapa context window maksimal di Groq?

131K (GPT-OSS Safeguard 20B).