Endpoints

Create a dedicated endpoint

POST
/endpoints

Creates a new dedicated endpoint for serving models. The endpoint starts automatically after creation. You can deploy any supported model on hardware configurations that meet the model's requirements.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

display_name?string

A human-readable name for the endpoint

model*string

The model to deploy on this endpoint

hardware*string

The hardware configuration to use for this endpoint

autoscaling*

Configuration for automatic scaling of the endpoint

disable_prompt_cache?boolean
Deprecated

This parameter is deprecated and no longer has any effect.

Defaultfalse
disable_speculative_decoding?boolean

Whether to disable speculative decoding for this endpoint

Defaultfalse
state?string

The desired state of the endpoint

Default"STARTED"

Value in

  • "STARTED"
  • "STOPPED"
inactive_timeout?integer

The number of minutes of inactivity after which the endpoint stops automatically. Set to null, omit, or set to 0 to disable automatic timeout.

availability_zone?string

Create the endpoint in a specified availability zone (e.g., us-central-4b)

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/endpoints" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "hardware": "string",    "autoscaling": {      "min_replicas": 2,      "max_replicas": 5    }  }'
{  "object": "endpoint",  "id": "string",  "name": "string",  "display_name": "string",  "model": "string",  "hardware": "string",  "type": "dedicated",  "owner": "string",  "state": "PENDING",  "autoscaling": {    "min_replicas": 2,    "max_replicas": 5  },  "created_at": "2019-08-24T14:15:22Z"}