API keyMost common Free key, plan-based rate limits. For apps with steady traffic.
All three unlock the same endpoints with the same parameters. Only the header changes.
Authorization: Basic Pay per call in USDC on Base or Solana. Agent-friendly, no key needed. PAYMENT-SIGNATURE Pay per call in USDC on Tempo. Agent-friendly, no key needed. Authorization: PaymentAPI key
Zerion API uses HTTP Basic Authentication, with your API key as the username and an empty password. Get a key from the Dashboard; its Get Started section also has ready-to-use snippets with your key pre-filled.1 · Key + colon
→YOUR_API_KEY:2 · Base64-encode
WU9VUl9BUElfS0VZOg==3 · Send as header
Authorization: Basic WU9VUl9BUElfS0VZOg==Username = your API key, password = empty. Keep the trailing colon: it separates the two.
Make your first call
From the docs: every API reference page has a playground. Click Try it, paste your API key in Username, leave Password empty, and click Send. From your code: most HTTP clients build the header when you pass the key as the Basic Auth username. Otherwise, encode it as shown above.Security best practices
- Store your API key in environment variables
- Make API requests from server-side code
- Rotate your key immediately if it’s ever compromised
- Use separate keys for development and production
Pay-per-request: x402 and MPP
Both x402 and MPP let you call Zerion API by paying a small USDC fee per request instead of presenting an API key. They’re a better fit than API keys when:- You’re building an AI agent or automated pipeline that shouldn’t manage long-lived credentials
- Traffic is bursty or unpredictable and you don’t want to size a rate-limited plan
- You want usage-based cost accounting at the request level
--x402 / --mpp flags.