POST /v1/responses
The OpenAI-compatible Responses operation, its auxiliary endpoints, and the limits that follow from not storing Responses.
Request
curl https://api.unioapi.com/v1/responses \
-H "Authorization: Bearer $UNIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-sol",
"input": "Hello",
"stream": false
}'For OpenAI models the request runs in the official Responses format; the response keeps the
official JSON and named SSE events and only echoes model as the identifier you requested.
service_tiersupports Fast, Flex and Ultrafast, depending on the model. Unavailable Fast or Ultrafast falls back to Standard on the same OpenAI model before dispatch. For these two tiers, billing uses the dispatch tier, not the response field. See Service Tiers.- 12-hour cache writes can only be requested through Responses — see Caching & TTL.
gpt-5.5-pro,gpt-5.4-proandgpt-5.2-procan only be called through this endpoint.
Responses are not stored
UnioAPI does not store Responses on the server. Send the full input with every request.
| Capability | Behavior |
|---|---|
background: true | 400 invalid_request_error, code unsupported_value, param background |
Retrieve, delete or cancel a Response by ID, or list its input_items | 404 invalid_request_error with a null code — the same as the official API for an unknown ID |
A previous_response_id continuation that cannot be completed | 400 previous_response_not_found; resend with the full input |
POST /v1/responses/input_tokens (input token counting) | Not provided: 404 invalid_request_error with a null code. The input tokens actually counted are in the response's usage.input_tokens |
Auxiliary endpoints
POST /v1/responses/compact
Context compaction, not SSE. Models with native compaction return the official compaction result;
other models return an output made of a summary (0 or 1 assistant message). Billed by actual
usage. This operation does not accept service_tier: "ultrafast".
WebSocket mode
GET /v1/responses can be upgraded to a WebSocket (used by clients such as Codex). If the model does
not support this mode the handshake returns 426 and the client should fall back to HTTP
POST /v1/responses.
Streaming
Official named SSE events are forwarded (response.created, response.output_text.delta,
response.completed, …) with a monotonically increasing sequence_number, and no [DONE] is
appended. See Streaming.