stackfacts_models_estimate
Read-onlyIdempotent
Estimate the USD cost of an LLM call from input, output and cached token counts, exact to the micro-dollar, with the price lines used.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | provider/model id, e.g. openai/gpt-4o | |
| input_tokens | No | Uncached input tokens | |
| cached_tokens | No | Cached input tokens (cache reads) | |
| output_tokens | No | Output tokens |