API reference
The Pareto application programming interface (API) sends JavaScript Object Notation (JSON).
The
Authorization header carries the API key. The word Bearer tells the API to use the next value as the key.
List models
GET/models
The response contains a data list. The list shows the model IDs available to the key.
Create a chat completion
POST/chat/completions
Replace MODEL_ID with an id from GET /models. The request body must contain:
model: the model ID.messages: the input messages.
choices list. Read the answer from choices[0].message.content.