---
title: "Get Hugging Face inference data"
method: POST
path: "/events/huggingface-inference"
tags: ["Events"]
---

# Get Hugging Face inference data

`POST /events/huggingface-inference`

Use when fetching Hugging Face inference usage or billing data (e.g. for HF-specific reporting or reconciliation). Reads the meter-usage pipeline.

## Request body

- GetHuggingFaceBillingDataRequest
  - `requestIds` string[], required

## Response `200`

OK

- GetHuggingFaceBillingDataResponse
  - `requests` EventCostInfo[]
    - `costNanoUsd` string
    - `requestId` string

## Other responses

- `500` — Server error

## Changes

- **2026-07-31** `50b7421a9690` — 1 breaking
  - added required request body
- **2026-07-15** `f8ecf435d25d` — 1 warning
  - added the new `not_implemented` enum value to the `code` response property for the response status `500`
- **2026-05-18** `8ec2edea6b20` — 2 warning
  - removed the optional property `details` from the response with the `500` status
  - added the new `too_many_requests` enum value to the `code` response property for the response status `500`
- **2026-04-06** `95af41a12111` — 2 warning, 4 info
  - removed the optional property `error` from the response with the `500` status
  - removed the optional property `success` from the response with the `500` status
  - added the optional property `code` to the response with the `500` status
  - added the optional property `details` to the response with the `500` status
  - …2 more

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/events/huggingface-inference/post.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/9cd0dab91f5c/schema)
