Compatibility Notes
The small set of Stogas behaviors that differ from a direct provider API.
Stogas supports OpenAI-compatible Chat Completions and Responses requests across cataloged OpenAI and Anthropic models. The operation pages are the source of truth for accepted fields.
Routing
Choose a public model ID from /v1/models. If a slug is available from more than one provider, use provider or its rules alias:
{
"provider": { "only": ["anthropic"] }
}Do not send both fields. Routing hints are removed before upstream dispatch.
Important differences
- Requests are strict: unknown top-level fields return
400instead of being forwarded. - The current public surface accepts text content only.
stream: trueuses the endpoint's normal Server-Sent Events format.- OpenAI
max_tokensis accepted as an alias formax_completion_tokenson Chat Completions. - Anthropic deployments reject requests that set both
temperatureandtop_p. inference_geo: "global"uses standard multi-region pricing;inference_geo: "us"selects eligible US-only deployments.- Provider-specific cache controls, service tiers, and hosted tools are accepted only where the catalog can route and bill them correctly.
See Model Tools for supported function, MCP, and provider-hosted tools.
Errors
Errors use an OpenAI-compatible error object. Common status codes are:
| Status | Meaning |
|---|---|
400 | Invalid or unsupported request |
401 | Missing or invalid API key |
402 / 403 | Billing or key policy rejected the request |
413 | Request body too large |
429 | Stogas or provider rate limit |
503 | No provider route was available |
504 | Upstream request timed out |
529 | Provider overloaded |
Provider validation messages may be returned when useful. Provider credentials, topology, and internal failures are never exposed.
Cancellation and billing
Disconnecting does not guarantee that the upstream provider stopped. A request may still be billed for usage the provider reports after the client disconnects. Streaming responses may remain open long enough to receive final usage needed for accurate settlement.
Responses POST
Create an OpenAI-compatible Responses API response. The gateway resolves the requested model and route through the compiled Stogas catalog, applies deployment facts such as implied service tier, rejects unsupported parameters, and then relays the request to the configured provider.
API Security
Authentication, browser access, request limits, and optional diagnostics.