Skip to main content

SYS.ORGANIZATION.MODEL_USAGE

The sys.organization.model_usage table contains metadata for LLM model usage through Dremio.

Syntax
SELECT * FROM sys.organization.model_usage

Example Output

iduser_idmodel_provider_namemodel_nameinput_tokensoutput_tokensduration_msinteraction_idcreated_atnum_model_callsinteraction_type
000286ac-3162-4dcd-8d28-59dfa71aeae5408670d3-7d91-42ab-bd1e-908a5cd676e4Anthropic-Chatclaude-sonnet-4-202505145193682945cceec24c-a201-494d-87f6-34081cea87592025-08-01 04:48:55.0611CHAT

Columns

ColumnData TypeDescription
idvarcharThe UUID of the usage record.
user_idvarcharThe ID of the user who made the request.
project_idvarcharThe ID of the project where the request was made.
model_provider_namevarcharThe display name of the model provider configuration used to submit the interaction.
model_namevarcharThe name of the LLM model used during the interaction.
input_tokensfloatThe number of input tokens consumed, excluding cached tokens.
cached_read_input_tokensfloatThe number of cached read input tokens consumed.
cached_write_input_tokensfloatThe number of cached write input tokens consumed.
output_tokensfloatThe number of output tokens consumed.
duration_msfloatThe request execution time in milliseconds.
interaction_idvarcharThe ID of the interaction, such as a chat history session ID or job ID.
created_attimestampThe date and time when the usage record was created.
num_model_callsfloatThe number of model calls made in the usage record.
interaction_typevarcharThe type of interaction. Enum: CHAT, SQL.