Skip to main content
Version: v1.6.1 🚧

View the total usage cost of all LLMs used in the past 24 hours

Overview​

In particular, a user can get the total usage cost of all large language models (LLMs) used within the past 24 hours

Example​

from h2ogpte import H2OGPTE

client = H2OGPTE(
address="https://h2ogpte.genai.h2o.ai",
api_key='sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
)

print(client.get_llm_usage_24h()) # The return value is a float, represented in USD.
0.002493

Feedback