Rate limits & isolation
Understand fair admission, overload, and safe retries.
Queue, keepalive and overload#
Queueing is limited by a global request count, bytes, aggregate memory budget and maximum ten-minute wait. Waiting requests are rechecked against account access and API-key revocation before dispatch. JSON clients receive whitespace keepalives and SSE clients receive comment keepalives every fifteen seconds while queued. If global memory, queue or wait bounds are exhausted, the gateway returns a capacity/dispatch error and Retry-After. Disconnect or cancellation before dispatch removes the waiting request; generation is never automatically retried.
user_id isolation#
An optional user_id is a business-side isolation label, not an account identity or authorization credential. It is limited to512 UTF-8 bytes. DarkSeek removes any caller-supplied cache_salt and creates a private cache namespace from the authenticated account plus user_id, so another account cannot select or reuse that prefix. API-key changes for the same account preserve its chosen user namespace. Browser, cookie, prompt or personal identity data do not belong in user_id.
Concurrency terminology#
Execution slots, queued HTTP handlers and account request limits are different quantities. The public account endpoint reports the active model execution count for this native process plus the owner’s queued count. A larger number of requests accepted by the queue does not increase actual concurrent GPU decoding. The API is a single central service, not a quota reservation or capacity guarantee.
Cancellation#
Cancel by closing the HTTP request or by authenticated request ID. Queued requests are registered for account-scoped cancellation before waiting and do not reach the model if cancelled. Once dispatched, the gateway sends a per-request engine abort and preserves measured usage. Backend cancellation and privacy isolation must be verified on the exact runtime; cancellation never refunds already consumed tokens.