Estimate run cost
estimate_run_costEstimate what one run of a pipeline will charge the credit balance, which steps the money goes to (lines, each clip-priced step with the length it was priced over in basis), the files it works on (sources: name, length, size, and whether each was uploaded or made with a model), and whether the current balance covers it. Estimates use the draft graph, the same one run_pipeline executes, with inputs applied: pass the same inputs the run will get (a File node's URL changes what a clip-priced step costs), or the price is for the values saved on the canvas. When a video step would render the same clip for far less on Veo 3.1 Lite, cheaper names it with the run's price on it. When the balance covers neither, preview prices a first look it does cover: the first video step alone as a short Veo 3.1 Lite clip, which run_pipeline with preview: true renders. Call this before running a pipeline you built or changed in this conversation, tell the person the price (and the preview's, when there is one), and wait for their go-ahead before run_pipeline. Pass the returned quoteId to run_pipeline: it starts the run at this price once, and refuses if the pipeline changed since (estimate again then). Clients that show panels put the estimate in front of them with a Start render button, which sends that go-ahead as their message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pipelineId": "<pipelineId>"
},
"name": "estimate_run_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | The inputs run_pipeline will be given, keyed by entry node id the same way: a Text Input node's text, a File node's URL. The price is for a run with these, and the quote holds the run to it. | |
| pipelineId | Yes |