Pricing
type Pricing = { cachedInputPerMillion?: number; inputPerMillion: number; outputPerMillion: number; peakMultiplier?: number; tiers?: { cachedInputPerMillion?: number; inputPerMillion: number; outputPerMillion: number; upToInputTokens?: number; }[];};单模型价格表(PricingSchema 推导)。
cachedInputPerMillion?
Section titled “cachedInputPerMillion?”optional cachedInputPerMillion?: number;inputPerMillion
Section titled “inputPerMillion”inputPerMillion: number;outputPerMillion
Section titled “outputPerMillion”outputPerMillion: number;peakMultiplier?
Section titled “peakMultiplier?”optional peakMultiplier?: number;tiers?
Section titled “tiers?”optional tiers?: { cachedInputPerMillion?: number; inputPerMillion: number; outputPerMillion: number; upToInputTokens?: number;}[];cachedInputPerMillion?
Section titled “cachedInputPerMillion?”optional cachedInputPerMillion?: number;inputPerMillion
Section titled “inputPerMillion”inputPerMillion: number;outputPerMillion
Section titled “outputPerMillion”outputPerMillion: number;upToInputTokens?
Section titled “upToInputTokens?”optional upToInputTokens?: number;本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。