Skip to main content
POST
Estimate workflow credits
Returns the total microcredit cost of a workflow run, along with a per-node breakdown so you can render the same number on a workflow summary and on individual node cards.
Uses the same pricing engine as POST /v1/nodes/estimate-credits — the response guarantees totalMicrocredits === sum(estimates[].microcredits) by construction.

Authorizations

string
required
Bearer API key. Format: Bearer gx_your_api_key.

Body

array
required
Array of node configurations that make up the workflow. Capped at the per-workflow node limit enforced by the workflow editor.

Response

number
Total cost of running the whole workflow. Equals the sum of estimates[].microcredits.
array
Per-node breakdown, in input order.

Request

Response example

Errors