estimate_cost
Calculate image generation costs before processing based on quality settings and output quantity to manage media production budgets.
Instructions
Estimate the cost of an image generation before executing. Cost: $0.18
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | Generation quality level | standard |
| num_outputs | No | Number of images to generate |
Implementation Reference
- mcp/vap_mcp_proxy.py:207-218 (handler)The `estimate_cost` tool (listed in the header comment) is not explicitly handled in `handle_tools_call`. Instead, it is caught by the default case and forwarded to the remote MCP API server via `make_request`.
if tool_name == "estimate_video_cost": return _handle_estimate_video_cost(arguments) if tool_name == "get_task": return _handle_get_task(arguments) # Default: forward to MCP API response = make_request("/tools/call", { "name": tool_name, "arguments": arguments }) return response