cd /news/ai-tools/cross-model-llm-pricing-api · home › topics › ai-tools › article
[ARTICLE · art-160570] src=metergraph.dev ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Cross-Model LLM Pricing API

Metergraph released a free Pricing API that lets developers add per-call LLM costs to their projects without an account, API key or SDK, according to the company's documentation at metergraph.dev. The API accepts a POST request to https://app.metergraph.dev/v1/pricing/calculate with a JSON body containing a trace object of model, usage and billing metadata, and has no browser CORS support, so browser-only projects need a backend route. Metergraph's guidance tells integrators to keep existing provider clients, send no prompt or response text, distinguish priced, partial and unpriced results rather than treating missing costs as zero, and ensure pricing failures do not break the LLM call.

read1 min views10 publishedOct 29, 2026
Cross-Model LLM Pricing API
Image: source

Add per-call LLM costs to this project using Metergraph's free Pricing API. No account, API key or SDK is needed. Read https://www.metergraph.dev/docs/reference/pricing-api/ for the contract. Find where this project receives model and usage data, including final usage for streamed responses. Keep the existing provider clients. From server-side code, use POST https://app.metergraph.dev/v1/pricing/calculate with a JSON body containing a trace object. The API has no browser CORS support. For a browser-only project, explain the backend route it needs. Send model, usage and billing metadata without prompt or response text. Keep the provider's response format or set format as the docs describe. Include billing channel, region and service tier only when known; gateway rates can differ from direct provider rates. Record the cost and breakdown using this project's conventions. Keep decimal precision and distinguish priced, partial and unpriced results. Never treat missing costs as zero. Use bounded timeouts and respect Retry-After. Pricing failures must not break the LLM call. Test with synthetic usage and run the relevant project checks. Show what changed and where the costs appear.

── more in #ai-tools 4 stories · sorted by recency
── more on @metergraph 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cross-model-llm-pric…] indexed:0 read:1min 2026-10-29 · —