Skip to main content

Quickstart

The Pareto application programming interface (API) uses the OpenAI Chat Completions format.

Before you start

You need a Pareto API key. Keep the key on your server and outside source control.

1. Find your model

Each Pareto API key is assigned to one model. The response contains a data list. Copy the model id from that list.
The model ID identifies the model that processes the request.

2. Send a message

Replace MODEL_ID with an id from the models response. The request body uses 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.
Read the answer from choices[0].message.content.

3. Connect an app

The base URL is the main address that the app uses to send requests. Your app must support a custom base URL, an API key, and a model ID. See SDK examples or the API reference.