it's free*.ai

Hugging Face

Hugging Face Inference Providers は多くのホストの前に立つルーターです。1つの HF_TOKEN、1つの router.huggingface.co/v1 URL、無料アカウントには月$0.10のクレジット。オンラインのルーターには135のモデルidが並び、「無料の7個」という固定リストではありません。

Hugging Face Inference Providers は多くのホストの前に立つルーターです。1つの HF_TOKEN、1つの router.huggingface.co/v1 URL、無料アカウントには月$0.10のクレジット。オンラインのルーターには135のモデルidが並び、「無料の7個」という固定リストではありません。

ルーターはプロバイダを選んでくれます。モデルidに :provider を付けると1社に固定でき、実際に誰が呼び出しを実行したかで驚かされません。OpenAI互換パスはチャットのみ。埋め込みなどはHugging Faceクライアント経由で行います。

無料モデル
135
最大コンテキスト
131K
無料プラン
月$0.10クレジット
条件
メール登録のみ、カード不要

エンドポイント

ベースURLhttps://router.huggingface.co/v1
環境変数HF_TOKEN
レート制限$0.10 of credits per month

コード例

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)

知っておくべきこと

無料で利用できるモデル135