Radicas Docs
API referenceGenerated

Costs

GET
/costs

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

group_by*Group By

Value in

  • "model"
  • "agent"
  • "day"

Response Body

application/json

application/json

curl -X GET "https://example.com/costs?group_by=model"
[  {    "group": "string",    "input_tokens": 0,    "output_tokens": 0,    "reasoning_tokens": 0,    "calls": 0,    "estimated_cost_usd": "string",    "unpriced_spans": 0  }]
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}