it's free*.ai

Hugging Face

Inference Providers: thousands of open models with monthly credits.

Hugging Face Inference Providers is a router in front of many hosts. One HF_TOKEN, one router.huggingface.co/v1 URL, and $0.10 of credit a month on the free account. The live router lists 135 model ids, not a fixed free seven.

The router picks a provider for you. Append :provider to a model id to pin one, so you are not surprised by who actually ran the call. The OpenAI-compatible path is chat only; embeddings and the rest go through the Hugging Face client.

Free models
135
Max context
131K
Free tier
$0.10 of credits per month
Requirement
Email account, no card

Endpoint

Base URLhttps://router.huggingface.co/v1
Env varHF_TOKEN
Rate limit$0.10 of credits per month

Code examples

npm install openai
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://router.huggingface.co/v1',
  apiKey: process.env.HF_TOKEN
})

const response = await client.chat.completions.create({
  model: 'zai-org/GLM-5.3-Flash',
  messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})

console.log(response.choices[0].message.content)

Worth knowing

Models you get for free135