UNPKG

ai-meter

Version:

A javascript library designed to estimate AI models tokens and its API costs.

18 lines 464 B
export type CostRequest = { model: string; }; export type CostResponse = { pricing_mode: string; cost_per_input_unit: string; cost_per_cached_input_unit: string; cost_per_output_unit: string; last_verified_at: string; }; export type CostService = { getCost: (request: CostRequest) => Promise<CostResponse>; }; export type CalculatedCostResponse = { cost: number; cost_details: CostResponse; }; //# sourceMappingURL=cost.d.ts.map