API Keys
Manage your API keys for authentication.
Your API Key
Loading...
Click to copy
Use this key in the Authorization: Bearer header or X-API-Key header.
Quick Reference
# Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://api.swarmandbee.ai/v2",
api_key=your_key,
)
response = client.chat.completions.create(
model="atlas-9b",
messages=[{"role": "user", "content": "Analyze this deal..."}]
)
# cURL
curl -X POST https://api.swarmandbee.ai/v2/chat/completions \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{"model":"atlas-9b","messages":[{"role":"user","content":"What is DSCR?"}]}'