Skip to main content

Documentation Index

Fetch the complete documentation index at: https://vastai-80aa3a82-fix-stale-links.mintlify.app/llms.txt

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

Create a new API key.

Signature

VastAI.create_api_key(name: Optional[str] = None, permission_file: Optional[str] = None, key_params: Optional[str] = None) -> str

Parameters

name
Optional[str]
name
permission_file
Optional[str]
permission_file
key_params
Optional[str]
key_params

Returns

str, Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.create_api_key()
print(result)