Create Autojob Workergroup
Creates a new serverless workergroup (autojob) for the authenticated user, optionally creating an endpoint if one doesn’t exist.
Authorizations
API key must be provided in the Authorization header
Body
Minimum load threshold below which the autoscaler keeps warm workers running.
0.1
Minimum baseline of cold (standby) load capacity the endpoint should maintain; applied when the endpoint is auto-created via endpoint_name.
0
Target utilization ratio (0-1) that the autoscaler aims to maintain across workers.
0.8
Multiplier controlling how many cold-standby workers are maintained relative to active workers.
2
Fixed number of cold (standby) workers to keep available; must be <= max_workers.
3
Upper bound on the total number of workers this workergroup may scale up to.
10
Number of workers reserved for testing/canary use.
1
Minimum GPU RAM in GB to target when selecting machines for this workergroup.
16
Autoscaler deployment environment to use (e.g. 'prod', 'dev').
"prod"
Docker registry username for pulling private images.
"myuser"
Docker registry password for pulling private images.
Docker registry hostname/repo to authenticate against.
"docker.io"
Hash ID of a saved template to use for worker launch configuration.
"abc123def456"
Numeric ID of a saved template to use for worker launch configuration.
999
Additional CLI-style arguments to pass when launching worker instances.
"--image pytorch/pytorch:latest --disk 20"
Human-readable name identifying the target endpoint; if no endpoint with this name exists, one is automatically created.
"my-inference-endpoint"
Numeric ID of an existing endpoint to attach this workergroup to; required when endpoint_name is not provided.
42
GPU offer filter expression (e.g. 'gpu_ram>=16 num_gpus=1') that the autoscaler uses to find machines for workers.
"gpu_ram>=16 num_gpus=1"