---
title: "Set an org price override"
method: PUT
path: "/v1/spend/ai/prices"
tags: ["Spend"]
---

# Set an org price override

`PUT /v1/spend/ai/prices`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/spend/ai/prices`
- Auth: HTTP bearer

Owner/admin. Upserts one override for this org; future requests are priced with it (history is not rewritten).

## Request body

- object
  - `provider` string, required
  - `model_pattern` string, required
  - `input_usd_per_mtok` number, required
  - `output_usd_per_mtok` number, required

## Response `200`

The override

- LlmModelPrice
  - `id` string, uuid, required
  - `org_id` string, uuid, nullable: Null for a global row.
  - `provider` string, required
  - `model_pattern` string, required
  - `input_micro_usd_per_mtok` integer, required
  - `output_micro_usd_per_mtok` integer, required
  - `source` string, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid request
- `403`: Insufficient permissions

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
