{
  "x402Version": 1,
  "name": "PikoChain x402",
  "description": "Pay-per-call AI micro-APIs on PikoChain (chainId 2099), settled in wUSDC via x402 exact (EIP-3009, buyer pays zero gas). No API key, no account. Prices are dynamic: they move with settled demand around the listed base price.",
  "network": "eip155:2099",
  "asset": "0x2BEbf3a2BE5E9d9a17C0760b17D3a4Dc35FfB34c",
  "payTo": "0xc59Ff0d9C33f03E5bf126E05aac4FA53F2720d35",
  "facilitator": "https://pikochain.serveousercontent.com/x402",
  "risk_attestation": {
    "key_id": "NTY4MTE5NDEzMTAz",
    "jwk": {
      "kty": "EC",
      "crv": "P-256",
      "x": "dqVxHWI_UkVi-LBbqT3m2-cjhwTjgLXZLYjzJv3FqB0",
      "y": "W7h9pOTOluR2P08R7VVXAA9Lbqu13ksCdgKYRhN-rFM"
    },
    "ttl_seconds": 300,
    "check_endpoint": "/risk-check",
    "note": "ephemeral per-process merchant attestation key; rotates on restart"
  },
  "endpoints": [
    {
      "path": "/x402/insight",
      "url": "https://pikochain.serveousercontent.com/x402/insight",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "PikoChain AI insight API - $0.01 per call",
      "params": {
        "note": "no parameters; GET returns a chain-flavored insight quote"
      }
    },
    {
      "path": "/x402/text-stats",
      "url": "https://pikochain.serveousercontent.com/x402/text-stats",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "Text statistics: word/char counts, reading time, language hint - $0.01 per call",
      "params": {
        "text": "string, required (query ?text= or POST JSON {\"text\":\"...\"})"
      }
    },
    {
      "path": "/x402/translate",
      "url": "https://pikochain.serveousercontent.com/x402/translate",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0200 (dynamic)",
      "description": "Demo EN->ZH dictionary translation - $0.02 per call",
      "params": {
        "text": "string, required",
        "to": "string, optional, default \"zh\" (demo dictionary only supports zh)"
      }
    },
    {
      "path": "/x402/chaindata",
      "url": "https://pikochain.serveousercontent.com/x402/chaindata",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "Live PikoChain data (block, balances) - $0.01 per call",
      "params": {
        "action": "required: blockNumber | balance | pikoBalance",
        "address": "required for balance actions, 0x..."
      }
    },
    {
      "path": "/x402/ask",
      "url": "https://pikochain.serveousercontent.com/x402/ask",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "Demo rule-based PikoChain Q&A - $0.01 per call",
      "params": {
        "q": "string, required (e.g. ?q=what is the chain id)"
      }
    },
    {
      "path": "/x402/extract",
      "url": "https://pikochain.serveousercontent.com/x402/extract",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "Web intelligence: URL -> clean markdown + metadata + tech-stack + outbound links - $0.01 per call",
      "params": {
        "url": "string, required (query ?url= or POST JSON {\"url\":\"https://...\"})"
      }
    },
    {
      "path": "/x402/edgar",
      "url": "https://pikochain.serveousercontent.com/x402/edgar",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0500 (dynamic)",
      "description": "SEC EDGAR fundamentals: ticker -> latest 10-K/10-Q filing + XBRL financials (Revenue/Net Income/Assets) - $0.05 per call",
      "params": {
        "ticker": "string, e.g. \"AAPL\" (or cik: \"320193\")",
        "filingType": "optional: 10-K | 10-Q"
      }
    },
    {
      "path": "/x402/upto-translate",
      "url": "https://pikochain.serveousercontent.com/x402/upto-translate",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "upto",
      "basePrice": "$0.0010/word, max $0.10",
      "description": "Metered EN->ZH dictionary translation - $0.001/word, up to $0.10 (x402 v2 upto)",
      "params": {
        "text": "string, required (x402 v2 PAYMENT-SIGNATURE only)"
      }
    },
    {
      "path": "/x402/chat",
      "url": "https://pikochain.serveousercontent.com/x402/chat",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "Open-source LLM chat (Qwen2.5-0.5B-Instruct, CPU demo) - $0.01 per call",
      "params": {
        "prompt": "string, required (query ?prompt= or POST JSON {\"prompt\":\"...\"})"
      }
    },
    {
      "path": "/x402/buildgen",
      "url": "https://pikochain.serveousercontent.com/x402/buildgen",
      "methods": [
        "GET",
        "POST"
      ],
      "scheme": "exact",
      "basePrice": "$0.0100 (dynamic)",
      "description": "PikoWorld 一句话建造: 自然语言描述 -> 体素建筑数据(v1 编码) - $0.01 per call",
      "params": {
        "description": "string, required: building description in Chinese or English"
      }
    }
  ]
}