Documentation Index
Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
Use this file to discover all available pages before exploring further.
Create a new template.
Signature
VastAI.create_template(
name: Optional[str] = None,
image: Optional[str] = None,
image_tag: Optional[str] = None,
login: Optional[str] = None,
env: Optional[str] = None,
ssh: bool = False,
jupyter: bool = False,
direct: bool = False,
jupyter_dir: Optional[str] = None,
jupyter_lab: bool = False,
onstart_cmd: Optional[str] = None,
search_params: Optional[str] = None,
disk_space: Optional[str] = None
) -> str
Parameters
Returns
str, Result from the API call.
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.create_template()
print(result)