---
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

## Changes

> 53 revisions in range; 1 could not be searched.

- **2026-05-09** `1236749560f3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/enterpilot/apis/gomodel-api/changes/admin/usage/recalculate-pricing/post.md)

---

[API](https://skmtc.dev/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.dev/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/7b5727a74f59/schema)
