---
title: "Record Model Usage"
method: POST
path: "/api/py/billing/model-usage"
tags: ["billing"]
---

# Record Model Usage

`POST /api/py/billing/model-usage`

## Request body

- RecordModelUsageRequest
  - `idempotency_key` string, required
  - `organization_id` string, required
  - `user_id` string, nullable
  - `product_surface` string, required
  - `call_site` string, required
  - `chat_session_id` string, nullable
  - `session_id` string, nullable
  - `workflow_id` string, nullable
  - `workflow_run_id` string, nullable
  - `activity_id` string, nullable
  - `inngest_event_id` string, nullable
  - `file_id` string, nullable
  - `delivery_instance_id` string, nullable
  - `wiki_run_id` string, nullable
  - `routine_run_id` string, nullable
  - `task_run_id` string, nullable
  - `provider` string, required
  - `recorded_model` string, required
  - `usage` object
  - `requested_model` string, nullable
  - `routing_backend` string, nullable
  - `is_auto` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getauctor/apis/fastapi.md) · [All operations](https://skmtc.dev/getauctor/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getauctor/fastapi/revisions/aeb6faa3b8f0/schema)
