Skip to main content
POST
/
api
/
v0
/
autojobs
Create autojobs
curl --request POST \
  --url https://console.vast.ai/api/v0/autojobs/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "min_load": "<string>",
  "min_cold_load": "<string>",
  "target_util": "<string>",
  "cold_mult": "<string>",
  "cold_workers": "<string>",
  "max_workers": "<string>",
  "test_workers": "<string>",
  "gpu_ram": "<string>",
  "autoscaler_instance": "<string>",
  "docker_login_user": "<string>",
  "docker_login_pass": "<string>",
  "docker_login_repo": "<string>",
  "template_hash": "<string>",
  "template_id": "<string>",
  "search_params": "<string>",
  "launch_args": "<string>",
  "endpoint_name": "<string>",
  "endpoint_id": "<string>",
  "search_query": "<string>",
  "apikey_id": "<string>"
}
'
{
  "success": true,
  "msg": "Operation completed successfully"
}

Documentation Index

Fetch the complete documentation index at: https://vastai-80aa3a82-auto-openapi-preview-pr-4175.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
min_load
string

The min load

min_cold_load
string

The min cold load

target_util
string

The target util

cold_mult
string

The cold mult

cold_workers
string

The cold workers

max_workers
string

The max workers

test_workers
string

The test workers

gpu_ram
string

The gpu ram

autoscaler_instance
string

The autoscaler instance

docker_login_user
string

The docker login user

docker_login_pass
string

The docker login pass

docker_login_repo
string

The docker login repo

template_hash
string

The template hash

template_id
string

The template id

search_params
string

The search params

launch_args
string

The launch args

endpoint_name
string

The endpoint name

endpoint_id
string

The endpoint id

search_query
string

The search query

apikey_id
string

The apikey id

Response

Successful response

success
boolean
Example:

true

msg
string
Example:

"Operation completed successfully"