Skip to main content
Search for GPU offers using the new /search/asks/ endpoint.

Signature

VastAI.search_offers_new(
    query: Any = None,
    type: str = 'on-demand',
    order: str = 'score-',
    limit: Optional[int] = None,
    storage: float = 5.0,
    no_default: bool = False
) -> list

Parameters

query
Any
type
str
default:"on-demand"
order
str
default:"score-"
limit
Optional[int]
storage
float
default:"5.0"
no_default
bool

Returns

list

Example

from vastai import VastAI

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