The Problem
Prepaid API plans force teams to overbuy credits to cover bursty agent workloads. Autonomous agents running experiments across hundreds of tenants have no good way to bill per call without holding a key per tenant. x402 solves this with HTTP 402 micropayments, but most APIs do not speak it yet.
The Scavio Solution
Scavio supports x402 alongside API-key auth. An agent can initiate a request with zero key, receive an HTTP 402 challenge, resolve payment via its USDC wallet, and retry the request. No prepayment, no multi-tenant key juggling, micropayment settlement on Base.
Before
Prepaid credits or a key-per-tenant architecture that is painful to scale.
After
Pay-as-you-call with micropayments; agents self-fund per task.
Who It Is For
Builders of autonomous or multi-tenant agents who want usage-based billing without prepaid credits.
Key Benefits
- Zero prepayment needed; agents pay per call
- No key-per-tenant architecture
- Settles on Base via USDC micropayments
- Compatible with any x402-capable agent harness
- Falls back to API-key auth when preferred
Python Example
# Using the x402 python helper
from x402 import Client
client = Client(wallet='...')
response = client.post('https://api.scavio.dev/api/v1/search',
json={'query': 'hello'})
print(response.json())JavaScript Example
import { X402Client } from 'x402';
const client = new X402Client({ wallet: process.env.WALLET });
const r = await client.post('https://api.scavio.dev/api/v1/search', { query: 'hello' });
console.log(await r.json());Platforms Used
Web search with knowledge graph, PAA, and AI overviews
YouTube
Video search with transcripts and metadata
Amazon
Product search with prices, ratings, and reviews
Walmart
Product search with pricing and fulfillment data
Community, posts & threaded comments from any subreddit