Hugging Face

Hugging Face · Meta-Llama-3.1-8B-Instruct

🟢 290ms Credit-metered 📏 128K 👁️ Vision

🛡️ 🛡️ Free Tier Policy & Rate Limits

Monthly Serverless Credit No Credit Card Email Only · No ID Zero Unexpected Bill
Context Window 128K
Rate Limit RPM Standard Concurrency Limit
Daily Quota & Reset 0.10 USD Monthly Inference Quota · Monthly Reset on 1st
Auth & Card Requirement No Card Needed
Supported Capabilities:
💻 Coding & FIM 🖼️ Image Gen & Vision 📝 Text Generation 👁️ Multimodal Vision

📋 Core Endpoint & Model Parameters

OpenAI API Compatible
Base URL
https://router.huggingface.co/v1
Model ID
meta-llama-3-1-8b-instruct
🟢【免绑卡注册】直接获取官方 API Key
👉 30s Quick Link: Hugging Face Console

💡 Caveats & Rate Limits

🎯 Official Free Tier Endpoint · 128K Context · Credit-metered

📋 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://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "meta-llama-3-1-8b-instruct",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'
from openai import OpenAI

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

response = client.chat.completions.create(
    model="meta-llama-3-1-8b-instruct",
    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://router.huggingface.co/v1",
  apiKey: "YOUR_API_KEY"
});

const stream = await client.chat.completions.create({
  model: "meta-llama-3-1-8b-instruct",
  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://router.huggingface.co/v1",
  "openAiApiKey": "YOUR_API_KEY",
  "openAiModelId": "meta-llama-3-1-8b-instruct"
}
AUTHORITATIVE

Benchmark Overview

Authoritative Measured Benchmark Signals
Intelligence 6.9/100

General reasoning and instruction following

Coding 5.4/100

Programming and code generation

Agentic 0.5/100

Tool use and multi-step tasks

Speed 141 tok/s

Observed generation speed

Context 128K

Maximum listed context window

✓ ✓ Copied