Skip to main content

UsageTransaction

Description

A record of credits spent on a model invocation

Properties

NameTypeDescriptionNotes
spentAtOffsetDateTimeWhen the usage occurred
creditsBigDecimalHow many credits were consumed
modelProviderStringThe LLM provider (e.g. openai, llama)
modelStringThe specific model name or ID
promptTokensIntegerNumber of tokens in the prompt
completionTokensIntegerNumber of tokens in the completion
idUUIDUnique identifier for object in the system[optional]
ownerIdUUIDUUID of owner of the object in the system[optional]
createdDateOffsetDateTimeDate of object creation[optional]
keyHashStringData, including hash of the key(s) used to encrypt this record.[optional]
lastAccessedByIdUUIDLast user to access object[optional]
lastAccessedDateOffsetDateTimeTimestamp of last access of object[optional]
lastModifiedByIdUUIDUnique identifier for user who last modifed the object in the system[optional]
lastModifiedDateOffsetDateTimeDate of last object modification[optional]

Implemented Interfaces

  • Serializable

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-06-19T15:00:41.043640-07:00[America/Los_Angeles]