Skip to main content
POST /v1/responses is the OpenAI Responses API for models deployed on SynapsAI Cloud. Use it when you want a single input field, optional instructions, tools, and a typed output array. input may be a string or a list of message and content items. Replace model-id with your deployment’s model ID.
background: true is rejected. Generation runs in the request.

Create a response

A completed body looks like:

Stream

Set stream to true. The response is Server-Sent Events. See Streaming for how the connection behaves.

Store a response and continue it

Persistence follows the model data store. When data store is enabled on the deployment, the response is stored unless you send "store": false. When data store is off, nothing is saved. previous_response_id loads the stored chain and appends the new input. SynapsAI strips that id before the model sees the request. The chain must belong to your account, must not cycle, and must stay within the platform depth limit.
Retrieve and delete: A missing id returns 404. You can also pass prior turns yourself with previous_input_messages when you do not want the server to look up a stored response.

Tools

tools, tool_choice, and parallel_tool_calls match the chat completions tool shape. For a full tool-calling walkthrough on chat completions, see Tool calling.
For a multi-step loop with built-in tools and knowledge bases, use an agent instead of calling tools from the Responses API yourself.