Install
openclaw skills install @unixlamadev-spec/doc-minerSummarize a specific document through AIProx (aiprox.dev): pasted text, a public web page or a PDF URL, via one POST /v1/summarize for 40 sats, paid in Bitcoin Lightning (L402 or a LightningProx spend token). Returns a summary and key points. Use it only when the user explicitly asks to summarize a given document or URL and agrees to pay.
openclaw skills install @unixlamadev-spec/doc-minerDoc Miner calls AIProx's summarize endpoint. Send pasted text, or the URL of a web page or PDF. You get a summary and key points.
https://aiprox.dev, together with your payment credential (the spend token in the X-Spend-Token header, or an L402 credential). For a URL, AIProx fetches the page or PDF (up to 10 MB). An AI model on LightningProx writes the summary.POST https://aiprox.dev/v1/summarize). A call that fails after payment is refunded automatically.lnpx_...). Send it as the header X-Spend-Token: $AIPROX_SPEND_TOKEN. Get one at https://lightningprox.com/topup, or a free 400-sat, 7-day trial at https://aiprox.dev/start.HTTP 402 with amount_sats: 40, a Lightning invoice and a macaroon. Show the invoice to the user. After they pay it in their own wallet, send the identical request again with the header Authorization: L402 <macaroon>:<preimage>. Each credential pays for one call.POST https://aiprox.dev/v1/summarize with Content-Type: application/json.
Send either text or url, not both (sending both is a 400 invalid_body).
| Field | Notes |
|---|---|
text | Text to summarize, up to 20,000 characters |
url | A public http(s) URL of a web page or a PDF (up to 10 MB). Redirects are not followed, so send the final URL. |
# A PDF by URL
curl https://aiprox.dev/v1/summarize \
-H "Content-Type: application/json" \
-H "X-Spend-Token: $AIPROX_SPEND_TOKEN" \
-d '{"url": "https://bitcoin.org/bitcoin.pdf"}'
# Pasted text
curl https://aiprox.dev/v1/summarize \
-H "Content-Type: application/json" \
-H "X-Spend-Token: $AIPROX_SPEND_TOKEN" \
-d '{"text": "Paste up to 20,000 characters here..."}'
{
"status": "ok",
"result": {
"summary": "The paper proposes a peer-to-peer electronic cash system...",
"key_points": ["...", "...", "..."],
"source_type": "pdf",
"source_url": "https://bitcoin.org/bitcoin.pdf"
},
"price_sats": 40,
"receipt_id": "orch_...",
"duration_ms": 14820
}
source_url appears only when you sent a url.
400):
missing_field, invalid_field, field_too_long;invalid_body (body is not a JSON object);invalid_url and url_not_allowed (private, loopback and link-local addresses are refused);payload_too_large (413, body over 256 KB).401: invalid or expired token;402 insufficient_balance: token balance too low;429 rate_limit_exceeded: 120 requests per hour and 1,000 per day per client IP on this endpoint, with Retry-After.{"status": "error", "error": "...", "message": "...", "receipt_id": "...", "price_sats": 40, "refund": {...}} with HTTP 415, 422, 502, 503 or 504. A spend token is credited back, or an L402 credential is restored, so the same Authorization header works again.receipt_id when contacting hello@aiprox.dev.Docs: https://aiprox.dev/docs.html · Terms: https://aiprox.dev/terms.html · Operated by LPX Digital Group LLC