API keys
Create key
Mint a bearer API key for the CLI, agents, and MCP; the key is returned once. Session only, so a leaked key cannot mint keys.
Authorization
The browser session cookie gpu_router_session only. Bearer keys are not accepted here.
Body
namestringrequiredResponses
201application/jsonThe new key. The key field is shown in this response only; later listings show the prefix.
Show response attributes
idstringrequirednamestringrequiredprefixstringrequiredkeystringrequiredThe full key, returned once. Send it as Authorization: Bearer <key>.
created_atstring<date-time>required401application/jsonUNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.
UNAUTHENTICATED403application/jsonDEMO_ACCOUNT_LIMITED: a demo account already has its maximum of API keys. CSRF_ORIGIN_MISMATCH as for any write.
DEMO_ACCOUNT_LIMITEDCSRF_ORIGIN_MISMATCH422application/jsonVALIDATION_ERROR: malformed body, or name is blank or longer than 100 characters after stripping surrounding whitespace. Nothing is stored.
VALIDATION_ERROR429application/jsonRATE_LIMITED (retryable): the signed-in user made more than GPU_ROUTER_RATE_PER_MINUTE mutating requests in the last minute. Nothing was changed.
RATE_LIMITED500application/jsonUnexpected failure: INTERNAL_ERROR.
INTERNAL_ERROR502application/jsonAUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).
AUTH_PROVIDER_REJECTED503application/jsonAUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).
AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLE