HybridAI is an OpenAI-compatible gateway. It keeps sensitive prompts on private edge models, sends everything else to the fastest available cloud model, and fails over automatically when a provider is down or rate-limited.
Prompts that contain emails, phone-like or card-like numbers, or API-key patterns stay on Cloudflare edge models and are never forwarded to other providers. Detection is pattern-based: a first line of defense, not a guarantee.
If a provider is rate-limited or retires a model, the next one in the chain answers, so your app keeps working.
Each response reports which route and model answered, in the x-hybrid-route and x-hybrid-model headers.
Works with OpenAI-style clients. Change the base URL and your key, and you are done.
const client = new OpenAI({
baseURL: "https://api.hybridai.cloud/v1",
apiKey: "YOUR_KEY"
});