Pay per call with x402
Pay for a Nova tool call inline, in STX, sBTC or USDCx on Stacks.
In short
Your code will pay for a paid Nova tool in the same request, and only be charged if the tool runs.
Step 1 of 4
Send a POST to the tool's
/api/tools/<slug>/runendpoint with its input. A paid tool answers with HTTP 402 and apayment-requiredheader listing the accepted payments. Full guide
zadao.ai