BurnRate

Get cost optimizations

Takes an agent plan and optional target budget, returns a cheaper equivalent plan via model substitution. Costs 1 credit.

post/api/burnrate/optimize

Request

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

Request body

target_budgetnumber

Optional. Target budget in USD. Response includes whether the optimized plan fits within it.

Example request

{
  "plan": [
    {
      "provider": "anthropic",
      "model": "claude-opus-4-6"
    }
  ]
}

Response

Optimized plan with model substitution recommendations

suggestionsstring[]
cross_productobject
request_idstring
credits_usedinteger
credits_remaininginteger
fallback_behaviorstring

Example response

{
  "credits_used": 1
}

Changes

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