Prepay for an instance.
Signature
VastAI.prepay_instance(
id: int,
amount: float
) -> dict
Parameters
id of instance to prepay for
amount of instance credit prepayment (default discount func of 0.2 for 1 month, 0.3 for 3 months)
Returns
dict
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.prepay_instance(id=12345, amount=1.0)
print(result)