llmwire - v2.2.0
GitHub
npm
llms.txt
Preparing search index...
llmwire/cost
estimateCost
Function estimateCost
estimateCost
(
usage
:
TokenUsage
|
undefined
,
model
:
string
,
table
?:
Record
<
string
,
Price
>
,
)
:
number
|
undefined
USD for one call. Cached prompt tokens are billed at the cache price when the table has one.
Parameters
usage
:
TokenUsage
|
undefined
model
:
string
table
:
Record
<
string
,
Price
>
= PRICES
Returns
number
|
undefined
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
GitHub
npm
llms.txt
llmwire - v2.2.0
Loading...
USD for one call. Cached prompt tokens are billed at the cache price when the table has one.