Keys & errors

Keys, errors and queueing.

Authenticate with a bearer key, fix each error code, and know what happens when traffic spikes.

Authentication and key lifecycle

Pass your bearer key in the Authorization header:

HTTP
Authorization: Bearer arn_live_...
  • Reveal once: Plaintext secrets are displayed only once at creation and stored as cryptographic hashes (HMAC-SHA256).
  • One key per integration: Issue a dedicated key for each service, environment, or third-party client so a leak can be revoked without disrupting other workloads.
  • Rotate: Rotating a key in Dashboard Keys issues a replacement secret with the same name and controls. Choose a grace period (none, 1 hour, 24 hours or 7 days): the previous secret keeps working until it ends, so you can update every worker without downtime.
  • Revocation: Revoking a key removes it from your account, and the API stops accepting it within 30 seconds.

Optional key controls

Accounts have no concurrency cap. To put guardrails on one key, such as limiting a third-party client to certain models or giving a contractor a key that expires, set these controls in Dashboard Keys:

Control Default When you set it
allowed_models Unset (all online models) Restricts the key to listed model IDs only.
expires_at Unset (no expiry) Automatically deactivates the key at the specified UTC timestamp.

Queueing under load

Arnict does not cap how many requests an account can have in flight. When demand spikes, incoming requests wait in a queue rather than failing for load.

  • Set sensible client read timeouts for long-context requests and streaming responses.
  • Use streaming (stream: true) on long prompts so tokens arrive as soon as generation starts.
  • Watch live service status and active incidents on status.arnict.com.

Error codes

Error responses follow the standard OpenAI JSON envelope and include an X-Request-ID header:

JSON
{
  "error": {
    "message": "Human-readable summary",
    "type": "invalid_request_error",
    "code": "insufficient_quota"
  }
}
HTTP status Common cause Recommended fix
400 Bad Request Malformed JSON, invalid parameter range, or context window exceeded Check messages, max_tokens, and total prompt size against the model's context limit on /models.
401 Unauthorized Missing, mistyped or revoked API key Verify Authorization: Bearer ... has no leading/trailing spaces, or mint a new key in Dashboard Keys.
403 Forbidden / key_expired The key is past its expires_at Create a new key, or remove the expiry in Dashboard Keys.
403 Forbidden / model_not_allowed The model is outside the key's allowed_models Add the model to the key's list in Dashboard Keys, or use another key.
403 Forbidden / account_suspended The account is suspended Reply to the account notice, or email support@arnict.com.
404 Not Found Wrong URL path, or a model ID that is unknown or not yet online Confirm the endpoint is https://api.arnict.com/v1/chat/completions and the model is online on /models.
429 Too Many Requests / insufficient_quota Spendable prepaid balance is zero or negative Check your balance and add credit in Dashboard Billing.
429 Too Many Requests / rate_limit_exceeded Too many attempts in a short window, usually a wrong key retried Check the key, then retry after the Retry-After interval.
500 / 502 / 503 Transient serving or upstream error Retry with exponential backoff and jitter; check status.arnict.com if errors persist.

Reporting a failed request

Use Report this request directly inside Dashboard Usage to flag an anomalous call using operational metadata (request_id, model, HTTP status, error code, UTC timestamp, TTFT, and total latency). Never paste prompt text or API keys.

Support API

Automated systems can open a support case with an API key. The case is filed under your account's registered email, and replies go there.

Shell
curl https://arnict.com/api/support/v1/reports \
  -H "Authorization: Bearer $ARNICT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "category": "api",
    "subject": "Nightly batch saw 503s",
    "message": "Between 02:00 and 02:10 UTC our batch saw repeated 503 responses.",
    "request_id": "req_0123456789abcdef0123456789abcdef"
  }'
Field Required Notes
message yes 10 to 3,500 characters. Describe the symptom; never include prompts, replies or keys.
category no api, billing, account, models or other (default).
subject no Up to 140 characters.
request_id no The X-Request-ID of a request from your own account in the last 90 days. Its metadata is attached for us.

A successful call answers 202 Accepted with {"id": "SUP-…", "object": "support_report", "status": "received", "received_at": "…"}. Quote the id if you write to us.

Errors use the same envelope as the inference API. A missing, revoked or unknown key answers 401 invalid_api_key; an expired key 403 key_expired. A bad field answers 400 and names it in param.

Each account can file 30 reports an hour and 200 a day; beyond that the route answers 429 rate_limit_exceeded with Retry-After. This limit applies only to support reports, never to inference.