Knowledge

A base's costs

GET
/api/v1/knowledge/bases/{kb_id}/costs

What the base's ingestion and searches cost, grouped by group_by (day, stage, document or model) from since to until (ISO dates or times; this month by default).

More in Knowledge API.

apiKey
headerAuthorizationBearer <token>

An API key, sk-syn- and 32 characters. On SynapseOrch Cloud an owner or admin makes it under Settings → Developer; on a self-hosted install, under Settings → API Keys.

kb_id*string
group_by?string
Default"day"
since?string|null
until?string|null
limit?integer
Range1 <= value <= 1000
Default1000

Response Body

Successful Response

application/json
  1. response
[index: integer]?
curl -X GET "https://api.synapseorch.com/api/v1/knowledge/bases/kb_01a10d3f5a7c9e1b3d5f7a9c1e3b5d7f/costs" \  -H "Authorization: Bearer sk-syn-..."
[  {    "key": "string",    "est_usd": 0,    "charged_microusd": 0,    "input_tokens": 0,    "units": 0  }]