LLM pricing API

An API that calculates the cost and breakdown of an LLM call from its response.

FreeNo account or API key

View promptHide prompt

Try the API

POST/v1/pricing/calculate

Cost per request—

LLM request

JSON · 256 KiB maximum

Pricing result

Ready

Cost per request

—

Calculate a response to see its cost and the rates behind it.

Lower your LLM costs with Metergraph

Start saving now

Find your biggest savings

See where a cheaper model could cut your bill the most.

Test another model

Compare the answers and cost on requests from your own app.

Review the proposed change

Let your coding agent make the change. Review the diff before you ship.