The full-stack pay-per-call API for crypto infrastructure. Every endpoint is x402-native — agents and developers pay USDC per request on Base & Solana. No API keys, no accounts, no subscriptions.
97 Primitives
91 Paid
6 Free
31 Categories
USDC on Base & Solana
gateway.spraay.app
Quick Start — Make your first x402 call
// Install the x402 clientnpm install x402-client
// Make a paid API call — payment is automaticimport { createClient } from"x402-client";
const client = createClient({
baseUrl: "https://gateway.spraay.app",
privateKey: process.env.EVM_PRIVATE_KEY, // Wallet with USDC on Base
});
// Fetch live ETH price — pays $0.005 USDC automaticallyconst prices = await client.get("/api/v1/oracle/prices");
console.log(prices); // { ETH: 2847.50, BTC: ... }// Batch send USDC to 50 wallets — pays $0.02 USDCconst tx = await client.post("/api/v1/batch/execute", {
token: "USDC",
recipients: [{ address: "0x...", amount: "10.00" }, /* ... */]
});
🧠
AI Inference
2 endpoints
POST Completions
OpenAI-compatible chat completions. 200+ models via BlockRun + OpenRouter. Streaming, function calling, vision.
/api/v1/chat/completions
$0.04 USDC
▼
Description
OpenAI-compatible chat completions. 200+ models via BlockRun + OpenRouter. Streaming, function calling, vision.
Method: POSTPrice: $0.04 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/chat/completions", {...}
);
GET Models
List all available AI models with pricing and capability metadata.
/api/v1/models
$0.001 USDC
▼
Description
List all available AI models with pricing and capability metadata.
Method: GETPrice: $0.001 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/models"
);
🧬
Bittensor — Decentralized AI
4 endpoints
GET Models
List decentralized AI models on Bittensor. OpenAI /v1/models compatible.
/bittensor/v1/models
$0.001 USDC
▼
Description
List decentralized AI models on Bittensor. OpenAI /v1/models compatible.
Method: GETPrice: $0.001 USDCStatus: Live
Request
const result = await client.get(
"/bittensor/v1/models"
);
POST Completions
Chat completions via Bittensor SN64 (Chutes). 43+ models, fully OpenAI-compatible.
/bittensor/v1/chat/completions
$0.03 USDC
▼
Description
Chat completions via Bittensor SN64 (Chutes). 43+ models, fully OpenAI-compatible.
Method: POSTPrice: $0.03 USDCStatus: Live
Request
const result = await client.post(
"/bittensor/v1/chat/completions", {...}
);
POST Generations
Image generation via Bittensor SN19 (Nineteen AI). OpenAI-compatible.
/bittensor/v1/images/generations
$0.05 USDC
▼
Description
Image generation via Bittensor SN19 (Nineteen AI). OpenAI-compatible.
Method: POSTPrice: $0.05 USDCStatus: Live
Request
const result = await client.post(
"/bittensor/v1/images/generations", {...}
);
POST Embeddings
Text embeddings via Bittensor. OpenAI /v1/embeddings compatible.
/bittensor/v1/embeddings
$0.005 USDC
▼
Description
Text embeddings via Bittensor. OpenAI /v1/embeddings compatible.
Method: POSTPrice: $0.005 USDCStatus: Live
Request
const result = await client.post(
"/bittensor/v1/embeddings", {...}
);
📡
Oracle, Prices & FX
4 endpoints
GET Prices
Aggregated oracle price feed across multiple sources.
/api/v1/oracle/prices
$0.008 USDC
▼
Description
Aggregated oracle price feed across multiple sources.
Method: GETPrice: $0.008 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/oracle/prices"
);
GET Gas
Real-time gas prices for Base and other supported EVM chains.
/api/v1/oracle/gas
$0.005 USDC
▼
Description
Real-time gas prices for Base and other supported EVM chains.
Method: GETPrice: $0.005 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/oracle/gas"
);
GET Fx
Stablecoin FX rates: USDC, USDT, DAI, EURC, pyUSD, and more.
/api/v1/oracle/fx
$0.008 USDC
▼
Description
Stablecoin FX rates: USDC, USDT, DAI, EURC, pyUSD, and more.
Method: GETPrice: $0.008 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/oracle/fx"
);
GET Prices
Multi-token price feed across major assets. Cached, low-latency.
/api/v1/prices
$0.002 USDC
▼
Description
Multi-token price feed across major assets. Cached, low-latency.
Method: GETPrice: $0.002 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/prices"
);
📊
Wallet Analytics
2 endpoints
GET Wallet
Wallet profile: balances, top tokens, activity tier, age, risk signals.
/api/v1/analytics/wallet
$0.01 USDC
▼
Description
Wallet profile: balances, top tokens, activity tier, age, risk signals.
Method: GETPrice: $0.01 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/analytics/wallet"
);
GET Txhistory
Transaction history for any address across supported chains.
/api/v1/analytics/txhistory
$0.008 USDC
▼
Description
Transaction history for any address across supported chains.
Method: GETPrice: $0.008 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/analytics/txhistory"
);
📦
Data, Balances & Discovery
2 endpoints
GET Balances
Multi-chain balance lookup for any address.
/api/v1/balances
$0.005 USDC
▼
Description
Multi-chain balance lookup for any address.
Method: GETPrice: $0.005 USDCStatus: Live
Request
const result = await client.get(
"/api/v1/balances"
);
GET Tokens
FREE — list of supported tokens across all chains.
/api/v1/tokens
FREE
▼
Description
FREE — list of supported tokens across all chains.
Method: GETPrice: FREEStatus: Live
Request
const result = await client.get(
"/api/v1/tokens"
);
🔍
Search & RAG
3 endpoints
POST Web
Web search powered by Tavily. Returns ranked URLs with snippets.
/api/v1/search/web
$0.02 USDC
▼
Description
Web search powered by Tavily. Returns ranked URLs with snippets.
Method: POSTPrice: $0.02 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/search/web", {...}
);
POST Extract
Extract clean readable content from one or more URLs.
/api/v1/search/extract
$0.02 USDC
▼
Description
Extract clean readable content from one or more URLs.
Method: POSTPrice: $0.02 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/search/extract", {...}
);
POST Qna
Question-answering over fresh web results. RAG out of the box.
/api/v1/search/qna
$0.03 USDC
▼
Description
Question-answering over fresh web results. RAG out of the box.
Method: POSTPrice: $0.03 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/search/qna", {...}
);
🧮
On-chain AI Inference
4 endpoints
POST Classify Address
Classify a wallet address: exchange, contract, EOA, MEV bot, etc.
/api/v1/inference/classify-address
$0.03 USDC
▼
Description
Classify a wallet address: exchange, contract, EOA, MEV bot, etc.
Method: POSTPrice: $0.03 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/inference/classify-address", {...}
);
POST Classify Tx
Classify a transaction by intent: swap, transfer, mint, exploit, etc.
/api/v1/inference/classify-tx
$0.03 USDC
▼
Description
Classify a transaction by intent: swap, transfer, mint, exploit, etc.
Method: POSTPrice: $0.03 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/inference/classify-tx", {...}
);
POST Explain Contract
AI-generated plain-English explanation of a smart contract.
/api/v1/inference/explain-contract
$0.03 USDC
▼
Description
AI-generated plain-English explanation of a smart contract.
Method: POSTPrice: $0.03 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/inference/explain-contract", {...}
);
POST Summarize
Intelligence briefing: AI summary of arbitrary on-chain context.
/api/v1/inference/summarize
$0.03 USDC
▼
Description
Intelligence briefing: AI summary of arbitrary on-chain context.
Method: POSTPrice: $0.03 USDCStatus: Live
Request
const result = await client.post(
"/api/v1/inference/summarize", {...}
);