Skip to main content

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.

Deposit credits into reserved instance

Usage

vastai prepay instance ID AMOUNT

Arguments

id
integer
required
id of instance to prepay for
amount
number
required
amount of instance credit prepayment (default discount func of 0.2 for 1 month, 0.3 for 3 months)

Examples

vastai prepay instance <ID> <AMOUNT>

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)