Skip to main content
Each deployment serves an OpenAI-compatible endpoint. Code that calls the OpenAI chat completions API needs only a new base URL, an API key, and the deployment name as model.

Find the Endpoint URL

monte deployment show prints the endpoint URL. All public deployments in one cloud share the URL, and model selects the deployment. With BYOC, the public URL resolves to a load balancer in the team’s account.

Choose a Public or Private Endpoint

Authenticate

Each request sends an API key as a bearer token in the Authorization header. A key works for all deployments of the team, or only for the deployments that it names. A gateway next to the model servers checks each key against the key hashes that it caches. Requests never pass through the control plane, and they continue when the control plane is unreachable.
monte key create prints the key once. Without --deployment, the key works for all deployments, including later ones. Serving Commands lists the flags.

Send a Request

POST /v1/chat/completions takes the OpenAI chat completions format.

Request Fields

An omitted sampling field takes the model’s own generation defaults. Tool calls work for model families with a tool-call chat template.

Response Fields

Each response also carries two headers: Monte-Version names the deployment version that served it, such as v2, and Monte-Request-Id identifies the request in logs.

Use an Eval Harness

Any harness that calls the OpenAI API can score a deployment. Set its base URL to the endpoint and its model to the deployment name. Monte does not record these scores; for a score compared with a baseline, package the tasks as an eval environment.

Select an Adapter

An adapter deployment has its own name, so a request selects it with model.

Stream the Response

With stream set to true, the endpoint sends server-sent events. Each event is a chat.completion.chunk whose choices[].delta holds the next part of the message. The stream ends with data: [DONE].

List Models

GET /v1/models lists the deployments that the key can call. Each id is a value for model.

Handle Errors

An error response has an HTTP status and an error object with a message, a type, and a string code.
Scaling and Versions explains the queue and cold starts.