On this page
Compatibility
Responses API
POST /v1/responses with the Responses request shape, including streaming response.* events.
POST
/v1/responsesAPI key (JWT also resolves)Aliases: /responses and /api/v1/responses. Requests are translated to the native chat path and back, so billing, quotas and errors are identical to chat.
Request
curl -X POST https://api.relayrouter.org/v1/responses \ -H "Authorization: Bearer $RELAY_API_KEY" \ -H 'content-type: application/json' \ -d '{ "model": "deepseek-v4.1-flash-1017", "input": "hello", "instructions": "be terse", "max_output_tokens": 256 }'Response
{ "id": "chatcmpl-1bec8e1d-8c4a-4a0e-b099-a317f9ad20fd", "object": "response", "created_at": 1793232970, "model": "deepseek-v4.1-flash-1017", "status": "completed", "output": [ { "id": "msg_484614ae-0420-4116-9424-a0fbce06aef8", "type": "message", "role": "assistant", "status": "completed", "content": [ { "type": "output_text", "text": "Hello!", "annotations": [] } ] } ], "output_text": "Hello!", "usage": { "input_tokens": 22, "output_tokens": 16, "total_tokens": 38 }}