estimate_cost
Estimate AI model costs by supplying token counts for LLMs or unit counts for media models, such as images or seconds.
Instructions
Estimate the cost of using an AI model. For LLMs, provide token counts. For media models, provide unit counts. Example: estimate_cost({model_id: "fal-ai/flux-pro", usage: {images: 100}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | Usage parameters. LLMs: {input_tokens, output_tokens, requests}. Media: {units, images, seconds, requests} | |
| model_id | Yes | The model to estimate cost for |