/v1. The unprefixed routes from earlier releases still work unchanged, but they are no longer documented; new callers should use /v1 throughout.
Supported Cloud Providers
Marketplace prices
For machines, volumes, databases or models without a public price, publish your own rates on the marketplace and pin resources to them with thecostgraph.ai/pricing-id.compute and costgraph.ai/pricing-id.storage
labels. A rate is upserted on its natural key: re-posting the same key with a
new cost keeps its id and reprices everything already pinned to it.
Model prices are per token bucket
Model tokens are not one price. Every bucket is priced separately, so one model carries one price per bucket, each with its ownunit_price_per_mtok covering
that bucket alone - never a blended input and output rate:
Publish one entry per bucket you charge for. A bucket you leave out has no rate,
and usage in it resolves to no price rather than to zero, so a model priced for
input and output alone reports nothing for cached prompt tokens.
token_bucket identifies the price alongside the model, host and region, so it
cannot be patched: delete the price and publish a new one to move a rate to a
different bucket. Filter reads with the token_bucket query parameter to pull
back one bucket at a time.
Get Started
SDKs
Install the Go or TypeScript client and start querying pricing data.
Authentication
Get your API key and authenticate requests.
API Reference
Browse the raw API endpoints.