Skip to main content
Glama

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
NameRequiredDescriptionDefault
durationNoVideo duration in seconds
generate_audioNoWhether audio will be generated
resolutionNoVideo resolution. 1080p adds +33% cost720p

Implementation Reference

  • 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+"
            }]
        }
  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elestirelbilinc-sketch/Media-infrastructure'

If you have feedback or need assistance with the MCP directory API, please join our Discord server