Flexlora Edge AI Gateway & Router
A high-performance edge proxy layer deployed across Cloudflare Workers. Flexlora provides a unified, drop-in compatible API for OpenAI and Anthropic SDKs with dual-currency billing, FIFO credit accounting, and low gateway overhead.
5-Minute Quickstart
Generate API keys, configure your client library, and stream your first completion in seconds.
Full API Reference
Comprehensive HTTP specs for /v1/chat/completions, /v1/messages, and SSE streaming.
Edge Gateway Architecture
Every request to https://api.flexlora.com/v1/* passes through a multi-stage validation, rate limiting, and credit verification pipeline before reaching upstream model clusters:
- Header validation & SHA-256 API Key verification (
flx-...) - Per-key daily & monthly spend caps enforced in Upstash Redis
- Concurrency & rate limit checks (token bucket algorithm)
- Model alias resolution (e.g. mapping
flexlora:fastto optimal engine) - Idempotency key cache check to prevent double billing
Security & Encryption Standards
API keys are never stored in plaintext. Flexlora generates keys with flx- prefix and stores only their SHA-256 hash.
All internal upstream credentials are encrypted at rest with AES-256-GCM encryption keys. Service-role tokens are isolated from client bundles.
Requests are processed by third-party providers. See our Privacy Policy.
Curated Model Aliases
Full Catalog SpecsInstead of hardcoding complex upstream vendor revision strings, Flexlora provides high-stability aliases:
flexlora:fastOptimized for real-time applications, customer chat, coding autocompletion, and high-frequency data extraction.
flexlora:smartAdvanced reasoning engine designed for full-code refactoring, algorithmic problem solving, and document synthesis.