Authentication
Every /v1 route needs an API key in the Authorization header. Keys look like sk-ms-…
Every route under /v1 needs an API key. Send it as a bearer token:
Two routes stay public: the service root / and the spec at /openapi.json.
Get a key
The team issues keys by hand today. No self-serve console exists yet. Ask the milliseconds.ai team for a key.
A key looks like sk-ms-{organization}-{random}. It belongs to one organization. You see the full key once, when the team issues it. Store it then. Only its hash is kept.
Keep the key secret. Hold it in an environment variable or a secret store, never in client-side code and never in a public repository. Ask the team to revoke a leaked key.
Send the key
OpenAI clients
Set the client’s API key to your sk-ms- key. Point base_url at https://api.milliseconds.ai/v1. The client then sends the right header itself.
When authentication fails
A revoked key can still work for up to one minute. The API caches each key verdict for that long.
Next
- Quickstart — your first call, with the header in place.
- Limits and rate limits — the per-organization request and token limits.
- Errors — every code the API returns.