Unified mode lets you call any LLM provider using the OpenAI SDK. Gateway AI translates your request into each provider’s native format and translates the response back. You use one SDK, one API shape, and switch models by changing a string.
POST /v1/chat/completions requestmodel field tells the gateway which provider and model to useUse the provider/model format:
For well-known models, you can omit the provider prefix:
So model="claude-sonnet-4-6" works the same as model="anthropic/claude-sonnet-4-6".
For any model name that doesn’t match these prefixes, use the explicit provider/model format.
Point the OpenAI SDK at your gateway’s /v1 endpoint:
The gateway handles the translation between OpenAI’s API format and each provider’s native format:
Unified mode translates the most common features. Some parameters and features are not available for all providers:
Parameters marked ”—” are silently dropped when routing to that provider. No error is returned.
For full provider feature support, use Native Mode.