Skip to main content
Change the bid price for an instance.

Signature

VastAI.change_bid(
    id: int,
    price: Optional[float] = None
) -> dict

Parameters

id
int
required
id of instance type to change bid
price
Optional[float]
per machine bid price in $/hour

Returns

dict

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.change_bid(id=12345)
print(result)