Reasoning effort is not portable across models: avoiding compatibility 400s at a gateway
GPT models do not accept the same reasoning settings. A gateway needs model-level capability data, deterministic request normalization, and error isolation that separates one model's bad parameter from a channel outage.
Q&A: HTTP 200 but the answer stops halfway—check finish_reason and stop_reason first
A successful status code means the request was processed, not that the text ended naturally. Read the stop reason before continuing, running a tool, raising a limit, or retrying.
Q&A: should you retry a 429, a 503, or an insufficient-balance error?
Read error.code before acting. A 429 may mean throttling, exhausted credits, or a spend limit, while a 503 usually means temporary model overload; each needs a different response.
Case study: a successful top-up still showed insufficient balance because the cache was stale
A real investigation found that a successful database write did not immediately change the read path; a stale balance cache kept pre-authorization rejecting requests.
Q&A: why does a video request return 200 but no video URL?
Video generation is asynchronous. A successful submission only gives you a task_id; beginners must save it, poll the status, and distinguish accepted from completed.
Case study: isolate one model after a regional 403, not the whole channel
A production investigation showed that model availability can differ inside one upstream channel. The reusable fix is per-model verification and isolation.
Which API errors are safe to retry: one list, one formula, three exceptions
Rate-limit 429s, 5xx errors and timeouts can be retried automatically; quota-type 429s and 4xx request errors cannot. Honor Retry-After before any backoff formula, and think about double billing before retrying a timeout.
Q&A: 429 Too Many Requests — who exactly is rate-limiting you
A 429 can come from upstream limits, gateway limits, or a spend cap. Read Retry-After and the rate-limit headers first to find the bottleneck, then decide: wait, slow down, or top up.