Estimate workflow credits
Workflows
Estimate workflow credits
Total microcredit estimate for a workflow, plus a per-node breakdown.
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
Bearer API key. Format:
Bearer gx_your_api_key.Body
Array of node configurations that make up the workflow. Capped at the
per-workflow node limit enforced by the workflow editor.
Response
Total cost of running the whole workflow. Equals the sum of
estimates[].microcredits.Per-node breakdown, in input order.
Request
- cURL
- Node.js
- Python
Response example
Errors
| Status | Reason |
|---|---|
400 | Invalid body, exceeds max nodes per workflow, or unparseable JSON |
401 | Missing or invalid API key |
500 | Pricing engine failure |