stogas

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 400 instead of being forwarded.
  • The current public surface accepts text content only.
  • stream: true uses the endpoint's normal Server-Sent Events format.
  • OpenAI max_tokens is accepted as an alias for max_completion_tokens on Chat Completions.
  • Anthropic deployments reject requests that set both temperature and top_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:

StatusMeaning
400Invalid or unsupported request
401Missing or invalid API key
402 / 403Billing or key policy rejected the request
413Request body too large
429Stogas or provider rate limit
503No provider route was available
504Upstream request timed out
529Provider 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.

On this page