Skip to main content

kobana dashboards ai-usage

Get AI usage

Commands of kobana dashboards ai-usage. Every global option (Global options) applies here.

CommandHTTPDescription
ai-usageGET /v1/ai_usageGet AI usage

ai-usage​

Get AI usage

kobana dashboards ai-usage [OPTIONS]

GET /v1/ai_usage

AI consumption, price only (cost and margin never leave): totals, daily breakdown and latest turns of the workspace of the call, plus the month to date, grants, limits, credit balance and whether the next turn is allowed — those for the whole organization, as the limit and the credit are shared. Default period: current month (America/Sao_Paulo), at most 366 days.

Query parameters

NameTypeRequiredDescription
start_datestringnoFirst day (YYYY-MM-DD).
end_datestringnoLast day (YYYY-MM-DD).
daysintegernoThe last N days, instead of a date range.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The AI usage.
404Resource not found in the current organization.
422Request body failed validation.