Endpoint Examples
Chat Completion
Creates a chat completion for the provided messages
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Parameters for chat completion
The model to use for completion
Array of message objects with role and content
Whether to stream the response
Controls randomness (0-2)
Maximum number of tokens to generate
Nucleus sampling parameter (0-1)
Penalty for frequency of tokens (-2 to 2)
Penalty for presence of tokens (-2 to 2)