The Responses API is currently supported for providers that implement the OpenAI Responses API contract. Check your provider’s documentation to confirm compatibility.
Create a model response
POST /v1/responses
Creates a new model response. The request body is forwarded to the provider.
Request
The provider to route the request to (e.g.
openai).Your Portkey API key or provider API key.
The model to use for the response (e.g.
gpt-4o).The input for the model. Can be a plain text string or an array of message objects.
The ID of a previous response to continue from. Enables multi-turn stateful conversations.
System-level instructions to guide the model’s behavior.
A list of tools the model may call. Follows the OpenAI tool definition format.
Whether to stream the response. When
true, the gateway returns server-sent events.Maximum number of tokens in the output.
Response
Unique identifier for the response.
Always
response.The model that generated the response.
Response status. Values:
completed, in_progress, failed, cancelled.Array of output items generated by the model.
Get a response
GET /v1/responses/:id
Retrieves a previously created model response by its ID.
Request
The ID of the response to retrieve.
The provider to route the request to.
Your Portkey API key or provider API key.
Response
Returns the response object. See Create a model response for the full field list.Delete a response
DELETE /v1/responses/:id
Deletes a stored model response.
Request
The ID of the response to delete.
The provider to route the request to.
Your Portkey API key or provider API key.
Response
The ID of the deleted response.
Always
response.true if the response was successfully deleted.List response input items
GET /v1/responses/:id/input_items
Returns the input items that were included in a response. This is useful for inspecting the full context that was sent to the model.
Request
The ID of the response whose input items to list.
The provider to route the request to.
Your Portkey API key or provider API key.
Maximum number of input items to return.
Cursor for pagination.
Response
Always
list.Array of input item objects representing the messages and context sent in the request.
Whether additional input items are available.