API Docs Blog
test API Anmelden
DSGVO-konform

LLM API für Entwickler

Einfache REST API mit Streaming-Antworten. Gehostet in Deutschland, volle DSGVO-Konformität, keine Logs.

🇩🇪

Gehostet in Deutschland

Alle Daten auf deutschen Servern. Volle EU-Datensouveränität.

🔒

Keine Logs

Ihre Prompts werden nicht gespeichert. Maximale Privatsphäre.

Streaming API

Server-Sent Events für Echtzeit-Antworten. Token für Token.

Schnellstart

Eine einfache cURL-Anfrage genügt.

bash
curl -X POST https://privatai.com/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Hello, how are you?"}]}'

Antwort (Server-Sent Events, OpenAI-Format)

Kompatibel mit OpenAI- und Grok-Clients: nur Basis-URL austauschen.

json
data: {"id":"chatcmpl-...","object":"chat.completion.chunk","created":...,"model":"...","choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}
data: {"id":"chatcmpl-...","choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}
data: {"id":"chatcmpl-...","choices":[{"index":0,"delta":{"content":" I'm"},"finish_reason":null}]}
data: {"id":"chatcmpl-...","choices":[{"index":0,"delta":{},"finish_reason":"stop"}],"usage":{"prompt_tokens":12,"completion_tokens":8,"total_tokens":20}}

Konversation mit Kontext

Für mehrteilige Gespräche senden Sie den Verlauf mit.

bash
curl -X POST https://privatai.com/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "messages": [
    {"role": "user", "content": "What is the capital of Germany?"},
    {"role": "assistant", "content": "The capital of Germany is Berlin."},
    {"role": "user", "content": "What is the population?"}
  ]
}'

Nutzung prüfen

bash
curl https://privatai.com/api/v1/usage \
  -H "Authorization: Bearer YOUR_API_KEY"

Einfache Preise

Wählen Sie den Plan, der zu Ihnen passt.

Enterprise

Individuell
  • Alles aus Pro
  • Mehrere Plätze / Team-Zugang
  • Dedizierte Infrastruktur
  • Individuelle Modell-Anpassung
  • Prioritäts-Support
Maßgeschneiderte Lösungen für Ihr Unternehmen.
Kontakt aufnehmen

artur@privatai.com