Skip to main content
POST
Create Autojob Workergroup

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
min_load
number

Minimum load threshold below which the autoscaler keeps warm workers running.

Example:

0.1

min_cold_load
number

Minimum baseline of cold (standby) load capacity the endpoint should maintain; applied when the endpoint is auto-created via endpoint_name.

Example:

0

target_util
number

Target utilization ratio (0-1) that the autoscaler aims to maintain across workers.

Example:

0.8

cold_mult
number

Multiplier controlling how many cold-standby workers are maintained relative to active workers.

Example:

2

cold_workers
integer

Fixed number of cold (standby) workers to keep available; must be <= max_workers.

Example:

3

max_workers
integer

Upper bound on the total number of workers this workergroup may scale up to.

Example:

10

test_workers
integer

Number of workers reserved for testing/canary use.

Example:

1

gpu_ram
number

Minimum GPU RAM in GB to target when selecting machines for this workergroup.

Example:

16

autoscaler_instance
string

Autoscaler deployment environment to use (e.g. 'prod', 'dev').

Example:

"prod"

docker_login_user
string

Docker registry username for pulling private images.

Example:

"myuser"

docker_login_pass
string

Docker registry password for pulling private images.

docker_login_repo
string

Docker registry hostname/repo to authenticate against.

Example:

"docker.io"

template_hash
string

Hash ID of a saved template to use for worker launch configuration.

Example:

"abc123def456"

template_id
integer

Numeric ID of a saved template to use for worker launch configuration.

Example:

999

launch_args
string

Additional CLI-style arguments to pass when launching worker instances.

Example:

"--image pytorch/pytorch:latest --disk 20"

endpoint_name
string

Human-readable name identifying the target endpoint; if no endpoint with this name exists, one is automatically created.

Example:

"my-inference-endpoint"

endpoint_id
integer

Numeric ID of an existing endpoint to attach this workergroup to; required when endpoint_name is not provided.

Example:

42

search_params
string

GPU offer filter expression (e.g. 'gpu_ram>=16 num_gpus=1') that the autoscaler uses to find machines for workers.

Example:

"gpu_ram>=16 num_gpus=1"

Response

Workergroup created; returns {success: true, id: <workergroup_id>}

success
boolean

Always true on success.

id
integer

ID of the newly created workergroup.