/** * Model Pricing Data * * Static pricing reference for LLM models across providers. * Used by compare_models (optimization.ts) and cost-leak-detector.ts * for client-side model comparisons and cross-provider arbitrage checks. * * Prices are in USD per 1M tokens, reconciled against the gateway pricing table * (agentledger apps/gateway/src/cost.ts — verified against provider pricing pages * as of May 2026). Update this file when providers change pricing or when the * gateway table changes. * * Providers covered: openai, anthropic, google, xai, mistral, cohere */ export type ModelProvider = 'openai' | 'anthropic' | 'google' | 'xai' | 'mistral' | 'cohere'; export type ModelTier = 'frontier' | 'balanced' | 'efficient' | 'budget'; export interface ModelPricingEntry { model: string; provider: ModelProvider; tier: ModelTier; /** USD per 1M input tokens */ input_cost_per_1m: number; /** USD per 1M output tokens (0 for embedding-only models) */ output_cost_per_1m: number; /** Maximum context window in tokens */ context_window: number; supports_batch: boolean; supports_caching: boolean; } /** * Canonical model pricing map. * Keys are the canonical model identifiers. * Use getModelPricing() for alias-aware lookups. */ export declare const MODEL_PRICING: Record; /** * Look up pricing for a model, resolving aliases automatically. * Returns undefined if the model is not found. * * @example * getModelPricing('mistral-large-latest') // resolves to mistral-large entry * getModelPricing('gpt-4o') // direct lookup */ export declare function getModelPricing(modelName: string): ModelPricingEntry | undefined; /** * Get all models for a given provider, sorted by input cost descending. */ export declare function getModelsByProvider(provider: ModelProvider): ModelPricingEntry[]; /** * Get all models for a given tier, sorted by input cost ascending. */ export declare function getModelsByTier(tier: ModelTier): ModelPricingEntry[]; /** * Get the list of all providers with at least one model entry. */ export declare function getCoveredProviders(): ModelProvider[]; //# sourceMappingURL=model-pricing.d.ts.map