How it works
Set up a routing rule that targets a provider in the other format, for example routing OpenAI-format traffic to ananthropic provider. From then on, the gateway:
- Translates the request from the OpenAI Responses API to the Anthropic Messages API, or the reverse.
- Translates the response back into the format your client expects.
- Translates streaming events the same way, so streaming keeps working.
What’s translated
The common shape of a chat request carries over in both directions:- Messages and the system prompt.
- The max-tokens setting.
- Tools, tool choice, and tool results.
- Streaming, temperature, and top-p.
top_k is one, so a translated request runs without it.
Endpoints
Image generation is a passthrough to an OpenAI-format provider, so it isn’t translated and can’t be
routed to an
anthropic upstream. Streaming image generation, the gpt-image partial-images mode,
isn’t supported: send the request without stream.
Keys, usage limits, model access, and guardrails apply on all three endpoints.
Limits
- Content types beyond text are not translated. A request carrying an image or document block across formats fails rather than being silently sent without it.
- The provider-specific tools in the OpenAI Responses API, web search, file search, and code interpreter, have no Anthropic counterpart and are not translated.
- The
azure_openaiformat is wire-compatible withopenai, so traffic between them is never translated.