POST
/api/v1/compute-tools/jq-output$0.01 USDCRun a caller-supplied jq filter against JSON input with real jq 1.8.2 compiled to WebAssembly.
An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
curl -i -X POST "https://www.brainiac.software/api/v1/compute-tools/jq-output" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"filter": ".items[] | select(.qty > 1) | .sku",
"input": {
"items": [
{
"sku": "A-1",
"qty": 2
},
{
"sku": "B-2",
"qty": 1
}
]
},
"options": {
"compact": true
}
}
JSON{
"status": "complete",
"stdout": "\"A-1\"",
"outputs": [
"A-1"
],
"exitCode": 0,
"error": null,
"elapsedMs": 7,
"truncated": false,
"overdue": false,
"jqVersion": "1.8.2",
"sources": [
{
"source": "jq 1.8.2 via jq-wasm 3.0.0-jq-1.8.2",
"url": "https://github.com/jqlang/jq",
"licence": "MIT",
"retrievedAt": "2026-07-05",
"status": "ok"
}
],
"limitations": [
"No $ENV, input_filename, module loading, or filesystem access.",
"The 2 s wall budget is measured, not pre-emptive; a pathological filter can run longer."
]
}HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; status failed or empty payloads return non-2xx and are not charged.
All six endpoints are pure in-process computation on the request; no filesystem, network, or database access. jq runs with a measured 2 s budget and a 4 MB output cap; a pathological filter can exceed the budget before it returns. The cube solver accepts face turns only and reports half-turn-metric solutions.