https://x402.ottoai.services
Networks: Base Mainnet + Polygon Mainnet + Solana Mainnet
Payment: USDC on Base, Polygon, or Solana. Permit2 infrastructure ready for any ERC-20 token.
Discovery:
- Landing Page — interactive endpoint explorer with network picker
- LLM Docs — machine-readable for AI agents
- Discovery Doc — x402scan-compatible
x402 V2 Features
| Feature | Description |
|---|---|
| Multi-Network | Pay with USDC on Base, Polygon, or Solana — same endpoints, same prices |
| Permit2 Ready | Infrastructure supports any ERC-20 token via Permit2. Contact @useOttoAI for custom token integrations |
| Sign-in-with-X (SIWX) | Pay once for most read-only endpoints, re-access for 1 hour with your wallet signature (data endpoints are pay-per-call only) |
| Bazaar Discovery | Read-only endpoints listed on CDP Bazaar for automatic AI agent discovery |
| Signed Receipts | Every 402 response includes a signed offer (EIP-712); every 200 includes a signed receipt — verifiable proof of service delivery |
| Payment Identifier | Execution endpoints support idempotent retries via unique payment IDs |
Browser Pay Widget — APP Buyer-Agent reference module
The interactive endpoint explorer at xlayer.ottoai.services (USDT0 on X Layer) and x402.ottoai.services (USDC on Base/Polygon/Solana) embeds a working browser-side payment client: connect a wallet, sign one EIP-712 / EIP-3009 authorization, and a paid request goes out. That client is structurally a Buyer-Agent runtime in the OKX Agent Payments Protocol sense — it parses 402 challenges, signs, and submits credentials over plain HTTP. Drop it into any agent’s payment-handling module and it works the same way.Pricing Overview
| Endpoint | Price (USDC) | Description |
|---|---|---|
/crypto-news | $0.001 | Real-time crypto market news with sentiment |
/filtered-news | $0.001 | AI-filtered news for specific topics |
/twitter-summary | $0.01 | Curated Twitter/X crypto digest |
/token-details | $0.001 | Token price, market cap, volume, metrics |
/token-alpha | $0.001 | Premium token intelligence with derivatives data |
/kol-sentiment | $0.001 | Top 50 KOL sentiment analysis |
/yield-alpha | $0.001 | DeFi yield opportunities |
/trending-altcoins | $0.001 | Top 3 trending altcoins |
/mega-report | $0.05 | Alpha & Intel Report — comprehensive daily market briefing |
/token-security | $0.001 | Token contract security audit (GoPlus) |
/funding-rates | $0.001 | Derivatives dashboard (funding, OI, whales) |
/defi-analytics | $0.001 | DeFi protocol analytics (TVL, trends) |
/tradfi-data | $0.001 | TradFi macro intelligence (VIX, DXY, yields) |
/generate-meme | $0.15 | Multi-model image gen via fal.ai (GPT Image 2, Nano Banana Pro) |
/llm-research | $0.10 | AI research assistant (Gemini 3.5 Flash, cited sources) |
/tx-explainer | $0.01 | Decode & explain any EVM transaction (11 chains) |
/video-gen | Dynamic | Multi-model video gen via fal.ai (Seedance 2.0, Sora 2, Veo 3.1) — at-cost × 1.15 |
| Trade Execution — Resources | ||
/portfolio | $0.001 | Multi-chain portfolio with token balances |
/transaction-history | $0.001 | Transaction history for user’s Safe account |
/supported-tokens | $0.001 | Search supported tokens by symbol on a chain |
/hyperliquid-account | $0.001 | Hyperliquid account snapshot with positions |
/hyperliquid-market | $0.001 | Hyperliquid market data with live prices |
/hl-transaction-history | $0.001 | Hyperliquid trading transaction history |
/yield-markets | $0.001 | Yield markets with APYs (Aave V3, Morpho) |
/yield-farming-active | $0.001 | Active yield farming positions |
/yield-farming-historical | $0.001 | Historical yield farming positions |
/idle-capital | $0.001 | Detect undeployed tokens that could earn yield |
/yield-recommendations | $0.001 | Personalized vault recommendations |
| Onchain Data | ||
/token-top-holders | $0.02 | Top holders for any Base ERC-20 + concentration metrics via Moralis |
/stablecoin-watch | $0.001 | Peg deviation, supply flow, dominance for top 30 USD stablecoins (DefiLlama, hourly) |
/protocol-revenue-leaders | $0.001 | Top 30 DeFi protocols by fees + revenue, take-rate, 7d/30d trend (DefiLlama, hourly) |
/equity-intel | $0.001 | US stock fundamentals + SEC filings intel by ticker (SEC EDGAR) |
/base-season | $0.001 | KOL-ranked quality-screened Base tokens with sentiment: who’s talking about what, hourly |
/news-recaps | $0.002 | One-paragraph crypto market recap (4-6 sentences), distilled hourly from the live news engine |
/base-ecosystem-news | $0.001 | Base-chain ecosystem news, AI-filtered hourly: launches, Coinbase/Base moves, Base DeFi |
/token-fundamentals | $0.002 | Structured asset fundamentals by symbol: supply, ATH drawdown, ROI windows, links (CoinGecko) |
/token-price | $0.001 | Onchain DEX token price by symbol or chain:contract — price, 24h change, volume, mcap, liquidity (8 chains) |
/pools-search | $0.001 | Search DEX pools across 8 chains by symbol/name/contract — price, volume, liquidity, FDV per pool |
/pools-trending | $0.001 | Trending DEX pools — top 10 hottest per chain (or network=all cross-chain) by 24h trending: price, change, volume, liquidity, FDV |
/holder-analytics | $0.03 | Full holder analytics for a Base ERC-20: total holders + change momentum, whale-tier distribution, acquisition mix, top-N supply share, labeled top holders + AI risk read |
/wallet-holdings | $0.02 | Wallet bagcheck: Base portfolio (up to 100 positions, spam filtered) with USD values, portfolio %, 24h change + concentration and AI read |
| Trade Execution — Services | ||
/swap | $0.01 | Token swap from Safe via Odos DEX aggregator |
/bridge | $0.01 | Cross-chain bridge from Safe via LiFi |
/withdraw | $0.01 | Withdraw tokens from Safe to wallet |
/deposit | Dynamic | Deposit to Safe (amount + $0.01 fee) |
/trade-perpetuals | $0.01 | Open leveraged perp positions on Hyperliquid |
/close-position | $0.01 | Close perpetual position (full or partial) |
/modify-hl-order | $0.01 | Add/modify/cancel TP/SL and limit orders |
/update-position-margin | $0.01 | Adjust leverage or margin on open positions |
/hl-deposit-withdraw | $0.01 | Deposit/withdraw USDC to/from Hyperliquid |
How to Make a Request (x402 V2 Flow)
Consuming an x402-powered API is a multi-step process. The client (buyer) first makes a request, receives a payment requirement, pays, and then retries the request with proof of payment.Step 1: Initial Request (Fails with 402)
First, the client makes a standard HTTP request to the desired endpoint. The server responds with HTTP 402 Payment Required and aPAYMENT-REQUIRED header containing base64-encoded payment options.
PAYMENT-REQUIRED header reveals:
Step 2: Client Signs & Pays
The client chooses a payment option from theaccepts array and signs the payment:
- USDC on Base (EIP-3009) — zero-approval, default for most clients
- Any ERC-20 on Base/Polygon (Permit2) — requires Permit2 approval
- USDC on Solana — SPL token transfer
@x402/axios.
Step 3: Retry Request with Payment Header
The client retries the exact same request with aPAYMENT-SIGNATURE header containing the signed payment payload.
Step 4: Success (Receives Data + Receipt)
The server verifies the payment via the CDP Facilitator, settles on-chain, and returns 200 OK with the data plus a signed receipt in thePAYMENT-RESPONSE header.
Step 5 (Optional): Sign-in-with-X for Repeat Access
For most read-only endpoints, after paying once you can re-access for 1 hour by signing a SIWX challenge with your wallet — no additional payment required. The cached data endpoints (token-top-holders, stablecoin-watch, protocol-revenue-leaders, equity-intel, base-season, news-recaps, base-ecosystem-news, token-fundamentals, pools-search, token-price, pools-trending, holder-analytics, wallet-holdings) are pay-per-call only.Understanding the Facilitator
The CDP Facilitator (Coinbase Developer Platform) is the payment verification and settlement service:- Validates Payment Signatures: Verifies the
PAYMENT-SIGNATUREheader is cryptographically valid. - Prevents Replay Attacks: Tracks nonces and timestamps to prevent signature reuse.
- Executes On-Chain Settlement: Submits transactions to Base, Polygon, or Solana to transfer USDC.
- Supports Gas Sponsorship: EIP-2612 and ERC-20 gas sponsoring extensions available for Permit2 flows.
- Provides Instant Confirmation: Returns confirmation within milliseconds.
- Otto AI uses the CDP Facilitator (
api.cdp.coinbase.com/platform/v2/x402) - Supports Base (
eip155:8453), Polygon (eip155:137), and Solana mainnet - Payment signatures expire after ~60 seconds
- Extensions:
bazaar,eip2612GasSponsoring,erc20ApprovalGasSponsoring
Client-Side Example (Node.js / x402 V2 SDK)
For programmatic access, use@x402/axios (V2) to handle the payment flow automatically.
API Endpoint Reference
News & Social
AI-curated crypto market news, headlines, and social sentiment.GET /crypto-news
Fetches a comprehensive, AI-curated summary of the latest market news, including top stories, regulatory updates, and DeFi trends. Now includes top headlines (previously separate endpoint). Price: $0.001 USDC Parameters: None Example Request:GET /filtered-news
Get news filtered for a specific crypto topic (e.g., “Airdrops”, “DeFi trends”, “Bitcoin ETF”). Price: $0.001 USDC Parameters:topic(string, required): The topic to filter news for.
GET /twitter-summary
Get curated insights and sentiment analysis from the crypto community on X (Twitter), identifying trending topics and top tweets. Price: $0.01 USDC Parameters: None Example Request:Market Intelligence
Access real-time token metrics, market analysis, and sentiment.GET /token-details
Get a snapshot of a token’s core metrics, performance, and trading data. Price: $0.001 USDC Parameters:symbol(string, required): The token symbol (e.g., “SOL”, “ETH”, “BTC”).
GET /token-alpha
Receive a comprehensive, AI-enhanced report that combines all Token Details with filtered news, Twitter sentiment, Coinglass derivatives data, and actionable insights. Price: $0.001 USDC Parameters:symbol(string, required): The token symbol (e.g., “SOL”, “ETH”, “BTC”).
GET /kol-sentiment
Analyzes tweets from the top 50 crypto Key Opinion Leaders (KOLs) to provide a market sentiment score, key narratives, and trending tokens. Includes broader Twitter pulse. Price: $0.001 USDC Parameters: None Example Request:GET /yield-alpha
Discover the best DeFi yield opportunities across blue-chip protocols like AAVE, Morpho, and Pendle, with APY comparisons. Price: $0.001 USDC Parameters: None Example Request:GET /trending-altcoins
Discover the top 3 trending altcoins (Rank 10-500) with a “Why it’s Trending” thesis and key metrics. Price: $0.001 USDC Parameters: None Example Request:GET /mega-report
Your comprehensive daily crypto market intelligence briefing. Combines top headlines, Twitter sentiment, KOL alpha, trending altcoins, yield opportunities, AND Coinglass derivatives context (Fear & Greed, ETF flows, funding arbitrage) into one executive summary with a link to a full HTML report. Price: $0.05 USDC Parameters: None Example Request:Data Intelligence
Token security, derivatives data, DeFi analytics, and TradFi macro context.GET /token-security
Scan any token contract for security risks — honeypots, hidden mints, rug pull indicators, buy/sell taxes, holder concentration, and liquidity analysis. Powered by GoPlus Security. Price: $0.001 USDC Parameters:address(string, required): Token contract address (0x-prefixed).chain(string, optional): Chain ID. Default:8453(Base). Supported:1(ETH),56(BSC),137(Polygon),42161(Arbitrum),8453(Base),43114(Avalanche),10(Optimism).
GET /funding-rates
Derivatives intelligence dashboard. With a symbol, get cross-exchange funding rates, open interest, long/short ratios, and whale positions. Without a symbol, get a market overview with arbitrage opportunities, liquidation data, and fear/greed index. Price: $0.001 USDC Parameters:symbol(string, optional): Token symbol for detailed view (e.g., “BTC”, “ETH”). Omit for market overview.
GET /defi-analytics
DeFi protocol analytics. With a protocol name, get detailed TVL, chain breakdown, and trend data. Without a protocol, get a market overview with top 20 protocols, gainers/losers, and chain comparison. Price: $0.001 USDC Parameters:protocol(string, optional): Protocol slug for detailed view (e.g., “aave”, “lido”, “uniswap”). Omit for DeFi overview.
GET /tradfi-data
TradFi macro intelligence for crypto context. With a ticker symbol, get a real-time quote with moving average analysis. Without a symbol, get a macro dashboard covering indices, VIX, DXY, treasury yields, and commodities with crypto impact analysis. Price: $0.001 USDC Parameters:symbol(string, optional): Ticker symbol for individual quote (e.g., “AAPL”, “MSFT”, “^GSPC” for S&P 500). Omit for macro dashboard.
Onchain Data
Aggregate-cache-fanout endpoints. Responses carrymeta.generatedAt + meta.stalenessSec. If the cache is cold or past hardMaxAge, the endpoint returns an unpaid 503 rather than a paid stale read — no charge for dead data.
GET /token-top-holders
Returns the top holders for any ERC-20 on Base with concentration metrics: what percentage the top 1/5/10/20 holders control, and how much is locked in contracts. Useful for whale tracking and distribution analysis. Price: $0.02 USDC Parameters:token(string, required): ERC-20 contract address on Base (0x-prefixed).
GET /stablecoin-watch
Live peg health and supply flows for the top 30 USD-pegged stablecoins. Tracks peg deviation in basis points, circulating supply with 1d/7d/30d flow (risk-on/off signal), dominance, and surfaces any stablecoins trading ≥50 bps below peg as depeg alerts. Price: $0.001 USDC Parameters: None Example Request:GET /protocol-revenue-leaders
Fundamentals screen for DeFi protocols — distinct from TVL. Returns the top 30 protocols ranked by 24h fees, with revenue, take-rate (protocol’s share of user-paid fees), 7d/30d fee trends, and total-DeFi fee/revenue aggregates. Built on DefiLlama’s public/overview/fees endpoint, refreshed hourly.
Price: $0.001 USDC
Parameters: None
Example Request:
GET /equity-intel
US stock fundamentals and SEC filing intelligence for any ticker. Returns revenue, net income, YoY growth, net margin, EPS (diluted), leverage, cash position, and a list of recent 10-K/10-Q/8-K filings with direct SEC EDGAR links plus an AI narrative read. Source: SEC EDGAR (public domain). Intel only — not a real-time price feed. Price: $0.001 USDC Parameters:ticker(string, required): US stock ticker symbol (e.g.NVDA,AAPL,JPM).
GET /base-season
What Base tokens are trusted KOLs actually talking about right now? Combines a quality screen (CoinGecko-listed, mcap/age/liquidity gated via GeckoTerminal) with Otto’s own KOL signal layer — each token carries mention counts, verbatim KOL quotes, and high-engagement open tweets. Also surfaces the overall crypto-KOL sentiment backdrop. “Who’s saying it, not who pumped it.” Refreshed hourly. Price: $0.001 USDC Parameters: None Example Request:If Otto’s KOL backend is unavailable,
kolSignalAvailable is false and tokens falls back to a volume-ranked quality screen only (no mention counts, no quotes). The endpoint still returns a 200 — degrade gracefully.AI Tools Agent
Advanced AI for knowledge, research, and creativity.POST /llm-research
Get instant, reliable answers to any question, or summarize a webpage/document from a URL. Powered by Google’s Gemini 3.5 Flash with live web search — answers include cited sources. Price: $0.10 USDC Request Body: (JSON)prompt(string, optional): A question or prompt for the AI (max 180 characters).url(string, optional): A URL to summarize or analyze.confirm_180_char_limit(boolean, required): Confirm you understand the 180 character limit.
prompt, url, or both parameters together.
Example Request (Prompt):
POST /generate-meme
Multi-model AI image generation powered by fal.ai. Transforms a detailed text prompt into a high-quality PNG, or edits a supplied image. Default model is OpenAI GPT Image 2 (strongest typography + photorealism); Google Nano Banana Pro is available as an alternative. Price: $0.15 USDC (flat) Request Body: (JSON)prompt(string, required): Detailed description of the image (100+ characters yields the best results).model(string, optional):gpt-image-2(default) ornano-banana-pro.image_url(string, optional): Public HTTPS URL of an image to edit/remix (triggers edit mode).aspect_ratio(string, optional):1:1(default),16:9, or9:16.
On ACP the same service is a flat $0.15 USDC job — same price as x402. Neither rail has a refund path; pricing is flat on both.
POST /video-gen
Multi-model AI video generation powered by fal.ai. Default is ByteDance Seedance 2.0 (cinematic output with native synced audio and start/end-frame control). Alternatives are OpenAI Sora 2 and Google Veo 3.1. Pricing is dynamic per request: at-cost fal.ai rate × 1.15 margin, with a $0.05 floor. Price: Dynamic USDC — see responseprice field. Range $0.46 – $4.60 depending on model + duration (advertised 402 shows the Seedance 5s reference quote, ~$1.75).
Models:
| Model | Modes | Notes |
|---|---|---|
seedance-2.0 | text-to-video, image-to-video | Default. Cinematic, native synced audio |
sora-2 | text-to-video, image-to-video | OpenAI Sora 2 |
veo-3.1 | text-to-video | Google Veo 3.1 (no image-to-video) |
prompt(string, required): 20–1000 characters. Describe motion, camera, and scene.model(string, optional):seedance-2.0(default),sora-2, orveo-3.1.duration(number, required): Video length in seconds, 4–10 (per-model caps enforced).aspect_ratio(string, optional):16:9(default),9:16, or1:1.image_url(string, optional): Public HTTPS URL for image-to-video. Auto-routes to the selected model’s i2v variant (Seedance 2.0 and Sora 2 only).
On ACP the same service runs at-cost with a flat $5 USDC up-front fee and a USDC refund for the unspent budget. x402 is pay-before-run, so it uses the dynamic estimate above (no refund).
Blockchain Tools
On-chain data decoding and analysis tools.POST /tx-explainer
Decode and explain any EVM blockchain transaction in plain English. Supports 11 chains: Base, Ethereum, Arbitrum, OP Mainnet, Avalanche, Polygon, Mantle, Monad, Plasma, BSC, and Hyperliquid L1. Returns a human-readable summary of swaps, transfers, approvals, DeFi interactions, NFT operations, and more. Powered by on-chain data + Gemini 3 Flash AI. Price: $0.01 USDC Parameters (JSON body):txHash(string, required): Transaction hash (0x-prefixed, 64 hex characters).chain(string, optional): Blockchain network. One of:base(default),ethereum,arbitrum,optimism,avalanche,polygon,mantle,monad,plasma,bsc,hyperliquid.outputLevel(string, optional):summary(default, one-liner) ordetailed(full breakdown with events).
A legacy
GET /tx-explainer?txHash=...&chain=...&outputLevel=... form is still accepted for backward compatibility, but POST is the canonical method — it is the one published to x402 discovery (Bazaar / x402scan).Deprecated Endpoints
The following endpoints have been removed and are no longer available:| Endpoint | Reason | Alternative |
|---|---|---|
/top-ten | Absorbed into /crypto-news | Use /crypto-news (now includes top headlines) |
/historical-summaries | Low demand, service discontinued | N/A |
Troubleshooting - Common Issues and Solutions
Issue: “Payment verification failed”
Possible Causes:- Insufficient USDC balance in your wallet
- Payment signature has expired (signatures are valid for ~60 seconds)
- Invalid or corrupted payment signature
- Payment already used (replay attack prevention)
- Verify your USDC balance on Base, Polygon, or Solana (whichever network you’re paying with)
- Ensure your system clock is synchronized (NTP)
- Regenerate the payment signature and retry immediately
- Check that you’re not reusing old payment signatures
Issue: “Invalid symbol parameter”
Possible Causes:- Token symbol doesn’t exist or is misspelled
- Using full token name instead of symbol (e.g., “Bitcoin” instead of “BTC”)
- Use standard token symbols: BTC, ETH, SOL, etc.
- Ensure the token symbol is uppercase
- Check CoinMarketCap for the correct symbol
Still Having Issues?
If you’re experiencing problems not covered here:- Review the error message: Our error responses include detailed information
- Contact support: Reach out to our developer support team
- Join our TG: Connect with other developers in our community
On-Chain Standards
ERC-8183: Agentic Commerce (Coming Soon)
ERC-8183 is a Draft ERC defining an on-chain job primitive for AI agent commerce — escrowed ERC-20 payments, a 6-state job lifecycle, evaluator-based completion, and composable hooks for extending behavior. The standard is co-authored by members of the Virtuals Protocol team and is designed to compose with ERC-8004 reputation below. Otto AI’s existing architecture — ACP job lifecycle, fund transfer workflows, evaluator logic, and gasless Smart Account execution — already implements the core patterns that ERC-8183 formalizes. When the standard launches on mainnet, Otto AI is positioned to be among the first agent swarms to adopt it natively.ERC-8004: On-Chain Reputation (Live)
Otto AI agents are registered on Ethereum Mainnet using the ERC-8004 standard for AI agent reputation. This enables verifiable, on-chain feedback for our services.Agent Registry
| Agent | ERC-8004 ID | Registry |
|---|---|---|
| Market Alpha Agent | 6817 | View on 8004scan |
| Trading Agent | 6940 | View on 8004scan |
| Tools Agent | 6996 | View on 8004scan |
0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 (Ethereum Mainnet)
Cross-Chain Payment Proof
When you submit feedback for an Otto AI agent, you can optionally include a Proof of Payment that links your feedback to an actual x402 transaction. This proof is stored as part of the feedback metadata on IPFS and referenced on-chain.Proof of Payment Structure
| Field | Description |
|---|---|
txHash | The x402 payment transaction hash |
chainId | The chain where payment occurred (8453 for Base, 137 for Polygon, solana for Solana) |
fromAddress | The payer’s wallet address |
toAddress | Otto AI’s x402 payment wallet |
Verification Process
Since the payment and feedback are on different chains, verification requires checking multiple sources:- Feedback Transaction: Verify on Etherscan (Ethereum Mainnet)
- Payment Transaction: Verify on Basescan (if
chainId: 8453) or Solscan (ifchainId: solana) - Feedback Metadata: View on IPFS via the
feedbackURIstored on-chain
- The feedback submitter actually paid for the service
- The specific service endpoint they used
- The exact payment amount and timestamp
Submitting Feedback
You can submit feedback directly at x402.ottoai.services using the feedback widget. After making a paid x402 request, your payment is automatically captured and can be selected when submitting feedback. Requirements:- Ethereum wallet (for submitting feedback on-chain)
- Small amount of ETH for gas (feedback tx is on Ethereum Mainnet)
- Optional: Recent x402 payment to link as proof
Additional Resources
- x402 Protocol Specification: https://x402.gitbook.io/x402
- Coinbase x402 Documentation: https://docs.cdp.coinbase.com/x402/welcome
- ERC-8183 Specification (Agentic Commerce): https://eips.ethereum.org/EIPS/eip-8183
- ERC-8004 Specification (Trustless Agents): https://eips.ethereum.org/EIPS/eip-8004
- 8004scan (Agent Reputation Explorer): https://8004scan.com
