Direct HTTP endpoints with x402 payment protocol.
https://api.ourocompute.com
Submit compute jobs via HTTP. Payment uses x402 — send a request, sign the USDC payment locally, re-send with the signature.
x402 is built on HTTP 402 (Payment Required). No API keys or accounts — your wallet is your identity.
curl -X POST https://api.ourocompute.com/api/compute/submit \
-H "Content-Type: application/json" \
-d '{"script": "echo hello", "cpus": 1, "time_limit_min": 1}'
# Response: 402 Payment Required
# Headers: payment-required: eyJ0eXAiOiJ4NDAyL...
# Body: { "price": "$0.0841", "breakdown": { ... } }curl -X POST https://api.ourocompute.com/api/compute/submit \
-H "Content-Type: application/json" \
-H "payment-signature: <your-signed-x402-payment>" \
-d '{"script": "echo hello", "cpus": 1, "time_limit_min": 1}'
# Response: 200 OK
# Body: { "job_id": "a1b2c3d4-...", "status": "pending", "price": "$0.0841" }Or use multi-file mode
curl -X POST https://api.ourocompute.com/api/compute/submit \
-H "Content-Type: application/json" \
-H "payment-signature: <your-signed-x402-payment>" \
-d '{
"files": [
{"path": "Dockerfile", "content": "FROM ouro-python\nRUN pip install requests\nENTRYPOINT [\"python\", \"main.py\"]"},
{"path": "main.py", "content": "import requests\nprint(requests.get(\"https://httpbin.org/ip\").json())"}
],
"cpus": 1,
"time_limit_min": 5
}'
# Response: 200 OK
# Body: { "job_id": "e5f6g7h8-...", "status": "pending", "price": "$0.0841" }curl https://api.ourocompute.com/api/jobs/{job_id}
# Response: 200 OK
# Body: { "id": "...", "status": "completed", "output": "hello\n", ... }Submit a compute job (script or multi-file mode)
Get a price quote without submitting a job
Get job details and output
Stream job status updates via SSE
Persistent storage quota usage and file listing
Delete a file from persistent storage
Aggregate P&L, job counts, sustainability ratio
Current ETH/USDC balances and recent snapshots
Builder code analytics and recent attribution entries
Decode ERC-8021 builder codes from a transaction
Machine-readable service manifest
Liveness probe
Readiness probe (checks DB, wallet)