Model Selection Example
Use Adaptive’s intelligent model selection to get routing decisions without running inference. Perfect for testing strategies, cost planning, and integrating with your own provider accounts.This example demonstrates the
/select-model
endpoint which returns optimal model choices based on your prompt and criteria without actually running inference.Quick Start
The select-model endpoint helps you choose the best model from your available options based on prompt complexity, cost optimization, and task requirements.Cost vs Performance Optimization
Control the balance between cost and performance using thecost_bias
parameter.
Cost Bias Scale: 0.0 = cheapest models, 1.0 = best performance models
Function Calling Support
When tools are provided, Adaptive automatically prioritizes models that support function calling.Custom Models
Mix known cloud models with your custom local or fine-tuned models for hybrid deployments.Use Cases
Cost Planning
Test different routing strategies to estimate costs before implementation
A/B Testing
Compare model selection across different cost_bias values and prompts
Integration Testing
Validate routing decisions before connecting to your provider accounts
Hybrid Deployments
Mix cloud and on-premise models for optimal cost and latency
Complete Example
Here’s a full example that demonstrates all features:Key Benefits
No Inference Costs - Get routing decisions without running actual completions
Fast Decisions - Sub-second response times for model selection
Cost Optimization - Balance performance and cost with the cost_bias parameter
Function Calling Aware - Automatically prioritizes compatible models when tools are provided
Hybrid Support - Mix cloud and custom models seamlessly