
Hugging Face
Catatan dari sumber
100K monthly Inference Provider credits for free users. Routes to Fireworks, Together, Hyperbolic, Nebius, Novita, DeepInfra and others. Thousands of models.
Setup dalam 5 menit
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://router.huggingface.co/v1",
apiKey: process.env.HUGGING_FACE_API_KEY,
});
const response = await client.chat.completions.create({
model: "Qwen/Qwen2.5-7B-Instruct",
messages: [{ role: "user", content: "Halo!" }],
});
console.log(response.choices[0].message.content);HUGGING_FACE_API_KEY=your-api-key-hereBelum punya API key? Ambil di halaman resmi Hugging Face ↗.
Cara claim API key gratis
Langkah umum — detail pastinya ikutin halaman resmi Hugging Face.
- 1.Buka halaman API key Hugging Face ↗
- 2.Daftar akun baru, atau login kalau udah punya.
- 3.Generate API key di dashboard / settings.
- 4.Pakai API key + Base URL
https://router.huggingface.co/v1di SDK atau HTTP client.
Model tersedia (5+)
- Modality
- Text
- Context
- 131K
- Output
- ~4K
- Rate limit
- Credit-metered
- Modality
- Text
- Context
- 128K
- Output
- ~4K
- Rate limit
- Credit-metered
- Modality
- Text
- Context
- 128K
- Output
- ~4K
- Rate limit
- Credit-metered
- Modality
- Text
- Context
- 32K
- Output
- ~4K
- Rate limit
- Credit-metered
- Modality
- Text
- Context
- 32K
- Output
- ~4K
- Rate limit
- Credit-metered
| Model | Modality | Context | Output | Rate limit |
|---|---|---|---|---|
Qwen2.5-7B-Instruct Qwen/Qwen2.5-7B-Instruct | Text | 131K | ~4K | Credit-metered |
Meta-Llama-3.1-8B-Instruct meta-llama/Meta-Llama-3.1-8B-Instruct | Text | 128K | ~4K | Credit-metered |
Phi-3.5-mini-instruct microsoft/Phi-3.5-mini-instruct | Text | 128K | ~4K | Credit-metered |
Mistral-7B-Instruct-v0.3 mistralai/Mistral-7B-Instruct-v0.3 | Text | 32K | ~4K | Credit-metered |
Mixtral-8x7B-Instruct-v0.1 mistralai/Mixtral-8x7B-Instruct-v0.1 | Text | 32K | ~4K | Credit-metered |
+ thousands of community models model lainnya — lihat daftar lengkap di sumber.
Model ini di provider lain (1)
Nama model yang sama juga muncul di provider lain menurut sumber masing-masing — versi/kuantisasi bisa beda.
FAQ
Apakah API Hugging Face gratis?
Ya — 100K kredit/bln. Data dari mnfst/awesome-free-llm-apis, freellm.net, cheahjs/free-llm-api-resources, terakhir di-sync 28 Jul 2026 — cek sumber untuk kondisi terbaru.
Ada berapa model gratis di Hugging Face?
5 model tercantum per 28 Jul 2026, termasuk Qwen2.5-7B-Instruct, Meta-Llama-3.1-8B-Instruct, Phi-3.5-mini-instruct.
Berapa rate limit Hugging Face?
Beda-beda per model, contoh: Qwen2.5-7B-Instruct: Credit-metered; Meta-Llama-3.1-8B-Instruct: Credit-metered; Phi-3.5-mini-instruct: Credit-metered. Limit lengkap per model, lihat tabel di atas.
Berapa context window maksimal di Hugging Face?
131K (Qwen2.5-7B-Instruct).