Schema:

ACCOUNT_USAGE

CORTEX_FINE_TUNING_USAGE_HISTORY view

This Account Usage view can be used to query the training usage history of Cortex Fine-tuning. This view includes the number of tokens processed and the training credits consumed by Cortex Fine-tuning jobs, aggregated by the job’s base model and the hour in which the job completed. This view only contains credits consumed for fine-tuning training but not costs for using the fine-tuned model in inference, costs for storage, or costs associated with data replication. For inference usage, see CORTEX_FUNCTIONS_USAGE_HISTORY view. For more information, see Cost considerations.

Columns

Column NameData TypeDescription
START_TIMETIMESTAMP_LTZStart of the specified time range in which the Cortex Fine-tuning job terminated.
END_TIMETIMESTAMP_LTZEnd of the specified time range in which the Cortex Fine-tuning job terminated.
MODEL_NAMEVARCHARName of the base model.
TOKEN_CREDITSNUMBERNumber of credits billed for Cortex Fine-tuning usage based on tokens processed by training jobs that terminated during the specified time range.
TOKENSNUMBERNumber of tokens billed for Cortex Fine-tuning jobs terminated during the specified time range.

Usage notes

  • The view provides up-to-date credit usage for an account within the last 365 days (1 year).
  • In some cases where a model is used but is not billed, the model column may be empty.