Skip to main content
Glama

Estimate Hedra Generation Cost

hedra_estimate_cost
Read-only

Estimate the cost in USD of running a model with your input before submitting a job, so you can approve spend first. No job submission or wallet deduction occurs.

Instructions

Estimate the cost in USD of running a model with a given input, WITHOUT submitting a job or spending any wallet balance.

Strongly recommended before hedra_submit_job for expensive operations (long videos, 4K, high-duration audio) so the person can approve spend first. Some models cannot be precisely quoted until inputs are measured server-side (e.g. audio-length-dependent avatar video) — in that case the response indicates the price isn't quotable yet and the real cost will be shown if a submit is refused for insufficient balance.

Args:

  • model_id (string, required): the model's public id.

  • input (object, required): the same "input" object you'd pass to hedra_submit_job for this model — build it against hedra_get_model_input_schema.

Returns: JSON with the estimated price and currency (fields vary by model; some return {quotable:false} instead).

Examples:

  • Use when: about to generate a 4K video and want to confirm cost first

  • Don't use when: the model is cheap/fixed-price and the person hasn't asked about cost

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe model-specific input object to price, matching the shape from hedra_get_model_input_schema.
model_idYesThe model's public id (e.g. 'seedance-20', 'gpt-image-2', 'hedra-avatar'). Get valid ids from hedra_list_models.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=true and destructiveHint=false, and the description reinforces safety with 'WITHOUT submitting a job or spending any wallet balance.' It adds valuable nuance about non-quotable models (server-side measurement, refusal fallback), which goes beyond the annotations. No contradiction; slight room for more detail on idempotency but not significant.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (intro, args, returns, examples) and no filler. It is slightly long due to duplicate parameter listing, but each section adds value and the examples are practical. The front-loaded first sentence captures the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool without an output schema, the description covers the key aspects: purpose, safety, parameter construction, return variability, and edge cases like non-quotable prices. It references sibling tools for building inputs and is robust enough for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds meaningful cross-tool guidance: the input object is 'the same input object you'd pass to hedra_submit_job' and should be 'built against hedra_get_model_input_schema.' This provides context not present in the schema, earning a 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Estimate the cost in USD of running a model with a given input, WITHOUT submitting a job or spending any wallet balance,' using a specific verb and resource and explicitly distinguishing it from job submission. This clearly separates it from sibling tools like hedra_submit_job.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly recommends using it before hedra_submit_job for expensive operations and provides concrete use/don't-use examples ('Use when: about to generate a 4K video... Don't use when: the model is cheap/fixed-price'). This names the alternative and gives clear criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/HemanthDonga/hedra-mcp-server'

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