---
title: "Provides the inference request cost in nanoUSD for a list of request IDs."
method: POST
path: "/v2/usage/request-cost"
---

# Provides the inference request cost in nanoUSD for a list of request IDs.

`POST /v2/usage/request-cost`

Inference requests are billed based on the cost of the tokens used in the request.  The request ID can be found in the "X-Inference-Request-Id" inference response header.

## Request body

- object
  - `requestIds` string[], required

## Response `200`

Successful response

- object
  - `requests` object[], required
    - `requestId` string, required
    - `costNanoUsd` number, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/hyperbolic/apis/castle-api.md) · [All operations](https://skmtc.net/hyperbolic/apis/castle-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperbolic/castle-api/revisions/fd9320b4b13d/schema)
