Create an OpenRouter chat completion
Changed onForward OpenRouter requests and return its response, status code, or event stream unchanged. OpenRouter fields such as provider and reasoning are preserved. Supply your Respan key in Authorization and your OpenRouter key in x-openrouter-api-key; this endpoint requires your own OpenRouter key and does not use Respan gateway credits.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/openrouter/v1/chat/completions
- AuthHTTP bearer
Headers
Your OpenRouter API key. Authorization carries the Respan API key on this operation.
Request body
Response
OpenRouter response or event stream.
Changes
- breaking
request body became required
- breaking
the
request property's minItems was increased to1 - info
api operation id
openRouterGateway_openrouter_native_chat_completionsremoved and replaced withopenrouter_native_chat_completions - info
api tag
OpenRouter Gatewayadded - info
api tag
openRouterGatewayremoved - info
added the media type
text/event-streamfor the response with the status
- breaking
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info