---
title: "Get cost breakdown"
method: GET
path: "/v1/billing/costs"
tags: ["billing"]
---

# Get cost breakdown

`GET /v1/billing/costs`

## Request

- Base URL: `https://api.mixedbread.com`
- URL: `https://api.mixedbread.com/v1/billing/costs`
- Auth: HTTP bearer

## Query parameters

- `month` string, date, nullable: The month to break down, by any of its days; the current month by default
- `limit` integer, nullable: The number of stores to return
- `offset` integer: The number of costliest stores to skip

## Response `200`

A month's cost per feature, for the workspace and each store

- CostBreakdown: A billing period's whole bill, its usage not tied to a store, and a page of its stores.
  - `cost` string, required: The cost
  - `features` FeatureCost[], required: The cost per feature, highest first
    - `name` string, required: The feature
    - `cost` string, required: The cost
    - `metrics` MetricCost[], required: The cost per billable metric, highest first
      - `name` string, required: The billable metric
      - `cost` string, required: The cost
  - `daily` DailyCost[], required: The cost per feature on each day with usage
    - `day` string, date, required: The day, in UTC
    - `features` object, required: The cost per feature
  - `period` Period, required: Inclusive/exclusive window describing a billing period.
    - `start` string, date-time, required: The start of the billing period
    - `end` string, date-time, required: The end of the billing period
  - `invoiced` CostInfo, required: Cost information for a billing period. - net_usage_cost: portion of usage that actually ends up on the invoice after credits, computed as gross_usage_cost - balance_applied. - gross_usage_cost: metered usage value before balance applied.
    - `net_usage_cost` string: The net usage cost
    - `gross_usage_cost` string: The gross usage cost
    - `balance_applied` string: The balance applied
    - `phases` PhaseCostInfo[]: The cost for each phase in descending order of end date
      - `period` Period, required: Inclusive/exclusive window describing a billing period.
        - `start` string, date-time, required: The start of the billing period
        - `end` string, date-time, required: The end of the billing period
      - `net_usage_cost` string, required: The net usage cost
      - `gross_usage_cost` string, required: The gross usage cost
      - `balance_applied` string, required: The balance applied
    - `products` ProductCostInfo[]: The cost for each product. Store, Parsing, Reranking, Embeddings
      - `product_name` string, required: The name of the product. Store, Parsing, Reranking, Embeddings
      - `gross_usage_cost` string, required: The gross usage cost of the product
      - `net_usage_cost` string, required: The net usage cost of the product
      - `balance_applied` string, required: The balance applied to the product
  - `workspace` CostTotals, required: A cost, per feature and on each day.
    - `cost` string, required: The cost
    - `features` FeatureCost[], required: The cost per feature, highest first
      - `name` string, required: The feature
      - `cost` string, required: The cost
      - `metrics` MetricCost[], required: The cost per billable metric, highest first
        - `name` string, required: The billable metric
        - `cost` string, required: The cost
    - `daily` DailyCost[], required: The cost per feature on each day with usage
      - `day` string, date, required: The day, in UTC
      - `features` object, required: The cost per feature
  - `other_stores` CostTotals, required: A cost, per feature and on each day.
    - `cost` string, required: The cost
    - `features` FeatureCost[], required: The cost per feature, highest first
      - `name` string, required: The feature
      - `cost` string, required: The cost
      - `metrics` MetricCost[], required: The cost per billable metric, highest first
        - `name` string, required: The billable metric
        - `cost` string, required: The cost
    - `daily` DailyCost[], required: The cost per feature on each day with usage
      - `day` string, date, required: The day, in UTC
      - `features` object, required: The cost per feature
  - `stores` StoreCost[], required: A page of the stores, costliest first
    - `cost` string, required: The cost
    - `features` FeatureCost[], required: The cost per feature, highest first
      - `name` string, required: The feature
      - `cost` string, required: The cost
      - `metrics` MetricCost[], required: The cost per billable metric, highest first
        - `name` string, required: The billable metric
        - `cost` string, required: The cost
    - `daily` DailyCost[], required: The cost per feature on each day with usage
      - `day` string, date, required: The day, in UTC
      - `features` object, required: The cost per feature
    - `store` CostStore, required: The store a cost was metered for.
      - `id` string, required: The ID of the store
      - `name` string, nullable, required: The name of the store, null once it is purged
      - `deleted` boolean, required: Whether the store was deleted
  - `store_count` integer, required: The number of stores with usage, across all pages

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-02** `f9f0c4275969`: 2 info
  - added the new optional `query` request parameter `month`
  - added the required property `invoiced` to the response with the `200` status
- **2026-10-18** `afd04ad39e80`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mixedbread/apis/mxbai-omni/changes/v1/billing/costs/get.md)

---

[API](https://skmtc.dev/mixedbread/apis/mxbai-omni.md) - [All operations](https://skmtc.dev/mixedbread/apis/mxbai-omni/llms.txt) - [OpenAPI document](https://skmtc.dev/mixedbread/apis/mxbai-omni/revisions/da24b4f7e983?raw)
