Documentation Index
Fetch the complete documentation index at: https://docs.langsight.dev/llms.txt
Use this file to discover all available pages before exploring further.
How token-based costing works
For every LLM span, LangSight calculates cost as:| OTLP attribute | Maps to |
|---|---|
gen_ai.usage.input_tokens | input_tokens |
gen_ai.usage.output_tokens | output_tokens |
gen_ai.request.model | model_id |
Pre-seeded models
LangSight ships with pricing for 21 models. Prices reflect rates as of early 2026 and can be updated at any time.| Provider | Models |
|---|---|
| Anthropic | claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5 |
| OpenAI | gpt-4o, gpt-4o-mini, o3, o3-mini, o1 |
| gemini-1.5-pro, gemini-1.5-flash, gemini-2.0-flash, gemini-2.5-pro | |
| AWS Bedrock | nova-pro, nova-lite, nova-micro |
| Meta | llama-3.1-70b, llama-3.3-70b, llama-3.1-8b |
Model prices change frequently. Check Settings → Model Pricing to confirm prices match your current contract before using cost data for chargebacks or budgeting.
Updating prices
Settings → Model Pricing → find the model → Edit → updateinput_price_per_million and/or output_price_per_million → Save.
Via API (admin only):
Adding custom models
For models not in the pre-seeded list (fine-tuned models, private deployments): Settings → Model Pricing → Add Model → fill in model ID and prices. Via API:model_id appear in cost reports with $0.00 cost and a warning flag until pricing is added.
All sources filter
The All sources filter (previously labelled “All servers”) on the Cost Analytics page shows costs grouped byserver_name from tool call traces. This field includes:
- LLM providers — e.g.
gemini,claude,gpt-4o(costs calculated from token counts) - Sub-agents — e.g.
catalog,analyst(agents acting as tool providers in multi-agent pipelines) - Any other service tracked by the LangSight SDK
catalog-mcp — those are health-checked by langsight monitor but are not cost sources themselves. The cost source is the service that consumes tokens or incurs per-call charges, not the MCP proxy in front of it.
Filter by a specific source to see cost per LLM provider or per sub-agent:
Per-project cost filtering
All cost queries are scoped to a project. Use the project switcher in the sidebar to filter the Costs page, or passproject_id to the API:
Non-LLM tool call costs
Tool calls to MCP servers that are not LLM providers use fixedcost_per_call pricing rules from .langsight.yaml: