Signature
Parameters
Optional[str]
add your existing ssh public key to your account (from the .pub file). If no public key is provided, a new key pair will be generated.
Returns
dict
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
VastAI.create_ssh_key(
ssh_key: Optional[str] = None
) -> dict
dict
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.create_ssh_key()
print(result)