For AI agents, the documentation index lists all pages. Append .md to a documentation URL for Markdown, or request text/markdown.

Skip to Content
spare inference

Create a response

OpenAI Responses format, streaming included.

1 min readEdit this page
POST
/v1/responses

OpenAI Responses format. Send stream: true for Server-Sent Events (response.created, response.output_text.delta, response.completed, …). The x-bitrouter-request-id response header identifies the request for settlement.

Authorization

x-api-key<token>

x-api-key: <key>. Anthropic SDKs send this.

In: header

Request Body

application/json

OpenAI Responses API request.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/responses" \  -H "Content-Type: application/json" \  -d '{    "input": true  }'
{}

How is this guide?