v4
latestOpenAPI 3.1.02026-08-0143190206.8 KBRetrieve a previously generated response.
Path parameters
The response id returned by a previous create response request.
Response
Success
OpenResponses compatibility fields. Not used at the moment. Just for OpenResponses compatibility. Whether to process the response asynchronously in the background.
The Unix timestamp (in seconds) for the response completion time. Only set when the response is completed.
The Unix timestamp (in seconds) for the response creation time.
(NOT SUPPORTED in Responses API) Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
Unique ID of the response.
A system (or developer) message inserted into the model's context.
Max number of tokens that can be generated in a response. This includes both output and reasoning tokens.
The maximum number of tool calls allowed for this response.
Model name used to generate the response.
The object type of this resource. Always set to response.
Whether to allow the model to run parallel tool calls.
(NOT SUPPORTED in Responses API) Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
The ID of the previous response from the model.
The cache key used for the prompt for routing to the correct engine.
A stable identifier used to help detect users of your application that may be violating xAI's usage policies.
Processing tier for a request. Determines scheduling priority and billing.
Status of the response. One of completed, in_progress or incomplete.
Whether to store the input message(s) and model response for later retrieval.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
An integer between 0 and 8 specifying the number of most likely tokens to return at each token position.
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. It is generally recommended to alter this or temperature but not both.
The truncation strategy to use for the model response.
A unique identifier representing your end-user, which can help xAI to monitor and detect abuse.