https://x402.ottoai.services
Networks: Base Mainnet + Solana Mainnet
Payment: USDC on Base or Solana (via the x402 protocol)
Pricing Overview
| Endpoint | Price (USDC) | Description |
|---|---|---|
/crypto-news | $0.01 | Real-time crypto market news with sentiment |
/filtered-news | $0.10 | AI-filtered news for specific topics |
/twitter-summary | $0.01 | Curated Twitter/X crypto digest |
/token-details | $0.10 | Token price, market cap, volume, metrics |
/token-alpha | $0.10 | Premium token intelligence with derivatives data |
/kol-sentiment | $0.10 | Top 50 KOL sentiment analysis |
/yield-alpha | $0.10 | DeFi yield opportunities |
/trending-altcoins | $0.10 | Top 3 trending altcoins |
/mega-report | $0.25 | Comprehensive daily market briefing |
/token-security | $0.10 | Token contract security audit (GoPlus) |
/funding-rates | $0.10 | Derivatives dashboard (funding, OI, whales) |
/defi-analytics | $0.10 | DeFi protocol analytics (TVL, trends) |
/tradfi-data | $0.10 | TradFi macro intelligence (VIX, DXY, yields) |
/generate-meme | $0.50 | AI image generation (Gemini 3 Pro) |
/llm-research | $0.50 | AI research assistant (Gemini 2.5 Pro) |
/tx-explainer | $0.01 | Decode & explain any EVM transaction (11 chains) |
/video-gen | 7.50 | Video generation (Sora 2, dynamic pricing) |
How to Make a Request (x402 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 will reject this request with an HTTP 402 Payment Required status code. The response body contains the payment details.Step 2: Client Signs & Pays
The client must now use a wallet to:- Read the payment requirements from the 402 response.
- Construct and sign a valid payment payload (like an EIP-3009 transferWithAuthorization).
Step 3: Retry Request with Payment Header
The client retries the exact same request, but this time includes anX-PAYMENT header containing the signed payment payload.
Step 4: Success (Receives Data)
The server receives the request, verifies the payment payload with a Facilitator, and, if valid, settles the transaction and returns the 200 OK response with the requested data.Understanding the Facilitator
The Facilitator is a critical component of the x402 payment flow. It acts as a trusted intermediary that:- Validates Payment Signatures: Verifies that the payment authorization in the
X-PAYMENTheader is cryptographically valid and signed by the account with sufficient balance. - Prevents Replay Attacks: Ensures each payment signature can only be used once by tracking nonces and timestamps.
- Executes On-Chain Settlement: Submits the validated payment transaction to the blockchain (Base network) to transfer USDC from the buyer to the service provider.
- Provides Instant Confirmation: Returns confirmation to the API server within milliseconds, enabling real-time service delivery.
- The Facilitator is a separate service operated by the x402 protocol infrastructure
- All payment validations happen off-chain for speed, but settlements are on-chain for security
- Payment signatures typically expire after a short window (e.g., 60 seconds) to prevent stale transactions
- Each payment includes a unique nonce to prevent replay attacks
Client-Side Example (Node.js / Axios)
For programmatic access, we recommend using a client library likex402-axios to handle this 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.01 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.10 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.10 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.10 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.10 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.10 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.10 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.25 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.10 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.10 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.10 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.10 USDC Parameters:symbol(string, optional): Ticker symbol for individual quote (e.g., “AAPL”, “MSFT”, “^GSPC” for S&P 500). Omit for macro dashboard.
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 2.5 Pro with live web search. Price: $0.50 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
Transforms a detailed text prompt into a high-quality PNG image, perfect for memes and branding, with high-fidelity text rendering. Powered by Google’s Gemini 3 Pro Image Preview (Nano Banana Pro). Price: $0.50 USDC Request Body: (JSON)prompt(string, required): A detailed description of the image. Be specific and include text you want rendered (100+ characters recommended).does_this_prompt_meet_nano_banana_safety_guidelines(boolean, required): Confirm the prompt meets safety guidelines.
POST /video-gen
Generates high-quality video from text or image using OpenAI’s Sora 2 models. Pricing is dynamic based on the selected model and duration. Price: Dynamic (7.50 USDC) Pricing Tiers:| Model | 4s Price | 8s Price | 12s Price |
|---|---|---|---|
| sora-2 | $1.00 | $2.00 | $3.00 |
| sora-2-pro | $2.50 | $5.00 | $7.50 |
prompt(string, required): A detailed description of the video.model(string, required): Model to use:sora-2(Standard) orsora-2-pro(Pro).seconds(number, required): Duration of the video: 4, 8, or 12.orientation(string, optional): Video aspect ratio:portraitorlandscape(default: ‘portrait’).image_url(string, optional): Source image URL for image-to-video generation.
Blockchain Tools
On-chain data decoding and analysis tools.GET /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: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).
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 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
ERC-8004 On-Chain Reputation
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, 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-8004 Specification: https://eips.ethereum.org/EIPS/eip-8004
- 8004scan (Agent Reputation Explorer): https://8004scan.com
