Docs menu
Platform

Authentication

Every request carries a Bearer API key. Keys are created, limited and revoked from your dashboard.

Send your key as a Bearer token. Keys start with sk-sluice-.

Authorization: Bearer sk-sluice-xxxxxxxxxxxxxxxxxxxxxxxx

Managing keys

Create & revoke
On the API keys page. Create one key per app or environment so you can revoke it in isolation.
Spend limits
Give a key a maximum spend. When it's reached, that key is refused (403) until you raise it — your other keys keep working.
Rotation
If a key leaks, revoke it and create a new one; nothing else needs to change but the env var.
Keep keys server-side
A key can spend your balance, so never ship it in browser or mobile code. Store it in an environment variable such as SLUICE_API_KEY and call Sluice from your backend.
The model list (GET /v1/models) is public; every other endpoint requires a key.