PUT
/
api
/
v0
/
machines
/
create_bids
/
set defjob
curl --request PUT \
  --url https://console.vast.ai/api/v0/machines/create_bids/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "machine": 12345,
  "price_gpu": 0.5,
  "price_inetu": 0.1,
  "price_inetd": 0.1,
  "image": "vastai/tensorflow",
  "args": [
    "--arg1",
    "--arg2"
  ]
}'
{
  "success": true,
  "machine_id": 12345,
  "user_id": 67890,
  "you_sent": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
machine
integer
required

ID of the machine to create jobs for.

Example:

12345

price_gpu
number
required

Price per GPU per day.

Example:

0.5

price_inetu
number
required

Price for internet upload.

Example:

0.1

price_inetd
number
required

Price for internet download.

Example:

0.1

image
string
required

Docker image to use for the job.

Example:

"vastai/tensorflow"

args
string[]

Arguments for the Docker image.

Example:
["--arg1", "--arg2"]

Response

Success response

success
boolean
Example:

true

machine_id
integer
Example:

12345

user_id
integer
Example:

67890

you_sent
object

The original request JSON.