Install
What can agents do with it?
Model matching
Pick a model based on task type and constraints.
Provider coverage
Route across GPT, Claude, Gemini, Qwen, DeepSeek, Grok, and more.
Cost-aware routing
Choose cheaper models when quality needs allow it.
Fallback planning
Suggest alternates when a model is unavailable.
🔥 What Can You Do?
Multi-Model Chat
Model Comparison
Vision Analysis
Cost Optimization
Fallback Strategy
Why LLM Router?
Supported Model Families
Note: Model availability may vary. Check aisa.one/models for the full list of currently available models and pricing.
Quick Start
API Endpoints
OpenAI-Compatible Chat Completions
Request
Parameters
Message Format
Response
Streaming Response
Vision / Image Analysis
Analyze images by passing image URLs or base64 data:Function Calling
Enable tools/functions for structured outputs:Google Gemini Format
For Gemini models, you can also use the native format:Python Client
Installation
No installation required - uses standard library only.CLI Usage
Python SDK Usage
Use Cases
1. Cost-Optimized Routing
Use cheaper models for simple tasks:2. Fallback Strategy
Automatic fallback on failure:3. Model A/B Testing
Compare model outputs:4. Specialized Model Selection
Choose the best model for each task:Error Handling
Errors return JSON witherror field:
401- Invalid or missing API key402- Insufficient credits404- Model not found429- Rate limit exceeded500- Server error
Best Practices
- Use streaming for long responses to improve UX
- Set max_tokens to control costs
- Implement fallback for production reliability
- Cache responses for repeated queries
- Monitor usage via response metadata
- Use appropriate models - don’t use GPT-4 for simple tasks
OpenAI SDK Compatibility
Just change the base URL and key:Pricing
Token-based pricing varies by model. Check aisa.one/models for current rates. Every response includesusage.cost and usage.credits_remaining.
Full API Reference
See API Reference for complete endpoint documentation.Get started
- Sign up at aisa.one and create an API key in the console.
- Set it in your shell:
export AISA_API_KEY="your-key". - Install the skill with one of the commands under Install, then start a new agent session.
Related
Model Catalog
Browse supported model IDs and families.
Compare models
Compare models before routing production traffic.
AIsa CN-LLM Route
Chinese-language model routing.