{"openapi":"3.1.0","info":{"title":"Gate402 — agent compute, inference & data over x402","version":"1.0.0","description":"x402 payment gateway for AI agents: rent GPU/CPU compute (per-second), run open-model LLM inference (per-token), plus crypto/finance data and web tools. Each endpoint returns HTTP 402 unless paid via x402, Stripe MPP, or a valid X-API-Key.","x-keywords":["x402","x402 payment protocol","x402 payment gateway","x402 standard","agent payments","agent payment gateway","machine payments","pay per call","pay per token","USDC","HTTP 402","autonomous agents","AI agents","MCP server","no signup","agent-native","agent wallet","AI agent wallet","agent crypto wallet","wallet as a service","crypto wallet api","agent spend control","agent spending limits","agent budget","spend guardrails","agent spending caps","agent kill switch","agent payment approval","domain allowlist","Coinbase AgentKit alternative","Stripe Machine Payments alternative","LLM agent payments","GPU compute","rent GPU","on-demand compute","serverless inference","LLM inference API","per-token inference","Llama","Qwen","Mistral","on-chain data","DeFi","DEX","crypto market data","SEC filings","web scraping","agent tools","HEIC to JPG","file compress","upload fixer","JSON repair","smart contract scanner","ABI decode"],"x-capabilities":["agent-payments","agent-wallets","spend-control","compute","inference","market-data","web-tools","human-utilities"]},"servers":[{"url":"https://gate402.app"}],"paths":{"/v1/proxy":{"post":{"summary":"Fetch any public URL, render client-side JS, strip nav/ads, return clean LLM-ready Markdown.","operationId":"nodeproxy","x-pricing":{"amountUsdc":0.002,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"arguments":{"type":"object","properties":{"url":{"type":"string","description":"Public URL to fetch"}},"required":["url"]}},"required":["arguments"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"content":[{"type":"text","text":"# Title\n\nBody markdown…"}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/proxy/stealth":{"post":{"summary":"Anti-bot fetch for Cloudflare / JS-heavy protected pages: routed through rotating residential proxies with automatic JS rendering and CAPTCHA solving, returned as clean LLM-ready Markdown. Best-effort on the hardest targets.","operationId":"nodeproxy-stealth","x-pricing":{"amountUsdc":0.05,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Protected URL to scrape"}},"required":["url"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"content":[{"type":"text","text":"# Title\n\nContent…"}],"stealth":{"proxyUsed":true}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/minify":{"post":{"summary":"Compress text: strip filler, collapse JSON, densify prose. Cuts upstream LLM token spend ~40%.","operationId":"tokensqueezer","x-pricing":{"amountUsdc":0.005,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Text to compress"},"format":{"type":"string","enum":["auto","plain","markdown","json"]},"aggressive":{"type":"boolean"}},"required":["text"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"compressed":"Dense text…","stats":{"inputTokens":12000,"outputTokens":7200,"reductionPercent":40}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/onchain":{"post":{"summary":"On-chain wallet & token intelligence on Base: native + ERC-20 balances, EOA/contract detection, tx count, and token metadata. From public RPC.","operationId":"onchain_intel","x-pricing":{"amountUsdc":0.01,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Base address (wallet or token contract), 0x-hex."},"tokens":{"type":"array","items":{"type":"string"},"description":"Optional extra ERC-20 contract addresses to check."}},"required":["address"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x…","network":"eip155:8453","type":"wallet","native":{"symbol":"ETH","balance":"0.12"},"transactionCount":42,"holdings":[{"token":"0x833589…","symbol":"USDC","decimals":6,"balance":"26.82"}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/dex":{"post":{"summary":"Live DEX price, liquidity, and 24h volume for a Base token across its trading pairs.","operationId":"dex_market","x-pricing":{"amountUsdc":0.01,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Base ERC-20 token contract address."}},"required":["address"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x…","chain":"base","topPriceUsd":"1.00","pairs":[{"dex":"aerodrome","priceUsd":"1.00","liquidityUsd":1200000,"volume24h":450000}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/token-risk":{"post":{"summary":"Rug/tradeability risk verdict for a Base token: a 0-100 score and SAFE/CAUTION/AVOID call from liquidity depth, 24h volume, DEX diversity, pool age, ERC-20 validity, holder concentration, and a live honeypot/sell-tax simulation. Judgment for trading agents, not raw data.","operationId":"token_risk","x-pricing":{"amountUsdc":0.03,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Base ERC-20 token contract address."}},"required":["address"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x…","symbol":"DEGEN","score":82,"verdict":"SAFE","signals":{"liquidityUsd":2400000,"volume24h":180000,"pairs":6,"dexes":3,"poolAgeDays":640,"volLiqRatio":0.08,"isVerifiedErc20":true,"isHoneypot":false,"buyTaxPct":0,"sellTaxPct":0,"topHolderPct":22.2,"top10HolderPct":58.4,"holderCount":1227210},"checks":{"holderConcentration":true,"honeypotSim":true},"reasons":["Sells simulate successfully with ~0% tax — not a honeypot"],"recommendation":"SAFE — adequate liquidity/activity and sells simulate clean"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/launches":{"post":{"summary":"Radar of the freshest Base token launches (newest DEX pools), lightly pre-screened by liquidity/age/flow with quickFlags for obvious junk. Top-of-funnel discovery for trading agents — feeds token-risk / momentum / best-swap. From GeckoTerminal.","operationId":"launch_radar","x-pricing":{"amountUsdc":0.02,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"minLiquidityUsd":{"type":"number","description":"Minimum pool liquidity to include (default 1000)."},"limit":{"type":"number","description":"Max launches to return (default 15, cap 30)."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"chain":"base","count":1,"launches":[{"address":"0x…","symbol":"NEWCOIN","dex":"aerodrome","ageMinutes":18,"liquidityUsd":42000,"priceChangePct":{"h1":34.2},"buyPressureH1Pct":71,"quickFlags":["very_new"]}],"hint":"Vet with /v1/token-risk, /v1/momentum, /v1/best-swap."}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/best-swap":{"post":{"summary":"Best-execution intel for a Base token: which DEX pool to trade on and the estimated price impact + total cost for a given trade size, ranked across pools with a split suggestion. Constant-product estimate for trading agents — the execution plan, not a firm quote.","operationId":"best_swap","x-pricing":{"amountUsdc":0.02,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Base ERC-20 token contract address."},"sizeUsd":{"type":"number","description":"Trade size in USD (default 1000)."}},"required":["address"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x…","symbol":"DEGEN","sizeUsd":1000,"best":{"dex":"aerodrome","priceImpactPct":0.17,"feePct":0.3,"totalCostPct":0.47,"estTokensReceived":82900,"liquidityUsd":1200000},"splitSuggested":false,"recommendation":"Trade on aerodrome — ~0.47% total cost (impact + fee)"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/momentum":{"post":{"summary":"Factual momentum + order-flow signal for a Base token: price trend (5m-24h), buy/sell pressure, volume trend, classified RISING/FALLING/FLAT + ACCUMULATION/DISTRIBUTION and gated by a live honeypot check. The read for trading agents, not a prediction.","operationId":"momentum_signal","x-pricing":{"amountUsdc":0.02,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","description":"Base ERC-20 token contract address."}},"required":["address"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x…","symbol":"DEGEN","momentum":"RISING","flow":"ACCUMULATION","tradeable":true,"signals":{"priceChangePct":{"h1":4.2,"h6":9.1,"h24":12.5},"buyPressurePct":{"h1":74,"h24":58},"volumeTrend":"ACCELERATING","liquidityUsd":1275000},"safety":{"isHoneypot":false,"sellTaxPct":0,"thinLiquidity":false},"notes":["Price +4.2% (1h) with 74% of trades buys on accelerating volume","Rising price + net buying — constructive setup"]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/news":{"post":{"summary":"Recent news headlines + heuristic bull/bear sentiment for a ticker or topic.","operationId":"news_signal","x-pricing":{"amountUsdc":0.02,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Ticker, company, or topic."},"limit":{"type":"number"}},"required":["query"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"query":"NVDA","count":10,"sentiment":{"score":0.4,"label":"bullish"},"items":[{"title":"…","source":"Reuters","url":"https://…"}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/edgar":{"post":{"summary":"Latest SEC EDGAR filings (10-K/10-Q/8-K) for a US ticker or CIK, with document links.","operationId":"edgar_filings","x-pricing":{"amountUsdc":0.02,"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ticker":{"type":"string","description":"US stock ticker, e.g. AAPL."},"cik":{"type":"string"},"form":{"type":"string"},"limit":{"type":"number"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"company":"Apple Inc.","cik":"0000320193","ticker":"AAPL","filings":[{"form":"10-Q","filedAt":"2026-05-01","url":"https://www.sec.gov/Archives/…"}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/infer":{"post":{"summary":"Per-token LLM inference on open models (Llama 3.1 8B/70B, Qwen 2.5, Mistral) in one x402 flow. Prepay prompt + max_tokens, billed on actual token usage with the remainder returned as credit; returns a signed, verifiable usage receipt (verify free at /v1/receipt/verify). Sell price from $0.05/1M input tokens.","operationId":"infer","tags":["inference","llm","per-token","chat-completions","openai-compatible","llama","qwen","mistral","agent-inference","x402"],"x-pricing":{"amountUsdc":0.001,"currency":"USDC","protocol":"x402"},"x-keywords":["inference","llm","per-token","chat-completions","openai-compatible","llama","qwen","mistral","agent-inference","x402"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["llama-3.1-8b","llama-3.1-70b","qwen-2.5-7b","mistral-small"],"description":"Open model to run."},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]},"description":"OpenAI-style chat messages."},"max_tokens":{"type":"number","description":"Max completion tokens (default 512, cap 2048). Prepaid; unused is credited."},"temperature":{"type":"number","description":"Sampling temperature (default 0.7)."}},"required":["model","messages"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"requestId":"a1b2…","model":"llama-3.1-8b","backend":"openai:openrouter.ai","text":"Hello there, nice to meet you.","usage":{"promptTokens":12,"completionTokens":8,"totalTokens":20},"prepaidUsdc":0.001,"billedUsdc":0.001,"creditUsdc":0,"receipt":{"alg":"HS256","claims":{"requestId":"a1b2…","totalTokens":20,"billedUsdc":0.001},"sig":"…"},"settlement":{"protocol":"x402","transaction":"0x…","network":"eip155:8453","priceUsdc":0.001}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/dedup":{"post":{"summary":"Semantic vector cache: exact-match Map shortcut, then 0.88 cosine similarity on hash embeddings. Sub-10ms hits.","operationId":"vectorcache","x-pricing":{"amountUsdc":{"hit":0.002,"miss":0.003},"currency":"USDC","protocol":"x402"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Text to look up"},"vector":{"type":"array","items":{"type":"number"},"description":"Optional embedding to store on miss"},"namespace":{"type":"string"},"storeOnMiss":{"type":"boolean"}},"required":["query"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"cache":"hit","similarity":0.94,"vector":[0.01,-0.02],"latencyMs":3.2}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/demand":{"post":{"summary":"Anonymized agent demand intelligence: top unmatched API paths, challenge vs serve conversion by tool, last-seen timestamps. For x402 API builders — what agents already try to buy.","operationId":"demand_intel","tags":["analytics","demand","x402","agent-intelligence","market-data"],"x-pricing":{"amountUsdc":0.02,"currency":"USDC","protocol":"x402"},"x-keywords":["analytics","demand","x402","agent-intelligence","market-data"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"number","description":"Max rows per section (default 20, max 50)."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"generatedAt":"2026-08-22T19:00:00.000Z","summary":{"challenged":186550,"served":250,"payConversion":0.001,"unmatchedRouteHits":774},"topUnmatchedPaths":[{"path":"GET /v1/free-key","requests":14,"lastSeen":"2026-08-22T18:00:00.000Z"}],"toolsByActivity":[{"tool":"launch_radar","challenged":800,"served":12,"conversion":0.015}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/receipt/attest":{"post":{"summary":"Live delivery attestation: did this Gate402 route return HTTP 200 after payment in the last N minutes? Ledger-based post-payment proof, not an uptime probe.","operationId":"receipt_attest","tags":["analytics","attestation","x402","delivery-proof","agent-intelligence"],"x-pricing":{"amountUsdc":0.03,"currency":"USDC","protocol":"x402"},"x-keywords":["analytics","attestation","x402","delivery-proof","agent-intelligence"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"route":{"type":"string","description":"Catalog route, e.g. /v1/proxy"},"minutes":{"type":"number","description":"Lookback window in minutes (default 60, max 1440)."}},"required":["route"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"route":"/v1/proxy","windowMinutes":60,"delivered":true,"deliveryCount":3,"lastDelivery":{"at":"2026-08-22T19:00:00.000Z","tool":"nodeproxy","rail":"x402","status":200}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/uploadfix":{"post":{"summary":"Fix a rejected upload: convert HEIC, hit size/format/dimension requirements for DMV, passport, LinkedIn, or custom limits. $1 per file.","operationId":"uploadfix","tags":["human-utility","files","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"target":{"type":"string"},"maxMb":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"photo.jpg","mimeType":"image/jpeg","bytes":1500000,"fixes":["heic→jpg","under 2 MB"],"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/heic-to-jpg":{"post":{"summary":"Convert an iPhone HEIC/HEIF photo to JPG that websites accept. $1 per file.","operationId":"heic_to_jpg","tags":["human-utility","files","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"quality":{"type":"number"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"IMG_1234.jpg","mimeType":"image/jpeg","bytes":840212,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/under-mb":{"post":{"summary":"Shrink a file under a max size (e.g. 5 MB). Images are recompressed. $1 per file.","operationId":"under_mb","tags":["human-utility","files","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"maxMb":{"type":"number"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"big.jpg","mimeType":"image/jpeg","bytes":4200000,"maxMb":5,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/image-fit":{"post":{"summary":"Resize any image to exact pixel dimensions and optional max filesize. $1 per file.","operationId":"image_fit","tags":["human-utility","files","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"maxMb":{"type":"number"},"format":{"type":"string","enum":["jpeg","png","webp"]}},"required":["fileBase64","width","height"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"photo.jpg","mimeType":"image/jpeg","width":600,"height":600,"bytes":1840000,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/metadata-strip":{"post":{"summary":"Strip EXIF/GPS and other privacy-leaking image metadata. $1 per file.","operationId":"metadata_strip","tags":["human-utility","privacy","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","privacy","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"vacation.jpg","mimeType":"image/jpeg","stripped":true,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/json-repair":{"post":{"summary":"Repair malformed or LLM-mangled JSON into valid JSON. $1 per call.","operationId":"json_repair","tags":["human-utility","developer","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","developer","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"valid":true,"fixed":{"name":"Bob","age":32},"fixedString":"{\"name\":\"Bob\",\"age\":32}","repaired":true}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/csv-json":{"post":{"summary":"Convert CSV → JSON or JSON → CSV with cleanup. $1 per call.","operationId":"csv_json","tags":["human-utility","developer","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","developer","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"direction":{"type":"string","enum":["csv-to-json","json-to-csv"]},"text":{"type":"string"}},"required":["direction"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"direction":"csv-to-json","rows":1,"data":[{"name":"Bob","age":"32"}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/contract-scan":{"post":{"summary":"Full smart-contract risk scorecard for a Base token/contract: risk 0–100, honeypot, taxes, liquidity, holders. $1 per scan.","operationId":"contract_scan","tags":["human-utility","crypto","agents","security"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","crypto","agents","security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"}},"required":["address"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x…","risk":26,"verdict":"CAUTION","checks":{"honeypot":"✓","liquidity":"✓"}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/abi-decode":{"post":{"summary":"Decode calldata or ABI for a Base contract into a human-readable signature and args. $1 per call.","operationId":"abi_decode","tags":["human-utility","crypto","agents","developer"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","crypto","agents","developer"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"string"},"abi":{"type":"array"},"address":{"type":"string"}},"required":["data"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"selector":"0xa9059cbb","functionName":"transfer","signature":"transfer(address,uint256)","args":["0x…","10"]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/photo-to-pdf":{"post":{"summary":"Turn phone photos of pages into a clean multi-page PDF. $1 per job.","operationId":"photo_to_pdf","tags":["human-utility","files","pdf","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","pdf","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"filesBase64":{"type":"array","items":{"type":"string"}}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"scan.pdf","mimeType":"application/pdf","pages":3,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/bg-remove":{"post":{"summary":"Remove image background and return a transparent PNG. $1 per image.","operationId":"bg_remove","tags":["human-utility","files","image","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","image","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"portrait.png","mimeType":"image/png","method":"imgly","fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/video-under-mb":{"post":{"summary":"Compress a video under a max filesize (MP4/H.264). $1 per file.","operationId":"video_under_mb","tags":["human-utility","files","video","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","video","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"maxMb":{"type":"number"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"clip.mp4","mimeType":"video/mp4","sizeMb":18.2,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/site-screenshot":{"post":{"summary":"Capture desktop and/or mobile screenshots of a public URL. $1 per request.","operationId":"site_screenshot","tags":["human-utility","web","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","web","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"variant":{"type":"string","enum":["desktop","mobile","both"]}},"required":["url"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"url":"https://example.com","desktop":{"filename":"desktop.png","mimeType":"image/png","fileBase64":"…"},"mobile":{"filename":"mobile.png","mimeType":"image/png","fileBase64":"…"}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/ocr-structured":{"post":{"summary":"OCR a receipt/ID/form image or PDF and return structured JSON fields. $1 per document.","operationId":"ocr_structured","tags":["human-utility","ocr","ai","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","ocr","ai","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"schemaHint":{"type":"string"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"fields":{"merchant":"…","total":"12.34"},"rawText":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/ats-resume":{"post":{"summary":"Score a resume against a job description and return an ATS-optimized PDF. $1 per run.","operationId":"ats_resume","tags":["human-utility","career","ai","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","career","ai","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"jobDescription":{"type":"string"},"resumeText":{"type":"string"}},"required":["jobDescription"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"score":61,"problems":["Missing keywords"],"filename":"ats-resume.pdf","fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/invoice-pro":{"post":{"summary":"Turn a screenshot, email, CSV, or rough invoice text into a professional PDF invoice. $1 per document.","operationId":"invoice_pro","tags":["human-utility","business","ai","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","business","ai","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"text":{"type":"string"}},"required":[]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"invoice.pdf","mimeType":"application/pdf","invoiceNumber":"INV-1001","fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/pdf-fillable":{"post":{"summary":"Analyze a flat PDF and return a fillable PDF with AcroForm text fields. $1 per document.","operationId":"pdf_fillable","tags":["human-utility","pdf","ai","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","pdf","ai","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"form-fillable.pdf","fields":["Name","Address","Date"],"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/pdf-a11y":{"post":{"summary":"Basic PDF accessibility remediation: title/language metadata, outline, and accessibility report. $1 per document.","operationId":"pdf_a11y","tags":["human-utility","pdf","accessibility","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","pdf","accessibility","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"doc-a11y.pdf","title":"Annual Report","language":"en-US","report":{"headings":4},"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/crypto-tax-csv":{"post":{"summary":"Normalize exchange crypto CSVs into TurboTax / TaxAct / generic tax import format. $1 per file.","operationId":"crypto_tax_csv","tags":["human-utility","crypto","tax","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","crypto","tax","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"text":{"type":"string"},"target":{"type":"string","enum":["turbotax","taxact","generic"]}},"required":[]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"filename":"crypto-tax.csv","mimeType":"text/csv","rows":12,"fileBase64":"…"}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/doc-checker":{"post":{"summary":"Check a file against upload requirements (format, max MB, dimensions) and return a pass/fail report. $1 per check.","operationId":"doc_checker","tags":["human-utility","files","agents"],"x-pricing":{"amountUsdc":1,"currency":"USDC","protocol":"x402"},"x-keywords":["human-utility","files","agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileBase64":{"type":"string"},"filename":{"type":"string"},"maxMb":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"formats":{"type":"array","items":{"type":"string"}},"target":{"type":"string"}},"required":["fileBase64"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"pass":false,"checks":[{"name":"format","ok":false,"detail":"heic not in jpg/jpeg"}]}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}},"/v1/market/infer":{"post":{"summary":"LLM inference routed to the cheapest healthy third-party GPU in the gate402 provider marketplace, in one x402 flow with escrow-on-success — you are only charged if the provider delivers. Price is the selected provider's per-call rate (from $0.0134). Models offered: llama-3.1-8b, weather-brief-1, pixelforge-textstats-1, pixelforge-hash-1.","operationId":"market_infer","tags":["inference","llm","marketplace","gpu","third-party","escrow-on-success","agent-inference","x402"],"x-pricing":{"amountUsdc":0.0134,"currency":"USDC","protocol":"x402"},"x-keywords":["inference","llm","marketplace","gpu","third-party","escrow-on-success","agent-inference","x402"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","description":"A model offered by an active provider (see GET /v1/providers)."},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]},"description":"OpenAI-style chat messages."},"max_tokens":{"type":"number","description":"Max completion tokens."},"temperature":{"type":"number"}},"required":["model","messages"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"requestId":"m1n2…","model":"llama-3.1-8b","provider":"prov_a1b2","text":"Hello there, nice to meet you.","usage":{"promptTokens":12,"completionTokens":8,"totalTokens":20},"settlement":{"protocol":"x402","transaction":"0x…","network":"eip155:8453","priceUsdc":0.0134}}}}},"402":{"description":"Payment Required — pay via x402 (PAYMENT-SIGNATURE), Stripe MPP (Authorization: Payment), or present X-API-Key."}}}}}}