How the estimate is computed
When you trace your AI system with one of Openlayer’s SDK integrations, every LLM call records the prompt and completion tokens it used, along with the provider and model that served it. Openlayer multiplies those token counts by the price it has for that provider and model pair. When Openlayer has no price for the pair, the call is estimated at$0. Add or override
the price in workspace settings, and the traces that follow pick it up.
Where the default prices come from
Default prices come from the Openlayer LLM Cost Tracker, a public service that publishes per-token pricing for models across providers and refreshes daily. The service is open source: it fetches cost data from sources such as OpenRouter and LiteLLM every day and serves it from a REST API you are free to query yourself, withGET /v1/costs returning the full table.
Openlayer pulls the catalog from that service once a day, so the prices in your workspace
track the ones published on the site. If a pull fails, the prices already in your
workspace stay in place until the next one succeeds.
If you self-host Openlayer and would rather not fetch prices from an external
service, you do not have to. Openlayer bakes a snapshot of the cost table into
the Docker image at build time, so every image you receive carries a table
that is current as of the image build. Prices then stay at that snapshot
unless the deployment can reach the cost service, or you override them in
workspace settings.
View the prices your workspace uses
Go to Workspace settings → LLM costs, listed after AI features. The table holds the default token prices used to estimate LLM cost, plus any overrides for the workspace. All prices are in USD per 1 million tokens, shown with a/Mtok suffix.
The columns are:
- Model — the model name, with its provider underneath.
- Input — the price per 1 million input tokens.
- Output — the same, for output tokens.
- Updated — when an override was last changed. Catalog defaults show an em dash.
Override a price
Override a price when the catalog value does not match what you pay:1
Open the row's menu
Open the Cost options menu at the end of the row and click Edit.
Hovering an input or output price and selecting the Edit cost icon opens
the same form.
2
Set the new prices
In Edit model cost, fill in the input and output prices. The provider
and model are fixed.
3
Save
Click Save override. The row shows the date you saved it, and an info
sign beside each price you changed.
Add a model Openlayer does not price
Providers with flexible deployments, such as Azure OpenAI and Bedrock, report a deployment name that may not match any model in the catalog. Click Add model and price it yourself in Add model cost:- Provider — pick one from the searchable list, or add your own.
- Model — the name as it reaches Openlayer, for example
my-gpt4-deployment. - Input and Output — each labeled
$ / 1M tokens. - Additional token categories, a collapsible section for token types you price separately, such as cached or reasoning tokens.
Revert to the default
Revert to default, in the row’s Cost options menu, removes an override. If a default exists for that provider and model, it is restored; otherwise the model drops out of the table. Future traces are estimated with the restored default, or with no price when there is none.If a model is still estimated at
$0 and you cannot price it yourself, reach
out with the provider and model name so it can
be added to the catalog.