Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

Get Project Billing Breakdown

GET/v1/projects/{project_id}/billing/breakdownGet Project Billing Breakdown

Retrieves the billing summary for a specific project, with various filter options or by grouping options.

Parameters

project_idstringpathrequired

The unique identifier of the project

startstring · datequery

Start date of the requested date range. Format accepted is YYYY-MM-DD

endstring · datequery

End date of the requested date range. Format accepted is YYYY-MM-DD

accessorstringquery

Filter for requests where a specific accessor was used

deploymentstringquery

Filter for requests where a specific deployment was used

one of "hosted", "beta", "self-hosted"

one of "hosted", "beta", "self-hosted"

tagstringquery

Filter for requests where a specific tag was used

line_itemstringquery

Filter requests by line item (e.g. streaming::nova-3)

groupingarrayquery

Group billing breakdown by one or more dimensions (accessor, deployment, line_item, tags)

Responses

200Billing breakdown responseapplication/json
objectBillingBreakdownV1Response

BillingBreakdownV1Response

endstring · daterequired

End date of the billing summary period

resolutionobjectrequired
Show child attributes
amountnumber · doublerequired

Amount of units

unitsstringrequired

Time unit for the resolution

resultsarray of objectrequired
Show child attributes
Show array items
dollarsstringrequired

USD cost of the billing for this grouping

groupingobjectrequired
Show child attributes
accessornull | string

Optional accessor identifier, null unless grouped by accessor.

deploymentnull | string

Optional deployment identifier, null unless grouped by deployment.

endstring · date

End date for this group

line_itemnull | string

Optional line item identifier, null unless grouped by line item.

startstring · date

Start date for this group

tagsarray of string

Optional list of tags, null unless grouped by tags.

Show child attributes
startstring · daterequired

Start date of the billing summmary period

Example response
{
  "end": "2026-06-09",
  "resolution": {
    "amount": 0,
    "units": "string"
  },
  "results": [
    {
      "dollars": "string",
      "grouping": {
        "accessor": "string",
        "deployment": "string",
        "end": "2026-06-09",
        "line_item": "string",
        "start": "2026-06-09",
        "tags": [
          "string"
        ]
      }
    }
  ],
  "start": "2026-06-09"
}
400Invalid Requestapplication/json
valueErrorResponse

ErrorResponse

oneOf · 3 options
Option 1stringErrorResponseTextError

ErrorResponseTextError

Option 2objectErrorResponseLegacyError

ErrorResponseLegacyError

err_codestring

The error code

err_msgstring

The error message

request_idstring

The request ID

Option 3objectErrorResponseModernError

ErrorResponseModernError

categorystring

The category of the error

detailsstring

A description of the error

messagestring

A message about the error

request_idstring

The unique identifier of the request

Example response
{
  "err_code": "string",
  "err_msg": "string",
  "request_id": "string"
}
Documentation menu