BLUN
Kostenlos starten Login
Mit BLUN chatten
BLUN Docs

Python

Nutze BLUN fuer Backoffice, Datenjobs und interne Automationen in Python.

Beispiel

import os, requests

res = requests.post(
  "https://api.blun.ai/v1/chat/completions",
  headers={"Authorization": f"Bearer {os.environ['BLUN_API_KEY']}"},
  json={"model": "queen", "messages": [{"role": "user", "content": "Hallo"}]},
  timeout=60,
)
print(res.json())

Naechste Schritte