Create aliases like coding-prod or demo-safe, then route each request across OpenAI, Gemini and Grok pools using budget, health and fallback rules.
When an OpenAI, Gemini or Grok account fails or hits quota, switch pools and keep the reason in the log.
Send traffic across pools by reliability, capacity or budget.
Let each key use only the aliases and provider pools it is allowed to spend on.