Skip to main content
GET
/
api
/
billing
/
summary
/
{agent_id}
Get Billing Summary By Agent
curl --request GET \
  --url https://api.example.com/api/billing/summary/{agent_id}
{
  "total_calls": 123,
  "billing": {
    "stt": {
      "deepgram": 0,
      "sarvam": 0
    },
    "tts": {
      "elevenlabs": 0,
      "sarvam": 0
    },
    "llm": {
      "openai": 0,
      "openrouter": 0
    }
  },
  "grand_total": 123,
  "currency": "USD"
}

Path Parameters

agent_id
integer
required

Response

Successful Response

Response schema for /billing/summary endpoint.

total_calls
integer
required
billing
BillingBreakdown · object
required

Service-wise billing breakdown.

grand_total
number
required
currency
string
default:USD