Styx
AI gateway that auto-picks the right model for every request
Styx – AI gateway that auto-selects the optimal model per request
Summary: Styx is an open-source AI gateway that routes requests to the best model based on prompt complexity, using over 65 models from providers like OpenAI and Google. It features a Go router, Python backend, and Next.js dashboard, supports self-hosting via Docker, and includes cost and latency monitoring with auto-failover.
What it does
Styx analyzes nine prompt signals to classify complexity and automatically selects the appropriate AI model, balancing cost and performance. It offers an interactive setup wizard and a dashboard for managing usage and latency.
Who it's for
Developers and teams needing dynamic AI model routing to optimize costs and performance across multiple providers.
Why it matters
It eliminates manual model selection and reduces overpayment by automatically matching queries to the most suitable AI model.