Nexus

Authentication

Authenticate every request with a secret API key in the Authorization header:

Authorization: Bearer nx_live_XXXXXXXXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  • Keys are shown once at creation. We store only a keyed hash, so lost keys cannot be recovered. Revoke and create a new one instead.
  • Keys can be scoped: models:read, tasks:read, tasks:write, chat.
  • Optional per-key rate limit (requests per minute), daily spend limit and IP allow-list (exact IPs or IPv4 CIDR ranges).
  • Never embed keys in browser or mobile apps. Call the API from your server.

Idempotency

Send an Idempotency-Key header (any unique string up to 100 characters) on POST requests. Retrying with the same key returns the original response instead of creating a duplicate task or charge. Reusing a key with a different body returns 409 idempotency_conflict.

Rate limits

Responses include X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Exceeding the limit returns 429 rate_limited.