Sage Frontier AI & x402 API Gateway (v6.2.3)
38 pay-per-call x402 APIs + Native Streamable-HTTP Remote MCP Server on Cloudflare Edge — direct access to full-strength Anthropic Claude 5.5 (Sonnet / Opus / Haiku), OpenAI GPT-6.2 (Astra / Sol), and Google Gemini 4 Argon / 3.8 Flash, plus real-time Solana and Polymarket trading oracles.
Settle per request in Base USDC (eip155:8453) or Solana USDC (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) with zero credit card, or generate a prepaid API key at /topup.
- API Reference & Pricing:
https://sagex402.xyz - Prepaid API Key & USDC Top-Up:
https://sagex402.xyz/topup - Remote MCP Endpoint:
https://sagex402.xyz/mcp - Machine Discovery:
/.well-known/x402·/.well-known/mcp.json·/openapi.json·/llms.txt·/health
Frontier Models (Full-Strength Passthrough)
| Endpoint | Upstream Model | Price (USDC) | Limits |
|---|---|---|---|
POST /v1/llm/claude-sonnet |
claude-sonnet-5-5 |
0.015 |
14k chars / 1,200 tok |
POST /v1/llm/claude-opus |
claude-opus-5-5 |
0.030 |
14k chars / 1,200 tok |
POST /v1/llm/claude-haiku |
claude-haiku-5-5 |
0.002 |
12k chars / 1,024 tok |
POST /v1/llm/gpt-flagship |
gpt-6.2-astra |
0.005 |
16k chars / 1,200 tok |
POST /v1/llm/gpt-fast |
gpt-6.2-sol |
0.002 |
12k chars / 1,024 tok |
POST /v1/llm/gemini-pro |
gemini-4-argon |
0.006 |
16k chars / 1,200 tok |
POST /v1/llm/gemini-flash |
gemini-3.8-flash |
0.003 |
16k chars / 1,200 tok |
POST /v1/chat/completions |
gpt-6.2-sol / claude-haiku-5-5 / gemini-3.8-flash |
0.002 |
OpenAI drop-in |
Solana, Prediction Markets & Live Data
| Endpoint | Price (USDC) | Cache | Service |
|---|---|---|---|
POST /v1/solana/jupiter-quote |
0.001 |
10s | Live Jupiter v1 swap quote, price impact & MEV slippage risk |
POST /v1/solana/token-guard |
0.003 |
30s | GoPlus Solana + RPC mint/freeze authority + Top-10 holder concentration |
POST /v1/solana/wallet-portfolio |
0.003 |
20s | Live SOL + SPL + Token-2022 balances with USD valuation |
POST /v1/crypto/fast-price |
0.001 |
15s | Multi-venue median spot price & spread bps (Coinbase/Kraken/OKX/Hyperliquid) |
POST /v1/weather/polymarket-consensus |
0.002 |
120s | 5-model ECMWF/GFS/ICON/GEM/NOAA consensus + Polymarket CDF brackets |
POST /v1/markets/prediction-edge |
0.005 |
45s | Polymarket + Kalshi live spreads & cross-venue divergences |
POST /v1/security/pre-trade-audit |
0.008 |
Live | Multi-chain EVM honeypot, tax & liquidity rug-guard audit |
POST /v1/defi/base-dex-arb |
0.005 |
Live | Base Mainnet Aerodrome / Uniswap / PancakeSwap arbitrage scanner |
POST /v1/crypto/funding-arb |
0.005 |
Live | Cross-exchange perpetual funding rate arbitrage scanner |
POST /v1/search/web-live |
0.010 |
Live | Live web search & structured citation extraction |
All 38 endpoints are listed in /openapi.json and /llms.txt.
Quickstart
1. Claude Code / Cursor / Cline Local Proxy (npx x402-llm-proxy)
Use full-strength Claude 5.5, GPT-6.2, and Gemini 4 in Claude Code, Cursor, Cline, or any OpenAI/Anthropic SDK with Base or Solana USDC (mazhic87/x402-llm-proxy):
# Free quote & connectivity test
npx x402-llm-proxy --test
# Pay per call with Base USDC (no API key, no credit card)
BASE_PRIVATE_KEY=0x... npx x402-llm-proxy
# Or use a prepaid Base/Solana USDC key from /topup
SAGE_API_KEY=sk-sage-... npx x402-llm-proxy
2. Claude Desktop / Cursor / Cline / Windsurf / Cherry Studio (Remote MCP)
Connect directly to the live Streamable HTTP MCP server (40 tools: 2 free discovery/sample tools + 38 paid tools — see llms-install.md for Cline one-click install):
- Browse tools & preview free samples (zero key) or autonomous x402 keyless agents:
{
"mcpServers": {
"sage-x402-tools": {
"type": "http",
"url": "https://sagex402.xyz/mcp"
}
}
}
- Standard MCP users (Cline / Cursor / Claude Desktop / Windsurf / Cherry Studio — no x402 wallet needed): grab a prepaid
sk-sage-...key fromhttps://sagex402.xyz/topup(Base or Solana USDC from 0.10 USDC) and pass it right in the URL (?api_key=sk-sage-...) or viaAuthorization: Bearer sk-sage-...:
{
"mcpServers": {
"sage-x402-tools": {
"type": "http",
"url": "https://sagex402.xyz/mcp?api_key=sk-sage-YOUR_KEY"
}
}
}
3. Self-Host Locally (Node.js >= 20 or Cloudflare Workers)
git clone https://github.com/mazhic87/sage-x402-mcp-tools.git
cd sage-x402-mcp-tools
npm run start:local
# Runs locally at http://127.0.0.1:8787 (MCP at http://127.0.0.1:8787/mcp)
4. Companion Open-Source Tools
- Local OpenAI/Anthropic x402 Proxy:
mazhic87/x402-llm-proxy(npx x402-llm-proxy) - DeFi & Token Security CLI:
mazhic87/x402-rug-guard(npx x402-rug-guard) - Polymarket Weather Bot:
mazhic87/polymarket-weather-x402-bot(npx polymarket-weather-x402-bot) - Zero-Dependency Python SDK:
mazhic87/sage-x402-py
Settlement & Protocol
- Protocol: HTTP x402 v2 (
PAYMENT-REQUIRED/PAYMENT-SIGNATUREheaders) + v1 JSON body via PayAI Facilitator - Base Mainnet USDC:
0x9552e7d327499a5cfcf3b250bab908da447a2666 - Solana Mainnet USDC:
GswD6zmVCTcjLVkgCzCTP9JgehARqhBfMQbTcdzLShet
License
MIT