Exit Terminal

Authentication

All requests must include an API key. Generate one from the Account panel on the main app, then paste it here to make the examples copy-ready.

Authorization: Bearer sk-sc-your-live-key

Tiers & Quotas

Access policy and credit system overview.

Admin Account (yaeger)
Unlimited
100% free unmetered access across all deployed models.
Non-Admin Accounts
Pay-As-You-Go
0 free daily quota. Requires paid credit packs ($1, $5, $20).

Credit System

Credits are purchased via Stripe and applied server-side. The docs intentionally do not expose any enterprise Azure credit endpoints.

Core Endpoints

POST/api/v1/chat/completions

OpenAI-compatible completions endpoint. Automatically handles routing, memory, and credits.

curl https://swarmconnect.site/api/v1/chat/completions \
  -H "Authorization: Bearer sk-sc-your-live-key" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
GET/api/usage

Returns your current daily usage and remaining requests (per-user if signed in, otherwise per-IP).

GET/api/v1/memory

Chat persistence layer used by the web UI. Programmatic usage is optional.

POST/api/payments/create-checkout-session

Create a checkout redirect for $1, $5, or $20 credit packs.

curl https://swarmconnect.site/api/payments/create-checkout-session \
  -H "Content-Type: application/json" \
  -d '{"amount": 5}'
GET/api/v1/pricing

Returns average request pricing per model (40% markup over Azure token cost).

GET/api/metrics

Server-level provider telemetry (primarily for admins/operators). For user limits, use /api/usage.