Estimate Hedra Generation Cost
hedra_estimate_costEstimate 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
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The model-specific input object to price, matching the shape from hedra_get_model_input_schema. | |
| model_id | Yes | The model's public id (e.g. 'seedance-20', 'gpt-image-2', 'hedra-avatar'). Get valid ids from hedra_list_models. |