GET
Get Llm Usage
Read your organizationтАЩs Bibha BRAHMA-30B token usage and cost. GET /api/v1/voice-engine/llm/usage BRAHMA tokens are metered per organization. Every chat-completion тАФ streaming or not тАФ counts the prompt and completion tokens it consumed against the organization that owns the API key. Prompt and completion tokens are metered separately because they are priced at separate input and output rates (input $2.00 per 1M tokens, output $27.92 per 1M tokens тАФ see Cost). This endpoint returns the aggregated view: prompt_tokens, completion_tokens, and total_tokens, along with the derived managed cost. Authenticate with your PeachDesk API key (X-API-Key); usage is always scoped to that keyтАЩs organization. Use the playground to send a live request and inspect the response.

Authorizations

Authorization
string
header
required

Interactive user session: the login JWT, sent as Authorization: Bearer <token>.

Query Parameters

days
integer
default:30

Response

Successful Response

The org's LLM token usage/cost тАФ the window rollup plus the live cycle counter. Reuses the voice usage-records read path (no new table).

window_start
string
required
window_end
string
required
llm_tokens
integer
required
llm_cost_usd
number
required
cycle_llm_tokens_used
integer
required
daily
Daily ┬╖ object[]
required