usage
Set Usage Price Rows
Changed onSet the cost of imported usage rows from manual per-1M rates (standalone).
Target either the current selection (ids) or everything matching a filter (by_filter: true). Cost / billing meters / pricing breakdown are recomputed from each row's own token counts at the supplied input / output / cache_read / cache_write per-1M rates (manual rates, not a recompute from configured pricing). Only imported rows (counts_toward_budget = false) are touched, so users.spend is never affected. Master-key only.
post/api/v1/usage/set-price
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Request body
Response
Successful Response
Changes
- info
added the optional property
to the response with the status
- info
- info
api operation id
set_usage_price_rows_api_v1_usage_set_price_postremoved and replaced withusage-set_usage_price_rows
- info