Skip to main content

Interface: TokenUsageEntry

Individual token usage record persisted to Flashcore.

Properties​

createdAt​

createdAt: number;

Timestamp (ms) when the usage occurred.


id​

id: string;

Unique identifier assigned to the usage entry.


kind?​

optional kind: string;

Optional usage category describing the request.


metadata?​

optional metadata: Record<string, unknown>;

Optional metadata for downstream analytics.


model​

model: string;

Model for which tokens were consumed.


tokensIn​

tokensIn: number;

Number of prompt tokens recorded.


tokensOut​

tokensOut: number;

Number of completion tokens recorded.


total​

total: number;

Combined total tokens.