Llama 3.1 8B Instruct

128 000 context

Model ID

meta-llama/Meta-Llama-3.1-8B-Instruct

Use It in Python

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/Meta-Llama-3.1-8B-Instruct",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Don't have a key yet? See how to get one — no credit card needed for Hugging Face Inference.

Free Tier Limits (Hugging Face Inference)

Rate Limit
300 Requests / hour
Daily Limit
Capped by monthly credit, not a flat request count
Monthly Limit
$0.10/month in free routing credits (PRO: $2/month)