Interface BillingInfo

Billing information interface for cost tracking and analysis. Contains all information needed for cost calculation and billing reports.

interface BillingInfo {
    model: string;
    tokenUsage: TokenUsage;
    estimatedCost: number;
    timestamp: Date;
}

Properties

model: string

The OpenAI model used for this operation

tokenUsage: TokenUsage

Token usage details for this operation

estimatedCost: number

Estimated cost in USD for this operation

timestamp: Date

Timestamp when this billing information was created