Lists the currently available models
Returns a list of all available models that can be used with the chat completions endpoint.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
User-AgentUser-Agent header identifying the client application
Lists the currently available models › Responses
OK
objectThe object type, which is always 'list'
The list of models
Creates a model response for the given chat conversation
Creates a completion for the chat message
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
User-AgentUser-Agent header identifying the client application
Creates a model response for the given chat conversation › Request Body
modelID of the model to use
A list of messages comprising the conversation so far
temperatureWhat sampling temperature to use, between 0 and 2
top_pAn alternative to sampling with temperature
nHow many chat completion choices to generate for each input message
streamIf set, partial message deltas will be sent
Up to 4 sequences where the API will stop generating further tokens
max_tokensThe maximum number of tokens to generate in the chat completion
presence_penaltyNumber between -2.0 and 2.0
frequency_penaltyNumber between -2.0 and 2.0
logit_biasModify the likelihood of specified tokens appearing in the completion
userA unique identifier representing your end-user
Creates a model response for the given chat conversation › Responses
OK
idA unique identifier for the chat completion
objectThe object type, which is always 'chat.completion'
createdThe Unix timestamp (in seconds) of when the chat completion was created
modelThe model used for the chat completion
A list of chat completion choices
system_fingerprintThis fingerprint represents the backend configuration that the model runs with