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" }.
Parameters
Section titled “Parameters”Model
context
Section titled “context”ModelContext
options?
Section titled “options?”ModelCallOptions = {}
Returns
Section titled “Returns”Cost
These docs are licensedCC BY 4.0. Thelicence text is in the repository.