Skip to main content
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

string
required
Bearer API key. Format: Bearer gx_your_api_key.

Body

array
required
Array of node configurations to estimate. Max 100 entries.

Response

array
One entry per request node, in input order.

Request

Response example

Errors