{
  "name": "CAPTCHA Solving API for Autonomous AI Agents",
  "version": "2.0.0",
  "protocol": "x402",
  "description": "Solve CAPTCHAs in <5 seconds using Anti-Captcha service. AI agents pay $0.01 USDC per solve.",
  "endpoints": {
    "/solve-captcha": "POST - Solve a CAPTCHA (requires payment)",
    "/invoice": "POST - Generate payment invoice for CAPTCHA solve",
    "/check-payment": "GET - Verify payment status"
  },
  "pricing": {
    "amount": 0.01,
    "currency": "USDC",
    "network": "Base",
    "per_solve": true
  },
  "usage": {
    "step1": "POST /solve-captcha with CAPTCHA image → Receive 402 + invoice",
    "step2": "Pay USDC invoice on Base network",
    "step3": "Verify payment with GET /check-payment",
    "step4": "POST /solve-captcha again with X-Payment-Token → Get solution"
  },
  "example_request": {
    "endpoint": "/solve-captcha",
    "method": "POST",
    "headers": {
      "Content-Type": "application/json",
      "X-Payment-Token": "your-payment-token-after-paying"
    },
    "body": {
      "image_base64": "data:image/png;base64,iVBORw0KGgoAAAANS...",
      "image_url": "https://example.com/captcha.png"
    }
  },
  "example_response": {
    "solution": "abc123",
    "solved_in_ms": 3420,
    "captcha_id": "anticaptcha_task_id"
  }
}