Usage breakdown by model
GET /api/workspaces/{workspaceId}/usage/by-model
GET
/api/workspaces/{workspaceId}/usage/by-model
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” workspaceId
required
string
Query Parameters
Section titled “Query Parameters ” from
string
to
string
Responses
Section titled “ Responses ”Per-model usage breakdown.
object
models
required
Array
object
totalInputTokens
required
number
totalOutputTokens
required
number
totalCacheReadTokens
required
number
totalCacheWriteTokens
required
number
totalReasoningTokens
required
number
totalTokens
required
number
totalCostUsd
required
number
invocationCount
required
number
modelId
required
string | null
Invalid request
object
success
boolean
error
required
string
Example
Human-readable error messageAuthentication required
object
success
boolean
error
required
string
Example
Human-readable error messageForbidden
object
success
boolean
error
required
string
Example
Human-readable error messageNot found
object
success
boolean
error
required
string
Example
Human-readable error messageConflict
object
success
boolean
error
required
string
Example
Human-readable error messageInternal server error
object
success
boolean
error
required
string
Example
Human-readable error message