client.usage.get_llm

A method of the Usage endpoint.

get_llm(id: int) Response

Get an individual usage statistic for a given organization

API URL: GET /usage/llm/{id}

import civis
client = civis.APIClient()
response = client.usage.get_llm(...)
Parameters:
idint

The ID of the usage statistic to get.

Returns:
civis.Response
  • 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.