Operations
Errors, request IDs and retries
Errors use a JSON envelope with a stable code and request ID. Payload excerpts are not included.
| HTTP | Code | Client action |
|---|---|---|
| 400 | request_limit_exceeded | Non-retryable. Stay within the model limit: s1-pro three text questions; s1-fast and s1-vision one; the service does not split or drop questions. |
| 400 | invalid_request | Non-retryable. Correct the JSON schema or tier header, or stay within the model’s option limits and the per-model input-token limit (s1-fast 16,192, s1-pro 8,192 per question, s1-vision 16,192); an over-limit request returns a message that names the model you sent, the limit in force and a link to the input limits. Validation errors can include error.details, a list of field paths and messages. It does not repeat submitted values, but a path can contain names you chose, such as a question name. |
| 401 | invalid_api_key | Check key configuration and revocation state. |
| 402 | insufficient_credit | Review the account balance before retrying. |
| 403 | tier_not_allowed | Use a tier permitted by the key. |
| 403 | dpa_acceptance_required / terms_acceptance_required | Non-retryable until accepted. Accept the Data Processing Agreement or the current Terms in your dashboard, then send the request again. |
| 403 | model_access_restricted | Non-retryable. The account is not enabled for the requested model’s serving location. Choose another listed model or contact support to enable access. A model’s tier_availability describes its tiers, not access for every account or key; GET /v1/models does not expose per-key eligibility. |
| 404 | unknown_model | Refresh the live model catalogue. For accounts under Terms 1.6.0 or later (Terms 3.7), a text request with a missing, unknown or retired model id is answered by s1-pro in the same tier at the s1-pro price; the response shows model = s1-pro, a model_fallback object and the S1-Model-Fallback header. Image requests keep the error. Other accounts keep the 400/404/410 errors until they accept the current Terms in the dashboard. |
| 408 | request_timeout | The request body did not arrive within the upload deadline. Send the complete body promptly. Keep the same Idempotency-Key and body when retrying. |
| 409 | idempotency_conflict | Use a new key only for a deliberately new request. |
| 409 | idempotency_replay_unavailable | The attempt settled or its settlement is uncertain. A receipt is returned without replaying an answer or charging again; keep the same key until the outcome is clear. |
| 413 | payload_too_large | Stay within the size bounds: request body up to 6 MiB, state within each question’s input-token limit, and one PNG, JPEG or WebP image up to 4 MiB decoded and 2,000,000 pixels. Image format, decoded size and dimensions are validated before inference. |
| 422 | unsupported_modality | Choose a model that supports the requested modality. |
| 429 | rate_limit_exceeded | Wait for Retry-After before retrying. |
| 503 | model_unavailable / capacity_limit | Retry only after the documented wait or capacity issue clears. model_unavailable means the model that answers the requested id is currently unavailable. |
| 503 | network_capacity_exhausted | The requested network model version has no capacity. Follow Retry-After and keep the same key and body. If the message suggests an alternative model id, choosing it is a deliberate new request and may select a different version. |
| 503 | overloaded / service_unavailable / authentication_unavailable / api_key_service_unavailable / account_currency_unavailable / pricing_unavailable / idempotency_unavailable / idempotency_claim_expired / billing_unavailable | A required service is temporarily unavailable. Follow the response’s retryable field and Retry-After, with backoff. Keep the same key and body while the outcome is uncertain; an unavailable billing or idempotency service is not proof that an earlier attempt was uncharged. |
| 503 | key_store_unavailable / settings_unavailable / balance_unavailable / usage_unavailable / invite_unavailable | An account or dashboard operation is temporarily unavailable. Wait before retrying; check the current account state before repeating a change. |
| 504 | inference_timeout | When confirmed uncharged, retry with the same key and body. If settlement is uncertain, keep the same key; do not create a second request. |
For 5xx errors, follow the response’s retryable field and any documented guard condition. An EU request never fails over outside the EU. Use the response request ID when contacting support.
Inference deadlines
An ordinary request currently has up to 5 seconds of inference time. On models with a raised input limit, a request whose serialized state is over 16 KiB has 20 seconds by default. reax-1.3 has a model-specific 30-second inference deadline, including for long input. These are current values and can change. Your total wait can be longer, because of upload, image download and settlement, so set your client timeout above them. If your client times out, keep the same Idempotency-Key until the outcome is clear.
Rate limits
- Accounts with credit (any top-up): 1,200 requests per minute per API key and 1,200 per account by default. One request is one API call, even if it holds several questions.
- Need more? We raise per-account limits for high-volume workloads. Write to info@productivity-boost.com.
- Free tier (an account that has not topped up yet): 60 requests per minute, 2 requests in parallel, 2,000 decisions per day. Any top-up lifts these.
- Over the limit: HTTP 429
rate_limit_exceededwith aRetry-Afterheader. Wait that long, then retry. Rejected requests are not charged. - During capacity spikes the API may briefly queue requests or answer 503 with
Retry-After; that is not counted as usage.
The machine-readable contract is /openapi.json.
https://api.system1models.ai keeps working.