---
title: "Upsert model pricing in Postgres"
method: POST
path: "/v1/pricing"
---

# Upsert model pricing in Postgres

`POST /v1/pricing`

## Request

- Base URL: `https://api.clichefactory.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.clichefactory.com/v1/pricing`
- Auth: none declared

## Headers

- `X-API-KEY` string, nullable

## Request body

- PricingUpsertRequest
  - `model_name` string, required
  - `input_per_1m` number, required
  - `output_per_1m` number, required
  - `thinking_per_1m` number, nullable

## Response `200`

Successful Response

- PricingResponse
  - `model_name` string, required
  - `input_per_1m` number, required
  - `output_per_1m` number, required
  - `thinking_per_1m` number, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/clichefactory/apis/aio-server.md) · [All operations](https://skmtc.dev/clichefactory/apis/aio-server/llms.txt) · [OpenAPI document](https://skmtc.dev/clichefactory/apis/aio-server/revisions/9bd59f9bbb31?raw)
