Lewati ke konten
Logo Hugging Face

Hugging Face

Inference5 modelcontext maks 131KGratis: $0.10 kredit

Catatan dari sumber

$0.10/month in Inference Provider credits for free users (subject to change). 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: "google/gemma-3-4b-it",
  messages: [{ role: "user", content: "Halo!" }],
});

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

Belum punya API key? Ambil di halaman resmi Hugging Face.

Cara claim API key gratis

Langkah umum — detail pastinya ikutin halaman resmi Hugging Face.

  1. 1.Buka halaman API key Hugging Face
  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://router.huggingface.co/v1 di SDK atau HTTP client.

Model tersedia (5+)

gemma-3-4b-it
google/gemma-3-4b-it
Modality
Text
Context
131K
Output
~4K
Rate limit
Credit-metered
Qwen2.5-7B-Instruct
Qwen/Qwen2.5-7B-Instruct
Modality
Text
Context
131K
Output
~4K
Rate limit
Credit-metered
Qwen2.5-Coder-7B-Instruct
Qwen/Qwen2.5-Coder-7B-Instruct
Modality
Text
Context
131K
Output
~4K
Rate limit
Credit-metered
Meta-Llama-3.1-8B-Instruct
meta-llama/Llama-3.1-8B-Instruct
Modality
Text
Context
128K
Output
~4K
Rate limit
Credit-metered
phi-4
microsoft/phi-4
Modality
Text
Context
16K
Output
~4K
Rate limit
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 — $0.10 kredit. Data dari mnfst/awesome-free-llm-apis, freellm.net, terakhir di-sync 2 Sep 2026 — cek sumber untuk kondisi terbaru.

Ada berapa model gratis di Hugging Face?

5 model tercantum per 2 Sep 2026, termasuk gemma-3-4b-it, Qwen2.5-7B-Instruct, Qwen2.5-Coder-7B-Instruct.

Berapa rate limit Hugging Face?

Beda-beda per model, contoh: gemma-3-4b-it: Credit-metered; Qwen2.5-7B-Instruct: Credit-metered; Qwen2.5-Coder-7B-Instruct: Credit-metered. Limit lengkap per model, lihat tabel di atas.

Berapa context window maksimal di Hugging Face?

131K (gemma-3-4b-it).