estimate_cost
Calculate the cost of an LLM API request by providing model ID, input tokens, output tokens, and optional currency (CNY or USD).
Instructions
Estimate the cost of a single request for a given model and token counts.
Args: model_id: model id from list_llm_prices (e.g. "deepseek-v4-pro"). input_tokens: number of input (prompt) tokens. output_tokens: number of output (completion) tokens. currency: "CNY" (default) or "USD".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | CNY | |
| model_id | Yes | ||
| input_tokens | Yes | ||
| output_tokens | Yes |