# AIProx AIProx runs a task you describe in plain English: it splits the task into up to 4 steps, runs each step on one of its own bots (web search, general AI, sentiment, data analysis, scraping, code audit, vision, PDF, translation, email, prediction-market data, Solana token rug-pull risk check), in order, and returns one summarized answer with a per-step report and a receipt ID. Answers within 85 seconds; steps that did not finish are reported and the answer is marked "partial". ## Price and payment - 50 sats per call, Lightning only. - Spend token: X-Spend-Token: lnpx_... header (or "spend_token" in the body; the body wins). 50 sats are debited before the task runs. Tokens: https://lightningprox.com/topup - L402: a request without credentials returns HTTP 402 with a 50-sat invoice and a macaroon; pay it and retry with Authorization: L402 :. Each credential pays for one call. - Refunds are automatic when no step succeeds, the final step fails, or the request errors after payment: a spend token is credited; an L402 credential is restored (at most 2 times). - Free trial: 400 sats, 7 days, by email at https://aiprox.dev/start ## Request POST https://aiprox.dev/api/orchestrate {"task": "..."} — if "task" is absent, the last user message of a "messages" array or a "prompt" string is used. Optional: "capability" (one step on the best bot for it), "agent" (one step on a named bot), "image_url", "callback_url" (with capability or agent: 202 and a background job), "dry_run" (no charge, nothing runs). Step list: a task written as "Step 1: use search-bot to ... Step 2: use sentiment-bot to ..." runs those bots in order (at most 4). Limits: 10 KB body (2 MB for image tasks); 60 calls/hour and 500/day per spend token; 60 requests/minute per IP. ## Single-capability endpoints One capability per call, no orchestration, each at its own price. Paid the same way (L402 invoice for that price, or a spend-token debit of that price via X-Spend-Token or "spend_token" in the body; here the header wins if both are sent) and refunded the same way on failure. A missing or invalid field is a 400 before any invoice; a valid unpaid request is a 402. An empty body or {} without a credential gets the 402 (discovery probe). Success: {"status":"ok","result":{...},"price_sats":N,"receipt_id":"...","duration_ms":N}. Failure after payment: {"status":"error","error":"...","message":"...","refund":{...}}. 60 seconds per call. Limits: 120 requests/hour and 1,000/day per client IP on each endpoint (402 challenges included; 429 with Retry-After). URLs: http/https, public addresses only (private/loopback/link-local refused, 400 url_not_allowed); redirects are not followed (422 url_redirects with redirect_location, refunded). POST https://aiprox.dev/v1/search — AIProx AI Web Answer, 35 sats. {"query": "...", "max_results": 8} (query <= 500 chars, max_results 1-20 results searched). Result: query, summary, key_findings, sources (up to 5 source URLs). Raw search results (titles, snippets) are not returned; search content may not be stored, resold, redistributed or used to train/benchmark models (https://aiprox.dev/terms.html). -> {"status":"ok","result":{"query":"bitcoin lightning network adoption","summary":"The sources describe the Lightning Network as Bitcoin's layer-2 payment network...","key_findings":["..."],"sources":["https://lightning.network/","https://..."]},"price_sats":35,"receipt_id":"orch_...","duration_ms":6210} curl https://aiprox.dev/v1/search -H "Content-Type: application/json" -H "X-Spend-Token: lnpx_..." -d '{"query":"bitcoin lightning network adoption"}' curl https://aiprox.dev/v1/search -H "Content-Type: application/json" -H "Authorization: L402 :" -d '{"query":"bitcoin lightning network adoption"}' POST https://aiprox.dev/v1/extract — 20 sats. {"url": "https://..."}. Result: url, title, text (clean main text, <= 50,000 chars), length, truncated, content_type. HTML and plain text only. curl https://aiprox.dev/v1/extract -H "Content-Type: application/json" -H "X-Spend-Token: lnpx_..." -d '{"url":"https://example.com/"}' -> {"status":"ok","result":{"url":"https://example.com/","title":"Example Domain","text":"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.","length":156,"truncated":false,"content_type":"text/html"},"price_sats":20,"receipt_id":"orch_...","duration_ms":180} POST https://aiprox.dev/v1/summarize — 40 sats. {"text": "..."} (<= 20,000 chars) or {"url": "https://..."} (web page or PDF, <= 10 MB), not both. Result: summary, key_points, source_type, source_url. curl https://aiprox.dev/v1/summarize -H "Content-Type: application/json" -H "Authorization: L402 :" -d '{"url":"https://bitcoin.org/bitcoin.pdf"}' POST https://aiprox.dev/v1/translate — 40 sats. {"text": "...", "target_language": "Spanish"} (text <= 6,000 chars). Result: translated_text, source_language, target_language. curl https://aiprox.dev/v1/translate -H "Content-Type: application/json" -H "X-Spend-Token: lnpx_..." -d '{"text":"Payments settle in seconds.","target_language":"Spanish"}' An L402 credential pays up to its invoice's amount: sent to a dearer endpoint it gets a new 402 with "code": "credential_amount_too_low" and is not used. ## Other endpoints GET https://aiprox.dev/api/capabilities — capabilities AIProx can run now GET https://aiprox.dev/api/agents — AIProx bots ("routable": true) and directory listings ("routable": false) GET https://aiprox.dev/api/async/{job_id} POST https://aiprox.dev/api/agents/register — list an agent in the directory; AIProx never routes tasks to or pays listed agents ## Docs https://aiprox.dev/docs.html