GET
/chat/completionsList Chat Completions
List stored Chat Completions. Only Chat Completions that have been stored
with the store parameter set to true will be returned.
modelstringoptional
The model used to generate the Chat Completions.
metadataobjectoptional
A list of metadata keys to filter the Chat Completions by. Example:
`metadata[key1]=value1&metadata[key2]=value2`
afterstringoptional
Identifier for the last chat completion from the previous pagination request.
limitintegeroptional
Number of Chat Completions to retrieve.
orderstringoptional
Sort order for Chat Completions by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.
200A list of Chat Completions
objectstringrequired
The type of this object. It is always set to "list".
dataarray<object>required
An array of chat completion objects.
first_idstringrequired
The identifier of the first chat completion in the data array.
last_idstringrequired
The identifier of the last chat completion in the data array.
has_morebooleanrequired
Indicates whether there are more Chat Completions available.
400Invalid pagination or filter parameters.
errorobjectrequired
429The request was rejected because a rate limit was exceeded.
errorobjectrequired
500An internal error prevented the request from being completed.
errorobjectrequired
Error handling
A 400 is returned: Invalid pagination or filter parameters. A 429 is returned: The request was rejected because a rate limit was exceeded. A 500 is returned: An internal error prevented the request from being completed.