Skip to main content
POST /v1/responses serves the OpenAI Responses API shape over the same memory wrapper as Chat: relevant memories are recalled and injected before the model runs, and the turn is stored back afterwards.

Request

All memory tunables apply here, in the body or as X-Anona-* headers. Content parts without text (images, tool results) are skipped when building the memory query.

Response

memories_injected and space_id are the Anona additions, and also arrive as the X-Anona-Memories-Injected and X-Anona-Space-Id response headers.

Streaming

"stream": true emits the typed Responses event sequence, each event numbered with sequence_number:
The final response.completed event carries the full response object, including token usage. As on Chat, a failure before the first token is a normal JSON error with a real status code; the turn is recorded and billed after the stream ends.