Hugging Face

Hugging Face Spaces

🟢 282ms Daily auto-refreshed free quota 📏 128k 30 RPM

🛡️ 🛡️ Free Tier Policy & Rate Limits

Monthly Serverless Credit No Credit Card Email Only · No ID Zero Unexpected Bill
Context Window 128k
Rate Limit RPM 30 RPM
Daily Quota & Reset 1000 RPD · Monthly Reset on 1st
Auth & Card Requirement No Card Needed
Supported Capabilities:
📝 Text Generation

📋 Core Endpoint & Model Parameters

OpenAI API Compatible
Base URL
https://huggingface.co/spaces
Model ID
nvidia-a100-zerogpu
Alternate Model Identifiers
🟢 [Direct HF Creation] Select ZeroGPU hardware when creating Space to enjoy lifetime free A100 compute
👉 Quick Link: Create Space on Hugging Face

💡 Caveats & Rate Limits

🎯 Top open-source ecosystem perk · Dynamic free Nvidia A100 [40GB/80GB] compute allocation · One-click run for WebUIs

📋 Free Tier Quota Rules and Constraints

  • Sign in with Hugging Face account for free monthly serverless credits
  • Access thousands of community embeddings, classifiers and models
  • No credit card required, ideal for light testing

🛡️ Zero-Billing Protection and Risk Prevention

Returns 429 when monthly free quota is used. Zero billing risk.

Quick Integration Code and Client Setup

🍒 Connect Cherry Studio
curl https://huggingface.co/spaces/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "nvidia-a100-zerogpu",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://huggingface.co/spaces",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="nvidia-a100-zerogpu",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True
)

for chunk in response:
    content = chunk.choices[0].delta.content or ""
    print(content, end="", flush=True)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://huggingface.co/spaces",
  apiKey: "YOUR_API_KEY"
});

const stream = await client.chat.completions.create({
  model: "nvidia-a100-zerogpu",
  messages: [{ role: "user", content: "Hello!" }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content || "");
}
{
  "apiProvider": "openai",
  "openAiBaseUrl": "https://huggingface.co/spaces",
  "openAiApiKey": "YOUR_API_KEY",
  "openAiModelId": "nvidia-a100-zerogpu"
}
✓ ✓ Copied