Overview
The Alter API gateway is a centralized router that eliminates the need to manage multiple API keys and billing accounts across different AI providers. Instead of having your billing details scattered across many providers, you can use Alter as your single entry point for AI model access.What is Alter Router?
Alter itself is a router service—a unified API gateway providing access to:- 10+ AI model providers (OpenAI, Gemini, Claude, Mistral, etc.)
- 92+ individual AI models
- Simplified authentication and billing
- Easy model switching without code changes
Key Features
- OpenAI-compliant endpoint supporting chat completions and model listing
- Centralized billing through your Alter account
- Access to all models from external applications or custom code
- Seamless integration with existing OpenAI-compatible tools and SDKs
- Flexible model selection across all providers
Getting Started
1. Generate API Key
- Open Alter Settings (⌘ , or Settings menu)
- Go to Router tab
- Under “Alter API Keys” section, click “Add New Key” to generate a new API key
- Copy your key (starts with
sk-)
2. Get the Endpoint
The Alter router endpoint is:/v1:
3. List Available Models
Check what models are available:Model Naming Convention
When using the Alter API, model names follow this format:Examples:
OpenAI#gpt-5- Latest GPT-5OpenAI#gpt-5-nano- Lightweight GPTClaude#claude-sonnet-4-6- Latest ClaudeGemini#gemini-2.5-pro- Latest GeminiMistral#mistral-small-latest- Mistral modelAlter#best- Alter’s best model
Usage Methods
For Third-Party Applications
Use Alter as a backend for tools like SillyTavern, NovelCrafter, etc.:- Set base URL:
https://alterhq.com/api(or/v1) - Enter your API key
- Use
Provider#Model-nameformat when selecting models
For Custom Development
Python (with OpenAI SDK)
JavaScript (with OpenAI SDK)
LangChain (Python)
Direct cURL
Model Selection Guide
For Speed
Alter#light- Lightweight modelOpenAI#gpt-5-nano- Lightweight GPTGemini#gemini-2.5-flash-lite- Fast Gemini
For Quality
Alter#best- Best availableOpenAI#gpt-5- Most capable GPTGemini#gemini-2.5-pro- Powerful GeminiClaude#claude-sonnet-4-6- Latest Claude
For Vision/Images
OpenAI#gpt-5- Advanced multimodalGemini#gemini-2.5-pro- Strong visionMistral#pixtral-large-latest- Vision capable
For Coding
OpenAI#gpt-5- Excellent codeMistral#codestral-2501- Code specialistClaude#claude-sonnet-4-6- Strong coding
For Cost
Alter#fair- Cost-effectiveAlter#light- CheapestOpenAI#gpt-5-nano- Budget GPT
For Web Search
Perplexity#sonar- Web-awarePerplexity#sonar-pro- Advanced search
Supported Parameters
Standard OpenAI API parameters work with Alter:model- Model ID (required)messages- Chat messages (required)temperature- 0.0-2.0 (default: 1.0)max_tokens- Maximum response lengthtop_p- Nucleus samplingfrequency_penalty- Penalize repetitionpresence_penalty- Encourage new topics
Popular Use Cases
Third-Party App Integration
- SillyTavern - Roleplaying chat
- NovelCrafter - Creative writing
- Other OpenAI-compatible tools
Custom Application Backend
- Internal tools needing AI
- Customer support automation
- Content generation systems
- Data analysis workflows
Model Comparison & A/B Testing
Cost Optimization
Use cheaper models for high-volume tasks, powerful models for complex queries.Configuration
API Key Management
- Generate and manage API keys through Settings > Router
- Keep API keys secure—never share them publicly
- Rotate keys regularly for security
- Use different keys for different environments (dev/prod)
Usage Limits
The API gateway has fair use limitations:- Daily Limit: 200 requests per day under fair use
- Throttling: After exceeding daily limit, requests throttle to 1 per 10 minutes
- Budget Top-up: “Top up” your budget for consistent access beyond fair use limits
Troubleshooting
Models Not Listed
If your application doesn’t list available models:- Manually specify the model using
Provider#Model-nameformat - Verify your API key is correct
- Check that the application supports model listing endpoint
Authentication Errors
- Verify your API key is correctly entered
- Ensure you’re using correct endpoint:
https://alterhq.com/apiorhttps://alterhq.com/api/v1 - Check that your Alter account is active and in good standing
Connection Issues
- Verify the application supports OpenAI-compatible endpoints
- Ensure you’re using the latest version of Alter
- Check network connectivity to
alterhq.com
High Latency
- Try a faster model (e.g.,
OpenAI#gpt-5-nano) - Check your network connection
- Use streaming for long responses
Best Practices
- Secure your API key - Use environment variables, never hardcode
- Monitor usage - Track API calls and set alerts
- Choose appropriate models - Match model capability to task complexity
- Handle errors gracefully - Implement retry logic with backoff
- Optimize costs - Use faster/cheaper models for routine tasks