TensaHub › Groq

Groq · llama-3.3-70b-versatile

API des Modells llama-3.3-70b-versatile bei Groq, Preis beim Anbieter. Beispiele in curl, Python und JavaScript, Live-Test.

Im Katalog testen und bewerten

Free tier, very low latency.

Typ
Modell
Anbieter
Groq
Modell-ID
llama-3.3-70b-versatile
Preis
Kostenlos + bezahlt
Zugang ohne Schlüssel
Nein
Schlüsselvariable
GROQ_API_KEY
Basis-URL (OpenAI-kompatibel)
https://api.groq.com/openai/v1
Eingaben
Text
Entwicklerbewertung
Noch nicht bewertet
Dokumentation
https://console.groq.com/docs/rate-limits

Codebeispiele

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":"Hallo, stell dich in einem Satz vor."}]}'

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": "Hallo, stell dich in einem Satz vor."}],
)
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: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)

Integrationscode erzeugen →

Beliebte Suchen

Häufige Fragen

Ist die API von Groq · llama-3.3-70b-versatile kostenlos?

Groq · llama-3.3-70b-versatile bietet ein begrenztes Gratiskontingent; darüber hinaus ist die Nutzung kostenpflichtig.

Wie rufe ich Groq · llama-3.3-70b-versatile aus meinem Code auf?

Groq · llama-3.3-70b-versatile bietet eine OpenAI-kompatible API unter https://api.groq.com/openai/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: llama-3.3-70b-versatile. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.