Live on Base

Cut API costs
by up to 60%.
Pay with USDC.

RayRouter routes AI requests to the best-priced provider node and settles USDC directly from your self-custodial wallet — non-custodial, on-chain, zero platform trust required.

Drop-in base URL
$ OPENAI_BASE_URL=https://api.rayrouter.com/v1
Non-custodial · Self-custody walletOpenAI-compatible API
LIVE RATES

Average 60% Savings

Route queries dynamically to get identical responses at wholesale provider pricing.

OpenAI GPT-5.5
61.0%
Input$5.00$1.9561.0%
Output$30.00$11.7061.0%
Cache Hit$2.50$0.9860.8%
Anthropic Claude 4.8 Opus
60.3%
Input$5.00$1.9860.4%
Output$25.00$9.9060.4%
Cache Hit$0.50$0.2060.0%
Google Gemini 3.5 Flash
60.4%
Input$1.50$0.5960.7%
Output$9.00$3.5560.6%
Cache Hit$0.75$0.3060.0%

Estimated savings based on standard retail pricing vs. sampled provider bids. Actual savings may vary by model and usage volume.

FEATURES

Smart Routing. Token Auditing.

A high-performance router matching requests to the cheapest nodes with built-in auditing and on-chain settlement.

one key · four protocols

Unified API Gateway

Call OpenAI, Claude, and Gemini via one API key. Zero lock-in, native SSE streaming.

OpenAI ChatResponsesClaudeGemini
200 OK
POST/v1/chat/completions
Request
curl -X POST "https://api.rayrouter.com/v1/chat/completions" \
  -H "Authorization: Bearer sk-••••" \
  -d '{
    "model": "your-model",
    "messages": [
      { "role": "user", "content": "..." }
    ]
  }'

Real-Time Arbitrage

Routes queries via multi-factor scoring (70% price, 15% latency, 15% uptime) to secure the cheapest node.

70% price · 15% latency · 15% uptime

Non-Custodial Direct-Pay

Every 60 seconds, UserWallet.settle() atomically distributes USDC directly to each provider — no fund pool, no overnight float. Providers choose instant, reviewed, or 7-day trustless withdrawal.

settle() · every 60s

Post-Response Audit

Background token audits and speed anomaly checks run before settlement.

tiktoken · post-stream

Circuit Breaker & Failover

Failing nodes cool down instantly. Official vendor APIs act as automatic fallback endpoints to guarantee 100% service availability and reliability.

3 strikes · 10min cooldown
For Developers

Start saving on AI costs today.

Swap your base URL and pay wholesale rates for OpenAI, Claude, and Gemini. USDC settles directly from your self-custodial wallet to providers every 60 seconds — transparent, on-chain, zero platform trust.

  • Drop-in base URL, zero code changes
  • Pay-as-you-go · No subscriptions
  • Self-custody wallet · On-chain settlement
For Providers

Turn spare API quota into USDC.

Register your node, set your bid price, and earn USDC directly from developers — non-custodial, on-chain, every 60 seconds.

  • Direct settlement, no fund pool
  • Instant / Reviewed / 7-day withdrawal
  • Self-set competitive bid pricing