Skip to content

projectCallCost

projectCallCost(model, context, options?): Cost

Defined in: packages/gateway/src/cost.ts:170

The most the next call can cost, priced as projectCost() prices it: over estimateInputTokens(context) and the call’s maxOutputTokens, or the model’s own output limit when the options leave it out. Priced with the model’s catalog entry, so a model the catalog lacks projects { total: null, basis: "unknown" }.

Model

ModelContext

ModelCallOptions = {}

Cost

These docs are licensedCC BY 4.0. Thelicence text is in the repository.