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.
Streaming through a gateway: three SSE dialects and the one boundary you cannot retry
Streaming fixes perceived latency, but after the first token a retry means double billing. Here are the three upstream event formats, what a gateway must translate, and how to resume a broken stream.
What is an AI API relay? The full path of one request to Claude and GPT
A relay is not just a proxy. Auth, routing, rewriting, retries, billing and logging — six gates per request. Here is why changing one base_url line is enough to switch models.
Calling GPT models through a gateway: parameters, limits and the bill
The request shape does not change between direct access and a gateway. What changes is parameter strictness, how rate limits are layered, and how retries show up on the invoice.