estimate_video_cost
Calculate video generation costs based on duration, resolution, and audio settings to plan media production budgets.
Instructions
Estimate the cost of a video generation. Cost: $1.96 (Veo 3.1)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Video duration in seconds | |
| generate_audio | No | Whether audio will be generated | |
| resolution | No | Video resolution. 1080p adds +33% cost | 720p |
Implementation Reference
- mcp/vap_mcp_proxy.py:289-310 (handler)The handler function for estimate_video_cost tool which performs local cost calculation.
def _handle_estimate_video_cost(arguments: Dict) -> Dict: """ Handle estimate_video_cost tool call (Directive #242: Veo 3.1). Local calculation - no API call needed. """ duration = arguments.get("duration", 8) generate_audio = arguments.get("generate_audio", True) # Validate duration (Veo 3.1: 4, 6, 8 seconds) if duration not in (4, 6, 8): duration = 8 cost_table = VIDEO_COSTS_WITH_AUDIO if generate_audio else VIDEO_COSTS_NO_AUDIO cost = cost_table.get(duration, 4.80) return { "content": [{ "type": "text", "text": f"Video Generation Cost: $1.96 USD (fixed price)\n\nProvider: Veo 3.1\nRequires: Tier 2+" }] } - mcp/vap_mcp_proxy.py:207-208 (registration)The registration/dispatch logic that routes the estimate_video_cost tool call to its handler.
if tool_name == "estimate_video_cost": return _handle_estimate_video_cost(arguments)