ReliAPI

Reliability layer for AI API calls

How It Works

Replace your OpenAI/Anthropic base URL with ReliAPI:

// Before
const client = new OpenAI({ baseURL: "https://api.openai.com/v1" })

// After
const client = new OpenAI({ 
  baseURL: "https://api.kikuai.dev/v1/reliapi/proxy/openai"
})

Features

Smart Retries

Automatic retry with exponential backoff on 429/5xx errors.

Semantic Caching

Cache identical prompts to reduce latency and costs.

Fallback Chains

Automatically failover to backup providers on errors.

Configuration

// Headers for configuration
X-ReliAPI-Cache: true          // Enable caching
X-ReliAPI-Cache-TTL: 3600      // Cache TTL in seconds
X-ReliAPI-Retries: 3           // Max retry attempts
X-ReliAPI-Fallback: anthropic  // Fallback provider

Pricing

1% of proxied API costs. Minimum $5/month. Cache hits are free.