SalpXXAPI News
AI News 4 min read

OpenAI API outage postmortem: a relay should not treat retries as resilience

OpenAI's November 21 postmortem describes a broad API and ChatGPT incident caused by maintenance failure in read replicas. API users and relays should classify errors, route safely, and observe billing before retrying.

The conclusion first

On November 21, OpenAI published a postmortem for a broad API and ChatGPT error event. The window was 1:48–5:21 PT, and the peak failure rate reached 75% for both paid and free ChatGPT. OpenAI said the incident began when read replicas used by the PostgresDB service behind its Primary API failed at the same time during maintenance. Those replicas carried critical request paths, including authentication and service-to-service authentication.1

The practical lesson is not “retry more.” It is: classify whether an error is temporary capacity pressure, an account limit, or a provider-wide incident before choosing to wait, fail over, or stop. A relay must also make upstream error mapping, refunds, idempotency, and fallback routing observable and auditable.

What the official postmortem says

OpenAI says it paused similar maintenance, reduced connection churn, added a percentage-based traffic shift away from replicas, and brought new replicas online in the same region. Planned work includes maintenance reviews, hot standby capacity, automation for recovering replica lag, and stronger redundancy and fail-safe mechanisms.1

This kind of incident can affect many models at once while model names, keys, and client code remain correct. Looking at one response can make an outage look like a model problem. Comparing the time window, cross-model failure rate, and provider status is more useful.

Do not use one retry policy for every error

OpenAI's error-code guide separates the relevant cases:2

  • 429 rate limit: requests are arriving too quickly. Pace traffic and follow Retry-After; without it, use exponential backoff with jitter.
  • 429 billing or quota limits: examples include credit_balance_exhausted, organization_spend_limit_exceeded, and project_spend_limit_exceeded. Retrying cannot restore access; credits or limits must be fixed first.
  • 503 model overload: service_unavailable_error with server_is_overloaded means the model temporarily lacks capacity. Wait for Retry-After, or increase the delay gradually when it is absent.
  • 500 server error: a short wait and retry may help, while the status page should be checked; persistent failures need a useful incident record.
  • 401, 403, and 404: check the key, organization, region, model, and endpoint before retrying.

A relay that turns every 4xx and 5xx into “please retry later” can make users burn requests when their balance is empty, create retry storms during overload, and erase the evidence operators need.

Four resilience layers for a relay

1. Error classification

Keep the upstream HTTP status, provider error type, error code, and request ID. Show a clear conclusion to the user, while retaining searchable fields for operations. At minimum distinguish malformed input, authentication, user quota, rate limit, upstream overload, and provider-wide failure.

2. Retry policy

Retry only errors that are plausibly temporary. Set a maximum count, total deadline, and random jitter. Once a stream has started, do not blindly replay the whole request: it can duplicate billing or tool execution. Side-effecting tool calls should use an idempotency key.

3. Routing and degradation

When a model has multiple routes, limited failover can use health, recent success rate, and latency. Failover must not bypass user groups, pricing, or regional restrictions. When no safe route exists, say that the upstream is unavailable instead of pretending that the model does not exist.

4. Billing and audit

Record the reservation before submission, final usage after success, and refund or release after failure. Link request ID, task ID, model, route, status, and refund result. Then a support answer to “was I charged?” can be verified instead of inferred from a generic 500.

What API users can do today

  1. Separate 429 throttling, 429 balance errors, 503 overload, and 500 server errors in client code.
  1. Use backoff for throttling and overload; stop automatic retries for balance, spend-limit, quota, and authentication failures.
  1. Prepare a fallback model or provider for critical work, after checking parameter, price, and data-policy compatibility.
  1. Save the model, timestamp, status, error code, and request ID for every failure, then compare them with the provider timeline.
  1. Use sensible timeouts for video, image, and tool calls; preserve asynchronous task IDs so reconnecting does not submit duplicates.

Resilience is not replaying a failed request forever. It is making every failure classifiable, billable, traceable, and recoverable.

Advice for SalpX users

When calling through a relay, first check whether it exposes error codes, model availability, billing and refunds, and route health. If several models fail together, save the response and inspect the status page instead of refreshing or topping up repeatedly. Change configuration only after confirming that the cause is your key, group, balance, or request.

For operators, the November 21 postmortem reinforces one point: reliability is not the average success rate of one model. It is the whole chain of provider incidents, routing, retries, billing, and communication.

1: OpenAI Status, “Elevated Errors on API and ChatGPT”, November 21, 2026: https://status.openai.com/incidents/01JMYB602A6H2E04Y1497J434X/write-up 2: OpenAI Developers, “Error codes”: https://developers.openai.com/api/docs/guides/error-codes

Sources & attribution

This article references the public materials listed below. Analysis and wording are SalpX's own; quoted material remains the property of its original authors and publishers.

  1. Elevated Errors on API and ChatGPT — OpenAI Status · accessed 2026-11-22Note:OpenAI's official postmortem for the November 21 API and ChatGPT incident, covering impact, root cause, and corrective actions.
  2. Error codes — OpenAI Developers · accessed 2026-11-22Note:OpenAI's official error-code guide, distinguishing rate limits, quota failures, server errors, and model overload.

One key for Claude, GPT and 50+ models

The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.