---
title: "Sync BurnRate pricing data from LiteLLM"
method: POST
path: "/api/burnrate/admin/sync-pricing"
tags: ["BurnRate"]
---

# Sync BurnRate pricing data from LiteLLM

`POST /api/burnrate/admin/sync-pricing`

## Request

- Base URL: `https://plith.ai`
- URL: `https://plith.ai/api/burnrate/admin/sync-pricing`
- Auth: none required

Fetches current model pricing from LiteLLM's MIT-licensed model cost database on GitHub (github.com/BerriAI/litellm) and upserts into the BurnRate pricing table. Admin maintenance endpoint — no credit charge. Rate limited to 1 call per hour. Invalidates the Redis pricing cache on success so subsequent estimates use fresh data immediately.

## Headers

- `x-plith-org-id` string, required

## Response `200`

Sync completed successfully

- object
  - `sync` object
    - `models_synced` integer: Total models processed (not skipped).
    - `models_added` integer: New models inserted for today's effective_date.
    - `models_updated` integer: Existing models upserted for today's effective_date.
    - `models_skipped` integer: Models with zero prompt and completion price (free/broken entries).
    - `providers` string[]: Unique sorted list of providers found in this sync.
    - `source` string
    - `license` string
    - `pricing_as_of` string, date-time: ISO timestamp when this sync completed.
    - `synced_at` string, date-time
  - `request_id` string
  - `credits_used` integer
  - `credits_remaining` integer
  - `fallback_behavior` string

## Other responses

- `401`: Invalid or missing API key
- `429`: Rate limited — sync already ran within the last hour
- `502`: LiteLLM GitHub source unreachable or returned a non-200 status

---

[API](https://skmtc.dev/plith/apis/plith-api.md) · [All operations](https://skmtc.dev/plith/apis/plith-api/llms.txt) · [OpenAPI document](https://skmtc.dev/plith/apis/plith-api/revisions/4a03164b0d75?raw)
