Estimate node credits
Nodes
Estimate node credits
Batch microcredit estimate for a list of nodes, against the inputs you’d actually run them with.
POST
Estimate node credits
Returns a per-node microcredit estimate for an array of node configurations. Useful for surfacing live pricing in a UI (canvas card, playground form) before the user kicks off a run.
Pricing is computed by the same engine that charges credits at run time — this
endpoint mirrors the run-time cost exactly, without side effects. Pairs with
POST /v1/workflows/estimate-credits
via the invariant workflowEstimate.totalMicrocredits === sum(nodes[].microcredits).Authorizations
Bearer API key. Format:
Bearer gx_your_api_key.Body
Array of node configurations to estimate. Max 100 entries.
Response
One entry per request node, in input order.
Request
- cURL
- Node.js
- Python
Response example
Errors
| Status | Reason |
|---|---|
400 | Invalid body, more than 100 nodes, or unparseable JSON |
401 | Missing or invalid API key |
500 | Pricing engine failure |