BurnRate

Record actual spend

Records actual LLM token spend for an org. Actual cost is computed server-side from the pricing table — callers do not supply a cost figure. FREE — no credit deduction.

post/api/burnrate/track

Request

  • Base URL: https://plith.ai
  • URL: https://plith.ai/api/burnrate/track
  • Auth: none required

Request body

providerstring required
modelstring required
input_tokensinteger required
output_tokensinteger required
task_idstring

Optional. Your task ID for cross-referencing with DedupQ.

cache_read_tokensinteger

Optional. Cache read tokens for providers with prompt caching.

Example request

{
  "provider": "anthropic",
  "model": "claude-sonnet-4-6"
}

Response

Spend recorded

trackedboolean
record_idstring uuid
providerstring
modelstring
input_tokensinteger
output_tokensinteger
actual_cost_usdnumber
actual_cost_usd_formattedstring
pricing_foundboolean
notestring
cross_productobject
request_idstring
credits_usedinteger
credits_remaininginteger
fallback_behaviorstring

Example response

{
  "tracked": true,
  "actual_cost_usd_formatted": "$0.02",
  "fallback_behavior": "proceed_without_estimate"
}

Changes

No recorded changes to this operation across all 1 revision of this API.