Spend

Set an org price override

Owner/admin. Upserts one override for this org; future requests are priced with it (history is not rewritten).

put/v1/spend/ai/prices

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/spend/ai/prices
  • Auth: HTTP bearer

Request body

providerstring required
model_patternstring required
input_usd_per_mtoknumber required
output_usd_per_mtoknumber required

Example request

{
  "provider": "anthropic",
  "model_pattern": "claude-sonnet-5%",
  "input_usd_per_mtok": 3,
  "output_usd_per_mtok": 15
}

Response

The override

idstring uuid required
org_idstring uuid nullable

Null for a global row.

providerstring required
model_patternstring required
input_micro_usd_per_mtokinteger required
output_micro_usd_per_mtokinteger required
sourcestring required
updated_atstring date-time required

Changes

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