Roulyx automatically routes your AI requests to the best model — faster, cheaper, and smarter than any single provider.
Send any AI request through our unified API
AI analyzes complexity, cost, and speed requirements
Routes to best LLM (GPT-4, Claude, Gemini, etc.)
Track usage, costs, and performance analytics
Fixed routing to GPT-4 for all requests
Intelligent model selection per request
// Chatbot - Fast responses for customer service
curl -X POST https://api.roulyx.com/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "How can I reset my password?",
"model": "auto",
"routing_mode": "speed",
"fallback_models": ["gpt-3.5-turbo", "claude-3-haiku"]
}'// Document summarization - Quality focused
curl -X POST https://api.roulyx.com/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Summarize this research paper: [document content]",
"model": "auto",
"routing_mode": "quality",
"max_tokens": 2000
}'// Sentiment analysis - Cost optimized
curl -X POST https://api.roulyx.com/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Analyze sentiment: This product exceeded expectations!",
"model": "auto",
"routing_mode": "balanced"
}'Authorization: Bearer YOUR_API_KEYNever expose API keys in client-side code or public repositories.
{
"error": {
"message": "Your API key seems invalid or expired. Check your dashboard.",
"hint": "Visit https://roulyx.ai/admin/keys to refresh it.",
"type": "authentication_error",
"code": 401,
"docs": "https://roulyx.ai/docs#authentication"
}
}Create your account and start building with Roulyx's intelligent API routing in minutes.