Auto
DOS.AI Smart Router classifies each request by complexity. Simple and Medium requests use DOS.AI; Complex requests can use an eligible paid route configured in the live catalog.
Parameters
Smart Router
Context Length
128K
Category
chat
Available Serverless
Run queries immediately, pay only for usage
Usage-based
Priced per routed model
About this model
DOS.AI Auto analyzes each request and classifies it as Simple, Medium, or Complex. Simple and Medium requests use DOS.AI, while Complex requests can use an eligible paid route configured in the live catalog. The OpenAI-compatible endpoint keeps one integration, and response headers identify the requested and provider model for inspection.
Capabilities
Automatic model selectionCost optimizationTool callingStreamingOpenAI-compatible
Use Cases
- Cost-sensitive production apps
- Mixed workloads
- Agents
- Chatbots
Model Details
- Model ID
- auto
- Parameters
- Smart Router
- Context Length
- 128K tokens
- Category
- chat
API Integration
Use the DOS API to integrate Auto into your applications. Our API is compatible with OpenAI's client libraries for easy migration.
Model ID
autoPython
python
from dos import DOS
client = DOS()
response = client.chat.completions.create(
model="auto",
messages=[
{"role": "user", "content": "Hello, how are you?"}
]
)
print(response.choices[0].message.content)cURL
bash
curl https://api.dos.ai/v1/chat/completions \
-H "Authorization: Bearer $DOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [
{"role": "user", "content": "Hello, how are you?"}
]
}'Node.js
javascript
import DOS from 'dos-ai';
const client = new DOS();
const response = await client.chat.completions.create({
model: "auto",
messages: [
{ role: "user", content: "Hello, how are you?" }
]
});
console.log(response.choices[0].message.content);