/** * Per-model price table + a pure cost function (Open/Closed). * * Adding a model or provider is a TABLE edit here — never a change to the meter * or the call sites. Prices are list rates; keep them in one place so a rate * change is a one-line diff. * * Units: * - inputPerMTok / outputPerMTok : USD per 1,000,000 tokens * - audioPerMinute : USD per minute of audio (Whisper family) */ export interface ModelPrice { /** USD per 1M prompt/input tokens. */ inputPerMTok?: number; /** USD per 1M completion/output tokens. */ outputPerMTok?: number; /** USD per minute of transcribed audio. */ audioPerMinute?: number; } /** * List prices as of 2026-07. Sources: * - OpenAI gpt-4o / gpt-4o-mini / text-embedding-3-small / whisper-1: openai.com/pricing * - Groq whisper-large-v3: $0.111/hr (groq.com/pricing) */ export declare const MODEL_PRICES: Record; /** Minimal shape needed to price a call — a subset of {@link UsageEvent}. */ export interface Priceable { model: string; promptTokens?: number; completionTokens?: number; audioSeconds?: number; } /** * Pure cost in USD for one usage event. Unknown models (absent from the table) * cost 0 — pricing is best-effort telemetry, never a hard dependency. Missing * token/audio fields simply contribute nothing. */ export declare function costOf(event: Priceable): number; //# sourceMappingURL=pricing.d.ts.map