Pricing
Get current pricing information for an instance type.
Returns the current spot price, reserved price, and minimum price for a given instance type, optionally filtered by region.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
instance_typestringRequired
regionstring | nullableOptional
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/v2/pricing/currentGET /v2/pricing/current?instance_type=text HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"spot_price_cents": 1,
"reserved_price_cents": 1,
"minimum_price_cents": 1,
"lowest_allocated_bid_cents": 1
}Get historical pricing information for instance types.
Returns historical spot and reserved prices over time for instance types, optionally filtered by specific instance type and region.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
instance_typestring | nullableOptionalExample:
it_abc123456regionstring | nullableOptional
num_samplesinteger · min: 1 · max: 1000OptionalDefault:
100Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/v2/pricing/historyGET /v2/pricing/history HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"prices": [
{
"spot_instance_price": "$5.50",
"reserved_instance_price": "$8.75",
"timestamp": "2024-01-01T00:00:00Z",
"instance_type": "it_abc123456",
"region": "text"
}
]
}Last updated