402 Payment Required, and Monid settles it via a facilitator.
No workspace, no budget, no top-ups — payment is collected on-chain, per run.
x402 covers execution and retrieval only. Discovery and inspection still require a normal Monid API key — see What the API key is still for.
Prerequisites
- An x402-compatible client (e.g.
@x402/fetch). - A wallet funded with USDC and native gas on your chosen network (see below).
Supported networks
Monid advertises every supported network in its 402accepts array. Your client picks by matching the network it wants — don’t blindly take accepts[0].
Minimum price:
$0.01. Monid raises the advertised price to this floor if the run’s quote is lower.Metered endpoints (time-billed) are not available on x402 — x402 is a single fixed upfront payment.Execute a run
Instead of running with the CLI:POST to https://x402.monid.ai/v1/run:
402, signs a USDC authorization, retries the request, and returns the run body once the payment is settled and the run completes.
input may carry { body, queryParams, pathParams } — the same shape as the standard /v1/run endpoint.
Response
200— run completed. Body includesrunId,provider,endpoint,status,output,providerResponse,price,billing,billedUnits, andpollUrl. The HTTP status mirrors the provider’s own status.408—TIMED_OUT. Zero-billed.400— invalid input, or an unsupported (metered) endpoint.
Retrieve a run
Instead of getting a run with the CLI:GET the pollUrl returned by the pay response:
Response
200— run status and full body (output,providerResponse,price,cost, timestamps).401— signature invalid.403— you are not the wallet that paid for this run.404— run not found.
List runs
x402 does not support listing runs. Access control is per-run wallet ownership, and there’s no workspace to scope a list to. Retain eachrunId / pollUrl from your pay responses to retrieve them later.
If you need to list runs, use the workspace-scoped GET /v1/runs with an API key.
What the API key is still for
Even as an x402 user, you need a Monid API key for discovery, inspection, and listing runs.
Typical loop: discover / inspect with your API key → pay and run with x402 → retrieve with x402.
Next steps
- Discover endpoints with your API key
- Inspect an endpoint before you pay
- API Reference for the full
/v1/*surface