get_model_price
Get a model's price
Rates for one model of any kind. Token rates are USD per million tokens: input (in), output (out), cache read (cr), cache write (cw, cw1h) and audio (ain, aout), with batch, priority and long-context tiers. Models billed per image, second, character, query or page have a unit rate (unit), and may have size, quality or resolution variants (v:...).
输入参数model必填provider
compare_models
Compare models on cost
Cost of the same call on several models, per call and per month: tokens for text, embedding and realtime models, units (images, seconds, characters, queries or pages) for the rest.
输入参数unitsmodels必填variantinput_tokenscached_tokensoutput_tokenscalls_per_month
Current models in the price book, cheapest first, for one provider or one kind: text, embedding, realtime, image, video, speech, transcription, rerank or ocr.
输入参数kindlimitproviderinclude_retiring
simulate_workload
Simulate a workload
A month of calls across any mix of models, at list prices: each line's cost per call and per month, the total, a projection with monthly growth, where each line ranks among every current model of its kind, the same model on other hosts, and cheaper models from the same provider. Usage is per call.
输入参数lines必填monthsgrowth_pct