{
  "name": "Sage Frontier AI & x402 API Gateway",
  "version": "6.2.3",
  "description": "38 x402 pay-per-call Pre-Trade Security, DEX Arbitrage, GPU & Frontier AI tools (Base USDC)",
  "homepage": "https://sagex402.xyz",
  "mcp_endpoint": "https://sagex402.xyz/mcp",
  "transport": "streamable-http",
  "openapi": "https://sagex402.xyz/openapi.json",
  "tools": [
    {
      "name": "llm_claude_sonnet",
      "description": "Pay-per-call zero-injection Anthropic Claude Sonnet 5.5 flagship coding & agent model via Base or Solana USDC x402 ($0.015/call; up to 14,000 input chars & 1,200 output tokens). Full-strength passthrough, 2-3x cheaper than competing x402 gateways. (x402: $0.015 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/claude-sonnet",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/claude-sonnet/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 14000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1200,
            "default": 900
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_claude_opus",
      "description": "Pay-per-call zero-injection Anthropic Claude Opus 5.5 apex architecture, debugging & deep research model via Base or Solana USDC x402 ($0.030/call; up to 14,000 input chars & 1,200 output tokens). (x402: $0.030 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/claude-opus",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/claude-opus/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 14000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1200,
            "default": 1000
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_gpt_flagship",
      "description": "Pay-per-call full-IQ OpenAI GPT-6.2 Astra flagship reasoning & coding via Base or Solana USDC x402 ($0.005/call; up to 16,000 input chars & 1,200 output tokens). Zero API key or subscription required. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/gpt-flagship",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/gpt-flagship/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 16000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1200,
            "default": 800
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_gemini_pro",
      "description": "Pay-per-call Google Gemini 4 Argon flagship reasoning via Base or Solana USDC x402 ($0.006/call; up to 16,000 input chars & 1,200 output tokens). High-IQ synthesis, STEM reasoning, and coding. (x402: $0.006 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/gemini-pro",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/gemini-pro/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 16000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1200,
            "default": 800
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_claude_haiku",
      "description": "Pay-per-call zero-injection Anthropic Claude Haiku 5.5 via Base or Solana USDC x402 ($0.002/call; up to 12,000 input chars & 1,024 output tokens). Ultra-fast, high-precision classification, tool routing, and structured output. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/claude-haiku",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/claude-haiku/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 12000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1024,
            "default": 512
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_gpt_fast",
      "description": "Pay-per-call full-IQ GPT-6.2 Sol (OpenAI format, zero API key) via Base or Solana USDC x402 ($0.002/call; up to 12,000 input chars & 1,024 output tokens). Ideal for fast coding, JSON extraction, and high-frequency agent loops. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/gpt-fast",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/gpt-fast/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 12000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1024,
            "default": 512
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_gemini_flash",
      "description": "Pay-per-call Google Gemini 3.8 Flash via Base or Solana USDC x402 ($0.003/call; up to 16,000 input chars & 1,200 output tokens). Fast reasoning, web synthesis, and structured JSON output. (x402: $0.003 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/gemini-flash",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/gemini-flash/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Prompt text (max 16000 chars)"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1200,
            "default": 640
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "chat_completions",
      "description": "Standard OpenAI /v1/chat/completions endpoint accepting Base or Solana USDC x402 micropayments ($0.002/call, zero API keys) powered by full-IQ GPT-6.2 Sol, pure zero-injection Anthropic Claude Haiku 5.5, and Google Gemini 3.8 Flash (up to 12k chars / 1,024 tokens). For Claude Sonnet 5.5 ($0.015), Claude Opus 5.5 ($0.030), GPT-6.2 Astra ($0.005) or Gemini 4 Argon ($0.006), use /v1/llm/*. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/chat/completions",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/chat/completions/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "messages"
        ],
        "properties": {
          "model": {
            "type": "string",
            "default": "gpt-6.2-sol",
            "description": "Frontier model: gpt-6.2-sol, claude-haiku-5-5, or gemini-3.8-flash"
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                }
              }
            }
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 16,
            "maximum": 1024,
            "default": 512
          },
          "temperature": {
            "type": "number",
            "minimum": 0,
            "maximum": 1.5,
            "default": 0.4
          }
        }
      }
    },
    {
      "name": "crypto_fast_price",
      "description": "Edge-cached multi-venue crypto spot & perp price oracle aggregating Coinbase, Kraken, OKX, and Hyperliquid in parallel for up to 10 symbols per call. (x402: $0.001 USDC)",
      "endpoint": "https://sagex402.xyz/v1/crypto/fast-price",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/crypto/fast-price/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "weather_polymarket_consensus",
      "description": "Edge-cached numerical weather ensemble fusing ECMWF, GFS, ICON, GEM, and NOAA NWS airport station forecasts into daily high/low consensus temperatures and calibrated Polymarket bracket probabilities. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/weather/polymarket-consensus",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/weather/polymarket-consensus/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "lat": {
            "type": "number"
          },
          "lon": {
            "type": "number"
          },
          "days_ahead": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6,
            "default": 0
          },
          "date": {
            "type": "string"
          },
          "threshold_f": {
            "type": "number"
          },
          "threshold_c": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "markets_prediction_edge",
      "description": "Real-time prediction market scanner aggregating active Polymarket Gamma/CLOB and Kalshi open markets, surfacing wide-spread market-making opportunities and cross-venue probability divergences. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/markets/prediction-edge",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/markets/prediction-edge/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "min_volume_24h": {
            "type": "number",
            "minimum": 0,
            "default": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "default": 12
          }
        }
      }
    },
    {
      "name": "solana_jupiter_quote",
      "description": "Real-time Solana Jupiter v1 swap quote with multi-DEX route plan (Raydium/Orca/Meteora/PumpSwap), exact out_amount, price_impact_pct, and MEV slippage risk. Accepts symbols (SOL, USDC, JUP, BONK, WIF) or Base58 mints. (x402: $0.001 USDC)",
      "endpoint": "https://sagex402.xyz/v1/solana/jupiter-quote",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/solana/jupiter-quote/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "input_mint": {
            "type": "string",
            "default": "SOL"
          },
          "output_mint": {
            "type": "string",
            "default": "USDC"
          },
          "ui_amount": {
            "type": "number"
          },
          "amount": {
            "type": "string"
          },
          "slippage_bps": {
            "type": "integer",
            "default": 50
          }
        }
      }
    },
    {
      "name": "solana_token_guard",
      "description": "Pre-snipe Solana SPL / Token-2022 security audit fusing GoPlus Solana, Mainnet RPC mint/freeze authorities, Top-10 holder concentration %, LP lock %, Jupiter Price v3, and DexScreener liquidity into SAFE_TO_SNIPE / CAUTION / BLOCK_RUG. (x402: $0.003 USDC)",
      "endpoint": "https://sagex402.xyz/v1/solana/token-guard",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/solana/token-guard/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "mint"
        ],
        "properties": {
          "mint": {
            "type": "string",
            "description": "Solana Base58 token mint address (or symbol like JUP, BONK, WIF)"
          }
        }
      }
    },
    {
      "name": "solana_wallet_portfolio",
      "description": "Real-time Solana wallet snapshot combining Mainnet RPC native SOL, SPL Token + Token-2022 balances, USDC ATA status, and Jupiter Price v3 USD portfolio valuation sorted by position weight. (x402: $0.003 USDC)",
      "endpoint": "https://sagex402.xyz/v1/solana/wallet-portfolio",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/solana/wallet-portfolio/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "Solana Base58 wallet public key"
          },
          "limit": {
            "type": "integer",
            "default": 25,
            "minimum": 1,
            "maximum": 50
          }
        }
      }
    },
    {
      "name": "web_extract",
      "description": "Fetch any public web page and return clean LLM-ready Markdown, OpenGraph/JSON-LD metadata, heading outline, and deduplicated links. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/web/extract",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/web/extract/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "max_chars": {
            "type": "integer",
            "minimum": 500,
            "maximum": 40000,
            "default": 12000
          },
          "include_links": {
            "type": "boolean",
            "default": true
          }
        }
      }
    },
    {
      "name": "crypto_token_intel",
      "description": "Real-time Base, Solana, Ethereum, and BSC token liquidity, 24h DEX volume, buy/sell ratio, FDV, pair age, and automated risk flags. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/crypto/token-intel",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/crypto/token-intel/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "web_dns_audit",
      "description": "Live Cloudflare DoH DNS records (A/AAAA/MX/NS/SPF/DMARC), HTTPS security headers score, and AI agent readiness checks (llms.txt, /.well-known/x402, /.well-known/mcp.json). (x402: $0.003 USDC)",
      "endpoint": "https://sagex402.xyz/v1/web/dns-audit",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/web/dns-audit/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "dev_deterministic_tools",
      "description": "Zero-hallucination deterministic utility engine for AI agents: 5-field UTC cron schedule solver, RFC-6902 structural JSON diff, JWT header/payload expiry inspector, and SemVer sorting. (x402: $0.002 USDC)",
      "endpoint": "https://sagex402.xyz/v1/dev/deterministic-tools",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/dev/deterministic-tools/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "cron",
              "json_diff",
              "jwt",
              "semver"
            ]
          },
          "expression": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25,
            "default": 5
          },
          "before": {},
          "after": {},
          "token": {
            "type": "string"
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "name": "crypto_funding_arb",
      "description": "Live Hyperliquid perpetual funding rates, annualized carry APY %, mark/oracle basis bps, open interest, and crowded long/short signals across 150+ crypto assets. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/crypto/funding-arb",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/crypto/funding-arb/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "coin": {
            "type": "string",
            "description": "Optional ticker like BTC, ETH, SOL; omit for full top carry market scan"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "default": 12
          }
        }
      }
    },
    {
      "name": "crypto_market_pulse",
      "description": "Single-call live crypto macro brief combining Fear & Greed Index (today + 7d avg), BTC/ETH/SOL/HYPE live perp snapshots, and top 12 blockchain DeFi TVL rankings from DeFiLlama. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/crypto/market-pulse",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/crypto/market-pulse/sample",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "crypto_wallet_profile",
      "description": "Live 5-chain EVM wallet intelligence across Base, Ethereum, Arbitrum, Optimism, and Polygon: native ETH/POL balances, USDC balances, outbound tx counts, smart contract detection, and activity tier. (x402: $0.020 USDC)",
      "endpoint": "https://sagex402.xyz/v1/crypto/wallet-profile",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/crypto/wallet-profile/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "description": "42-char EVM wallet address"
          }
        }
      }
    },
    {
      "name": "web_merchant_risk",
      "description": "Automated KYB merchant underwriting report combining official ICANN RDAP domain registration age, registrar, SPF/DMARC email auth, HTTPS security headers, and privacy/terms policy checks into a 0-100 legitimacy score. (x402: $0.020 USDC)",
      "endpoint": "https://sagex402.xyz/v1/web/merchant-risk",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/web/merchant-risk/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "domain"
        ],
        "properties": {
          "domain": {
            "type": "string",
            "description": "Public merchant domain or URL (e.g. stripe.com)"
          }
        }
      }
    },
    {
      "name": "ai_web_research_brief",
      "description": "Fetches any live web page and synthesizes a strictly grounded JSON executive summary, key facts, named entities, sentiment, and actionable takeaways using Llama-3.3-70B on Cloudflare Edge. (x402: $0.030 USDC)",
      "endpoint": "https://sagex402.xyz/v1/ai/web-research-brief",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/ai/web-research-brief/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "focus": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "ai_token_verdict",
      "description": "Combines live multi-chain DEX liquidity, volume, buy/sell pressure, FDV, and pair age with Llama-3.3-70B quantitative risk analysis into a structured trading verdict JSON. (x402: $0.035 USDC)",
      "endpoint": "https://sagex402.xyz/v1/ai/token-verdict",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/ai/token-verdict/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "ai_code_security_review",
      "description": "Automated vulnerability and logic-bug security review for Solidity, TypeScript, Python, Go, or Rust snippets powered by Qwen2.5-Coder-32B, returning structured severity findings and exact fixes. (x402: $0.040 USDC)",
      "endpoint": "https://sagex402.xyz/v1/ai/code-security-review",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/ai/code-security-review/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "code"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "language": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "gpu_flux_image",
      "description": "High-speed GPU text-to-image generation powered by Black Forest Labs FLUX.1 Schnell on Cloudflare Edge GPUs. Returns JPEG base64 and data_url ready for agent publishing, thumbnails, and avatars. (x402: $0.030 USDC)",
      "endpoint": "https://sagex402.xyz/v1/gpu/flux-image",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/gpu/flux-image/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "prompt"
        ],
        "properties": {
          "prompt": {
            "type": "string"
          },
          "steps": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 4
          }
        }
      }
    },
    {
      "name": "gpu_audio_transcribe",
      "description": "GPU-accelerated audio transcription and translation powered by OpenAI Whisper Large v3 Turbo with VAD filtering. Accepts public audio_url (up to 12MB) or audio_base64 and returns full text plus timestamped segments. (x402: $0.030 USDC)",
      "endpoint": "https://sagex402.xyz/v1/gpu/audio-transcribe",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/gpu/audio-transcribe/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "audio_url": {
            "type": "string",
            "format": "uri"
          },
          "audio_base64": {
            "type": "string"
          },
          "task": {
            "type": "string",
            "enum": [
              "transcribe",
              "translate"
            ]
          },
          "language": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "ai_reasoning_120b",
      "description": "Heavy 120B open-weights Chain-of-Thought reasoning endpoint (128K context) with configurable low/medium/high reasoning effort and optional strict JSON mode for complex math, planning, and verification. (x402: $0.050 USDC)",
      "endpoint": "https://sagex402.xyz/v1/ai/reasoning-120b",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/ai/reasoning-120b/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "prompt"
        ],
        "properties": {
          "prompt": {
            "type": "string"
          },
          "instructions": {
            "type": "string"
          },
          "effort": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "default": "medium"
          },
          "json_mode": {
            "type": "boolean",
            "default": false
          }
        }
      }
    },
    {
      "name": "security_pre_trade_audit",
      "description": "4-source atomic pre-trade token safety check fusing GoPlus contract security, Honeypot.is live swap simulation, RugCheck Solana authority audit, and DexScreener liquidity into a deterministic SAFE_TO_TRADE / CAUTION / BLOCK_TRADE verdict in <800ms. (x402: $0.008 USDC)",
      "endpoint": "https://sagex402.xyz/v1/security/pre-trade-audit",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/security/pre-trade-audit/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "Token contract address (0x... for EVM or base58 mint for Solana)"
          },
          "chain": {
            "type": "string",
            "enum": [
              "base",
              "ethereum",
              "bsc",
              "arbitrum",
              "optimism",
              "polygon",
              "solana"
            ],
            "default": "base"
          }
        }
      }
    },
    {
      "name": "defi_base_dex_arb",
      "description": "Real-time cross-DEX arbitrage scanner comparing Aerodrome, Uniswap v3, PancakeSwap, and Raydium pools for gross/net spread bps and safe execution depth, plus chain-wide GeckoTerminal high-turnover trending pools. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/defi/base-dex-arb",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/defi/base-dex-arb/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "enum": [
              "base",
              "solana",
              "ethereum",
              "arbitrum",
              "bsc"
            ],
            "default": "base"
          },
          "token": {
            "type": "string",
            "description": "Optional token address or symbol for exact cross-DEX spread; omit for chain-wide trending pool radar"
          },
          "min_liquidity_usd": {
            "type": "number",
            "minimum": 1000,
            "default": 10000
          }
        }
      }
    },
    {
      "name": "search_web_live",
      "description": "Real-time AI-optimized web & news search with synthesized direct answer and ranked clean snippets (up to 8 sources). No API key needed; pay per search in Base USDC. (x402: $0.010 USDC)",
      "endpoint": "https://sagex402.xyz/v1/search/web-live",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/search/web-live/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "topic": {
            "type": "string",
            "enum": [
              "general",
              "news"
            ]
          },
          "max_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 5
          },
          "days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30
          }
        }
      }
    },
    {
      "name": "search_deep_research",
      "description": "High-recall advanced web research search returning an executive direct answer plus up to 10 deep-extracted source excerpts (up to 2000 chars each) for autonomous research agents. (x402: $0.040 USDC)",
      "endpoint": "https://sagex402.xyz/v1/search/deep-research",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/search/deep-research/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "topic": {
            "type": "string",
            "enum": [
              "general",
              "news"
            ]
          },
          "max_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10,
            "default": 8
          }
        }
      }
    },
    {
      "name": "search_exa_neural",
      "description": "Embedding-powered Exa neural web search returning clean full-text excerpts for research papers, companies, GitHub repos, and breaking news without an Exa account or API key. (x402: $0.025 USDC)",
      "endpoint": "https://sagex402.xyz/v1/search/exa-neural",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/search/exa-neural/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "num_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 5
          },
          "max_chars": {
            "type": "integer",
            "minimum": 200,
            "maximum": 1500,
            "default": 800
          },
          "category": {
            "type": "string"
          },
          "start_published_date": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "search_exa_similar",
      "description": "Given any public URL (startup, product, research paper, or repo), uses Exa neural link embeddings to discover the closest competitors, alternatives, and related pages with extracted text. (x402: $0.025 USDC)",
      "endpoint": "https://sagex402.xyz/v1/search/exa-similar",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/search/exa-similar/sample",
      "inputSchema": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "num_results": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 5
          },
          "max_chars": {
            "type": "integer",
            "minimum": 200,
            "maximum": 1200,
            "default": 700
          },
          "exclude_source_domain": {
            "type": "boolean",
            "default": true
          }
        }
      }
    },
    {
      "name": "ai_nemotron_550b",
      "description": "Ultra-heavy 550B-parameter flagship reasoning LLM (1M context window) with automatic fallback routing for hard math, architecture design, financial modeling, and synthesis via Base USDC. (x402: $0.045 USDC)",
      "endpoint": "https://sagex402.xyz/v1/ai/nemotron-550b",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/ai/nemotron-550b/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 32,
            "maximum": 2048,
            "default": 1200
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "ai_vision_analyze",
      "description": "Analyze any public image URL or base64 image for OCR text extraction, UI screenshot audits, chart reading, receipt parsing, and visual Q&A with automatic multimodal model fallback. (x402: $0.040 USDC)",
      "endpoint": "https://sagex402.xyz/v1/ai/vision-analyze",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/ai/vision-analyze/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "image_url": {
            "type": "string",
            "format": "uri"
          },
          "image_base64": {
            "type": "string"
          },
          "mime_type": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 32,
            "maximum": 1200,
            "default": 700
          }
        }
      }
    },
    {
      "name": "llm_gpt_frontier",
      "description": "Pay-per-call OpenAI GPT-6.2 Astra full-IQ reasoning with zero OpenAI account or credit card required. Up to 12,000 input chars & 1,500 output tokens per Base USDC call. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/gpt-frontier",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/gpt-frontier/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 32,
            "maximum": 1500,
            "default": 900
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "llm_gemini_frontier",
      "description": "Pay-per-call Google Gemini 4 Argon frontier reasoning with zero Google Cloud account required. Up to 12,000 input chars & 1,500 output tokens per Base USDC call. (x402: $0.005 USDC)",
      "endpoint": "https://sagex402.xyz/v1/llm/gemini-frontier",
      "method": "POST",
      "sample_url": "https://sagex402.xyz/v1/llm/gemini-frontier/sample",
      "inputSchema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string"
          },
          "system": {
            "type": "string"
          },
          "messages": {
            "type": "array"
          },
          "max_tokens": {
            "type": "integer",
            "minimum": 32,
            "maximum": 1500,
            "default": 900
          },
          "temperature": {
            "type": "number"
          }
        }
      }
    }
  ]
}