TensaHub › Groq

Groq · llama-3.3-70b-versatile

API for the model llama-3.3-70b-versatile at Groq, pricing at the provider. curl, Python and JavaScript samples, live testing.

Test and rate in the catalog

Free tier, very low latency.

Type
Model
Provider
Groq
Model ID
llama-3.3-70b-versatile
Pricing
Free + paid
Keyless access
No
Key variable
GROQ_API_KEY
Base URL (OpenAI-compatible)
https://api.groq.com/openai/v1
Inputs
Text
Developer rating
Not rated yet
Documentation
https://console.groq.com/docs/rate-limits

Code samples

cURL

curl https://api.groq.com/openai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $GROQ_API_KEY" \
  -d '{"model":"llama-3.3-70b-versatile","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://api.groq.com/openai/v1", api_key=os.environ["GROQ_API_KEY"])
r = client.chat.completions.create(
    model="llama-3.3-70b-versatile",
    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://api.groq.com/openai/v1', apiKey: process.env.GROQ_API_KEY })
const r = await client.chat.completions.create({
  model: 'llama-3.3-70b-versatile',
  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 Groq · llama-3.3-70b-versatile API free?

Groq · llama-3.3-70b-versatile offers a limited free tier; beyond it, usage is paid.

How do I call Groq · llama-3.3-70b-versatile from my code?

Groq · llama-3.3-70b-versatile exposes an OpenAI-compatible API at https://api.groq.com/openai/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: llama-3.3-70b-versatile. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.