Skip to content

Commit f77e8a8

Browse files
author
Murtaza Nsair
committed
Minor documentation fixes
1 parent 896e850 commit f77e8a8

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

docs/getting-started/configuration/ai-providers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,12 @@ After successful connection test:
302302
### Important Note on Cost Tracking
303303

304304
**Cost Discrepancies**: Tracked costs in MAESTRO may differ from your provider dashboard, especially with API aggregators like OpenRouter. This happens because:
305+
305306
- Aggregators route to different backend providers with varying actual costs
306307
- Dynamic routing optimizes for speed/availability, not just price
307308
- Some providers count tokens differently for billing
308309

309-
Tracked costs are typically 40-60% of dashboard charges. This is not a bug - MAESTRO calculates correctly based on advertised rates. For details and testing tools, see [Cost Tracking Discrepancies](../../troubleshooting/common-issues/ai-models.md#cost-tracking-discrepancies).
310+
Tracked costs are typically 40-60% of dashboard charges, especially with providers like openrouter. This is not a bug - MAESTRO calculates correctly based on advertised rates. For details and testing tools, see [Cost Tracking Discrepancies](../../troubleshooting/common-issues/ai-models.md#cost-tracking-discrepancies).
310311

311312
## Common Configurations
312313

docs/troubleshooting/common-issues/ai-models.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ This is a known issue with some API providers' pricing and billing. MAESTRO corr
151151
#### The Problem
152152

153153
Some API providers, particularly aggregators/routers, have inconsistent billing:
154+
154155
1. **API aggregators route to different providers** - Each backend provider may have different actual costs
155156
2. **Dynamic routing affects pricing** - Aggregators choose providers based on availability and latency, not just price
156157
3. **API `usage.cost` field may be unreliable** - Sometimes returns values ~100x lower than actual charges
@@ -169,10 +170,10 @@ Here's actual data from testing with a popular model:
169170
| 64 | 124 | $0.000106 | $0.000002 | $0.000157 | **1.48x** |
170171

171172
**Key Findings:**
172-
- Token counts are usually accurate across API and dashboard ✅
173-
- MAESTRO's pricing calculation is correct based on advertised rates ✅
174-
- Some providers' API `usage.cost` field may be broken ❌
175-
- Dashboard charges can be inconsistent with advertised rates
173+
174+
- Token counts are usually accurate across API and dashboard
175+
- MAESTRO's pricing calculation is correct based on advertised rates
176+
- Dashboard charges can be inconsistent with advertised rates
176177

177178
#### Testing Your Own Costs
178179

@@ -212,6 +213,7 @@ python scripts/test_openrouter_pricing.py --api-key YOUR_API_KEY
212213
#### Technical Details
213214

214215
The discrepancy may be caused by:
216+
215217
- **Aggregator routing**: Services like OpenRouter route to different backend providers with varying costs
216218
- **Dynamic provider selection**: Aggregators optimize for availability and latency, not just price
217219
- **Hidden tokens**: Providers may count system prompts or special tokens not reported in API

docs/troubleshooting/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- Dynamic routing optimizes for speed/availability, not just price
1111
- Some providers count hidden tokens not reported in their API
1212

13-
Your tracked costs will typically be 40-60% of actual dashboard charges. This is not a bug in MAESTRO - we calculate correctly based on advertised rates. See [Cost Tracking Discrepancies](common-issues/ai-models.md#cost-tracking-discrepancies) for details and workarounds.
13+
Your tracked costs may typically be 40-60% of actual dashboard charges, especially with providers like Openrouter, that may route your calls to further providers with differing rates. This is not a bug in MAESTRO - we calculate correctly based on advertised rates. See [Cost Tracking Discrepancies](common-issues/ai-models.md#cost-tracking-discrepancies) for details and workarounds.
1414

1515
### Q: How can I reduce my API costs?
1616

0 commit comments

Comments
 (0)