client.usage.list_llm
A method of the Usage endpoint.
- list_llm(*, org_id: int = None, start_date: str = None, end_date: str = None) ListResponse
Get a list of usage statistics for a given organization
API URL:
GET /usage/llmimport civis client = civis.APIClient() response = client.usage.list_llm(...)
- Parameters:
- org_idint, optional
The ID of the organization to get usage statistics for.
- start_datestr, optional
The start date of the range to get usage statistics for.”“Defaults to the start of the current month if neither start_date nor end_date is specified.
- end_datestr, optional
The end date of the range to get usage statistics for.”“Defaults to the end of the current day if neither start_date nor end_date is specified.
- Returns:
civis.ListResponse- idint
The ID of the usage statistic to get.
- run_idint
The ID of the run which contributed this usage.
- job_idint
The ID of the job which contributed this usage.
- user_idint
The ID of the user who contributed this usage.
- organization_idint
The organization of the user who contributed this usage.
- run_created_atstr (date-time)
When the run was created at.
- run_timeint
The duration of the run in seconds.
- creditsfloat (float)
The number of credits used.
- input_tokensint
The number of tokens input to the run.
- output_tokensint
The number of tokens output from the run.
- model_idstr
The ID of the LLM model used.