Documentation Index
Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt
Use this file to discover all available pages before exploring further.
Provider Routing
AGIPower adopts a multi-provider architecture, integrating multiple providers for the same model and selecting the optimal provider through intelligent routing to ensure the best performance and availability. When calling large models via AGIPower, developers do not need to worry about the underlying provider selection logicโsimply specify the model name.Why a Multi-Provider Architecture
In enterprise AI applications, a single-provider architecture carries significant risks:- Service interruption risk: Provider failures can halt your business
- Performance fluctuation: Latency and throughput vary widely across providers
- Cost optimization challenges: Lack of flexible provider selection mechanisms
- Geographic limitations: A single provider may not cover global markets
- Compliance requirements: Different regions have varying rules on data storage and processing
Key Benefits
High Availability
When a provider experiences service issues or capacity shortfalls, AGIPower automatically switches to other available providers to ensure continuity, without manual intervention. Assurance mechanisms:- Real-time health checks: Continuously monitor all providersโ service status
- Intelligent failover: Millisecond-level switching to backup providers
- Seamless transitions: Failover without user impact
- Multi-level redundancy: 2โ3 providers for mainstream models
Performance Optimization
Providers perform differently across geographies and time windows. AGIPower uses intelligent routing to select the best provider for each request. Performance advantages:- Latency optimization: First token latency is a key factor in provider selection
- Throughput assurance: Dynamically adjust provider allocation under high load
- Global acceleration: Leverage Cloudflareโs edge network for low global latency
- Real-time monitoring: Continuously track performance metrics to optimize routing
Flexible Cost Control
With a multi-provider architecture, you can flexibly select the most suitable provider based on budget and performance needs. Cost optimization methods:- Transparent price comparison: Real-time display of each providerโs pricing
- Easy switching: Seamlessly switch providers to optimize cost
- Demand-based routing: Control costs via provider routing configuration
Default Routing Strategy
AGIPower uses the following default routing strategy:- Performance first: Sort by first token latency from low to high
- Smart switching: If the origin provider is unavailable, automatically switch to other providers
A Simple Way to Specify Providers
AGIPower offers a straightforward provider configurationโmodel name suffix syntax. You do not need a separate provider field; you can specify the provider directly in the model name.Syntax
Examples
Each model on AGIPower has a unique slug. You can find the slug on the Model List page (https://agipower.ai/models):
Or on a specific modelโs detail page (https://agipower.ai/anthropic/claude-sonnet-4.5):

Or on a specific modelโs detail page (https://agipower.ai/anthropic/claude-sonnet-4.5):

Model providers on AGIPower have unique slugs. You can find a modelโs provider slug on the modelโs detail page (https://agipower.ai/anthropic/claude-sonnet-4.5):


JSON Request
OpenAI Python SDK
Highlights
| Feature | Description |
|---|---|
| Simple & intuitive | Specify in the model name; no extra fields needed |
| API compatible | Fully compatible with the standard OpenAI SDK parameters |
| Fast switching | Switch providers by changing only the model name |
| Clear visibility | Instantly see which provider is being used |
Advanced Routing Configuration
For finer control, AGIPower provides full provider configuration capabilities.Route by Performance Metrics
Use provider.routing to sort providers by specific performance dimensions.Supported Dimensions
| Dimension | Description |
|---|---|
| latency | Sort by first token latency from low to high |
| price | Sort by combined price (Prompt + Completion) from low to high |
| throughput | Sort by throughput from high to low |
Configuration Examples
Route by First-Token Latency
Route by Price
Route by Throughput
Specify Provider List
You can explicitly set the provider list and call order to implement custom fallback behavior.Specify Provider Order
Python SDK Example
Routing Behavior
When you specify a providers list, AGIPower behaves as follows:- Sequential calls: Attempt providers in listed order
- Stop on success: Stop once any provider returns successfully
- Single provider: If only one provider is specified, AGIPower will call only that provider
- Error handling: If the specified provider returns an error, return that error directly
Use Cases
Different routing strategies fit different business scenarios:| Scenario | Recommended Approach | Description |
|---|---|---|
| Pin a single provider | Model name suffix syntax | Simple and direct; suitable for production with fixed providers |
| Geographic optimization | Specify provider list | Choose geographically closer providers to reduce latency |
| Cost control | Route by price | Prefer providers with better pricing |
| Performance optimization | Route by latency or throughput | Dynamically select the best provider based on performance metrics |
| High availability | Specify multiple providers | Multi-provider fallback to ensure continuity |
| Compliance requirements | Pin specific providers | Choose providers that meet data compliance requirements |
| Testing & validation | Flexible switching | A/B test provider performance |
๐ Complete Example
How to View Provider Information
Model Details Page
Click any model card to open its detail page, where you can view:- Provider list: All providers supported by the model
- Performance comparison: First token latency, throughput, and other metrics across providers
- Price comparison: Detailed pricing for all billing items across providers
- Parameter comparison: Parameters supported by each provider
- Supported protocols: Call protocols supported by each provider (OpenAI API, Anthropic API, etc.)
- Availability status: Real-time service status of each provider
- Provider slug: Identifier used for provider routing configuration
For example, at the Claude Sonnet 4 detail page (https://agipower.ai/anthropic/claude-sonnet-4), you can see comprehensive comparisons across providers such as Anthropic, Google Vertex, and Amazon Bedrock.
Provider Details Page
You can also view all models supported by a provider on the provider details page:- Model list: All models integrated by the provider
- Usage statistics: Usage data across all models integrated by that provider
For example, visit the Anthropic provider page (https://agipower.ai/providers/anthropic) to see all Claude models provided by that provider and their details.
Through the model and provider detail pages, you can comprehensively understand the characteristics of each model and provider and make the best choice for your business needs.
FAQ
Q: How can I see which provider was used for a specific call?
A: In the AGIPower Console (https://agipower.ai/settings/activity), the request logs show detailed information for each request, including the model and provider used.