Skip to main content
Glama

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
NameRequiredDescriptionDefault
qualityNoGeneration quality levelstandard
num_outputsNoNumber of images to generate

Implementation Reference

  • 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

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