Authorizations
API key must be provided in the Authorization header
Path Parameters
ID of the offer to accept (ask_id)
Body
Docker image to use for the instance.
ID of an existing template to use for instance configuration. Alternative to providing template_hash_id.
Example : 62897
Hash ID of a template. Alternative to providing template_id
Example : 4e17788f74f075dd9aab7d0d4427968f
Custom name for the instance
Size of local disk partition (in GB)
Launch mode for the instance. If omitted, defaults to 'ssh' unless args/args_str is provided.
ssh, jupyter, args, ssh_proxy, ssh_direct, jupyter_proxy, jupyter_direct Desired initial state of the instance
running, stopped Bid price per machine (in $/hour). Only for interruptible instances
0.001 <= x <= 128Environment variables
Example :
{ "HF_TOKEN": "hf_xxx123456789", "MODEL_ID": "TheBloke/Llama-2-7B-Chat-GPTQ", }
Whether to cancel if instance cannot start immediately. Defaults to false for interruptibles. Defaults to true for on-demand with target_state='running'
Whether this is a VM instance
Commands to run when instance starts
Example : env | grep _ >> /etc/environment; echo 'starting up'
Arguments array to passed to the image entrypoint
Example : ["bash", "-c", "env | grep _ >> /etc/environment; echo 'starting up'"]
Arguments string to pass to the entrypoint (alternative to args)
Example : args_str: bash -c "env | grep _ >> /etc/environment; echo 'starting up'"
Launch instance with jupyter lab instead of notebook
Directory to launch Jupyter from
Example : /home/notebooks
Set python's locale to C.UTF-8
Set locale to C.UTF-8
Skip sanity checks when creating from an existing instance
User to use with docker create (breaks some images, use with caution)
Docker registry credentials if needed
Volume creation/linking information