Skip to main content

UsageTransaction

Description

A record of credits spent on a model invocation

Properties

NameTypeDescriptionNotes
customerIdUUIDOwning customer account[optional]
spentAtOffsetDateTimeWhen the usage occurred[optional]
creditsBigDecimalHow many credits were consumed[optional]
usageTypeStringMetering category (llm_tokens, workflow_run, subscription, manual_adjustment)[optional]
meteredUnitsDoubleUsage meter units consumed (for example total tokens or workflow runtime units)[optional]
meterNameStringStripe meter/event name used for reconciliation[optional]
modelProviderStringThe LLM provider (e.g. openai, llama)[optional]
modelStringThe specific model name or ID[optional]
promptTokensIntegerNumber of tokens in the prompt[optional]
completionTokensIntegerNumber of tokens in the completion[optional]
idempotencyKeyUUIDEnsures no double-charge[optional]
idUUIDUnique identifier for object in the system[optional] [readonly]
ownerIdUUIDUUID of owner of the object in the system[optional] [readonly]
createdDateOffsetDateTimeDate of object creation[optional] [readonly]
keyHashStringData, including hash of the key(s) used to encrypt this record.[optional] [readonly]
lastAccessedByIdUUIDLast user to access object[optional] [readonly]
lastAccessedDateOffsetDateTimeTimestamp of last access of object[optional] [readonly]
lastModifiedByIdUUIDUnique identifier for user who last modifed the object in the system[optional] [readonly]
lastModifiedDateOffsetDateTimeDate of last object modification[optional] [readonly]
trashedBooleanIndicates if the object is trashed (soft deleted)[optional]

Implemented Interfaces

  • Serializable

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0.2-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2026-04-02T00:49:23.764634-07:00[America/Los_Angeles]