v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Serverless

create endpoint

This endpoint creates a new job processing endpoint with specified parameters.

CLI Usage: vastai create endpoint [options]

post/api/v0/endptjobs/

Request body

min_loadnumber

Minimum load for the endpoint.

target_utilnumber

Target utilization for the endpoint.

cold_multnumber

Multiplier for cold start.

cold_workersinteger

Number of cold workers.

max_workersinteger

Maximum number of workers.

endpoint_namestring

Name of the endpoint.

Example request

{
  "min_load": 50,
  "target_util": 0.75,
  "cold_mult": 2,
  "cold_workers": 5,
  "max_workers": 20,
  "endpoint_name": "my_endpoint"
}

Response

Success response

successboolean
resultinteger

The ID of the created endpoint

Example response

{
  "success": true,
  "result": 12345
}