---
title: "Recalculate stored usage costs from current model pricing metadata"
method: POST
path: "/admin/usage/recalculate-pricing"
tags: ["admin"]
---

# Recalculate stored usage costs from current model pricing metadata

`POST /admin/usage/recalculate-pricing`

## Request body

- AdminRecalculatePricingRequest
  - `confirm` string
  - `confirmation` string, required
  - `days` integer
  - `end_date` string
  - `selector` string
  - `start_date` string
  - `user_path` string

## Response `200`

OK

- UsageRecalculatePricingResult
  - `matched` integer
  - `recalculated` integer
  - `status` string
  - `with_pricing` integer
  - `without_pricing` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.net/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/versions/4c27ea61fcfe/schema)
