TensaHub › Hugging Face Inference

Llama-3.3-70B-Instruct · Groq

API for the model meta-llama/Llama-3.3-70B-Instruct:groq at Hugging Face Inference, $0.59 / $0.79 per million tokens, context 131,072 tokens. curl, Python and JavaScript samples, live testing.

Test and rate in the catalog

meta-llama/Llama-3.3-70B-Instruct served by Groq through the Hugging Face router.

Type
Model
Provider
Hugging Face Inference
Host
Groq
Model ID
meta-llama/Llama-3.3-70B-Instruct:groq
Pricing
Paid
Input / output price
$0.59 / $0.79 per million tokens
Keyless access
No
Key variable
HF_TOKEN
Base URL (OpenAI-compatible)
https://router.huggingface.co/v1
Context
131,072 tokens
Inputs
Text
Features
Tool calling
Response time
First token 330 ms · 215 tokens/s · uptime 100%
Developer rating
Not rated yet
Documentation
https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct

Code samples

cURL

curl https://router.huggingface.co/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HF_TOKEN" \
  -d '{"model":"meta-llama/Llama-3.3-70B-Instruct:groq","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
    model="meta-llama/Llama-3.3-70B-Instruct:groq",
    messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
  model: 'meta-llama/Llama-3.3-70B-Instruct:groq',
  messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)

Generate the integration code →

Popular searches

Frequently asked questions

Is the Llama-3.3-70B-Instruct · Groq API free?

No: Llama-3.3-70B-Instruct · Groq is a paid API ($0.59 / $0.79 per million tokens).

How do I call Llama-3.3-70B-Instruct · Groq from my code?

Llama-3.3-70B-Instruct · Groq exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: meta-llama/Llama-3.3-70B-Instruct:groq. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.

What is the context window of Llama-3.3-70B-Instruct · Groq?

Llama-3.3-70B-Instruct · Groq accepts up to 131,072 tokens of context (prompt and history).

What are the alternatives to Llama-3.3-70B-Instruct · Groq?

Similar APIs listed in the catalog: Llama-3.2-3B-Instruct · Parasail, Llama-3.1-8B-Instruct · Amazon Bedrock, Llama-3.1-8B-Instruct · CoreWeave, Llama-3.1-8B-Instruct · DeepInfra, Llama-3.1-8B-Instruct · Groq.

Alternatives