Skip to main content

Responses

POST 

/gateway/v1/responses

OpenAI-compatible Responses API through a gateway router. Set model to the router's name: the router picks one of its models, Emissary calls it with the router's provider key, and returns the provider's answer in Responses format. With stream: true the answer streams as server-sent events. If the picked model's provider fails, the router's default model serves instead.

With the OpenAI SDK (or Codex), set the base URL to https://api.withemissary.com/gateway/v1 and the API key to your Emissary API key. The gateway takes the key in X-API-Key or as a bearer token (Authorization: Bearer <key>), which is how the OpenAI SDK sends it.

Request​

Responses​

The provider's answer, in Responses format