Pricing

Get Current Prices V2

get

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
Query parameters
instance_typestringRequired
regionstring | nullableOptional
Responses
200

Successful Response

application/json
get
GET /v2/pricing/current HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer fkey_<key>
Accept: */*
{
  "spot_price_cents": 1,
  "reserved_price_cents": 1,
  "minimum_price_cents": 1
}

Get Historical Prices V2

get

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
Query parameters
instance_typeany ofOptional
stringOptionalExample: it_abc123456
or
nullOptional
regionstring | nullableOptional
num_samplesinteger · min: 1 · max: 1000OptionalDefault: 100
Responses
200

Successful Response

application/json
get
GET /v2/pricing/history HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer fkey_<key>
Accept: */*
{
  "prices": [
    {
      "spot_instance_price": "$5.50",
      "reserved_instance_price": "$8.75",
      "timestamp": "2024-01-01T00:00:00Z",
      "instance_type": "it_abc123456",
      "region": "text"
    }
  ]
}