Responses

OpenAI's newer Responses API, passed through unchanged.

POSThttps://your-instance.com/v1/responses

The Responses format takes a single input rather than a message array, and returns structured output items. Use it if you have already adopted it upstream; otherwise chat completions covers the same ground.

curl https://your-instance.com/v1/responses \
  -H "Authorization: Bearer $CLAWROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.2",
    "input": "Summarise the plot of Hamlet in two sentences."
  }'