Analytics

Files generated over time

Changed on

Media files generated per hour, day, week or month in timezone, split into video, image, audio and other. Every generated file counts once, when it was made (clips inside a render and since-deleted files included; uploads and cache replays not). Filters apply through the job that made the file. No comparison period.

All analytics endpoints return { "data": ..., "meta": ... }. meta carries the resolved range (from inclusive, to exclusive, ISO 8601 UTC), timezone, the comparison period, applied filters, data_as_of, money_unit, time_basis and attribution_scope.

Amounts are whole credits; fields ending in _cents are credits (1 credit = 1 cent). Charges are counted when they were posted to the ledger. On team accounts, non-members only see their own identity dimensions (attribution_scope: self); others collapse into "Other ..." groups.

With format=csv the response is text/csv.

get/analytics/files

Request

  • Base URL: https://api.varg.ai/v2
  • URL: https://api.varg.ai/v2/analytics/files
  • Auth: HTTP bearer

Query parameters

fromstring

Range start, inclusive. YYYY-MM-DD (local midnight in timezone), a local date-time (2026-09-01T09:30), or an ISO 8601 instant with offset. Default: to minus 30 days. Ranges are limited to 366 days.

tostring

Range end, exclusive. Same formats as from. Default is now.

timezonestring

IANA timezone used for date-only bounds and calendar buckets. Default UTC.

toolstring

Filter by capability. Comma-separated tool keys (video, image, speech, music, render, pipeline, ...) or none. Up to 50 values.

modelstring

Filter by model. Comma-separated model ids or none. Up to 50 values.

workspace_idstring

Filter by folder. Comma-separated folder ids or none (no folder). Up to 50 values.

api_key_idstring

Filter by the API key that started the run. Comma-separated key ids or none. Up to 50 values.

member_idstring

Filter by the person who started the run. Comma-separated user ids or none. Up to 50 values.

creatorstring

Filter by creator: api_key:<id> (a personal API key) or member:<id> (a person), comma-separated, or none. Up to 50 values.

sourcestring

Filter by how the run was started. Comma-separated values of app (a person in the web app), api (API key, SDK, CLI), mcp (an agent via MCP), internal (varg system keys), unknown.

statusstring

Filter by the charged job's status. Comma-separated values of completed, failed, cancelled, awaiting_confirmation, running, submitting, queued, unknown.

bucket_width'1h' | '1d' | '1w' | '1mo'

Calendar bucket size in timezone. 1h is limited to ranges of 31 days or less. Default 1d.

format'json' | 'csv'

json (default) returns the { data, meta } envelope. csv returns the same rows as text/csv with a Content-Disposition attachment filename. Amounts are in credits.

Response

Result envelope (JSON) or CSV export

Example response

{
  "meta": {
    "definition_version": "2026-09-28",
    "timezone": "UTC"
  }
}

Changes