BYOK vs Markup Pricing: Why Bringing Your Own Keys Matters
Understand the economics of AI proxy pricing models. Why BYOK saves you money and gives you control. Includes cost comparison calculators.
ReForge Team
Engineering
When choosing an LLM proxy or AI gateway, pricing model matters just as much as features. Get this wrong, and you could be paying 2-3x more than necessary.
This guide breaks down the two dominant pricing models—**BYOK (Bring Your Own Key)** and **Markup Pricing**—and shows you which one makes sense for your business.
What is BYOK?
**BYOK (Bring Your Own Key)** means you provide your own API keys from LLM providers (OpenAI, Anthropic, etc.) and the platform charges a flat fee for the proxy/gateway service.
How BYOK Works
1. You sign up with OpenAI directly
2. You get your own API key
3. You add that key to the proxy platform
4. Platform proxies requests using YOUR key
5. OpenAI bills YOU directly for usage
6. Platform charges YOU a flat monthly feeBYOK Pricing Example
OpenAI billing (direct to you):
- 1M tokens @ GPT-4 Turbo: $40.00
Platform fee (ReForge LLM):
- Flat monthly fee: $99/month
- No markup on tokens
Total monthly cost (1M tokens/month):
- $40 (OpenAI) + $99 (platform) = $139What is Markup Pricing?
**Markup Pricing** means the platform provides API keys and marks up the token prices 20-50% above provider costs.
How Markup Works
1. You sign up with the proxy platform
2. Platform gives you THEIR API key
3. You don't have OpenAI account
4. Platform bills you for usage + markup
5. Platform pays OpenAI wholesale
6. Platform keeps the marginMarkup Pricing Example
OpenAI wholesale cost:
- 1M tokens @ GPT-4 Turbo: $40.00
Platform markup (30% typical):
- Your price: $52.00
Total monthly cost (1M tokens/month):
- $52 (all-in platform billing)Cost Comparison
At Different Usage Levels
| Monthly Usage | BYOK Total | Markup Total (30%) | Difference | Winner |
|---------------|------------|-------------------|------------|--------|
| 1M tokens | $139 | $52 | +$87 | Markup |
| 5M tokens | $299 | $260 | +$39 | Markup |
| 10M tokens | $499 | $520 | -$21 | BYOK |
| 50M tokens | $2,099 | $2,600 | -$501 | BYOK |
| 100M tokens | $4,099 | $5,200 | -$1,101 | BYOK |
| 500M tokens | $20,099 | $26,000 | -$5,901 | **BYOK** |
**Breakeven point**: ~7-8M tokens/month
Real-World Scenario
**SaaS company with 100K daily requests**:
**BYOK pricing**:
**Markup pricing (30%)**:
**Savings with BYOK: $3,101/month** or **$37,212/year**
Beyond Cost: Other Considerations
BYOK Advantages
// You see exactly what you pay
const openaiInvoice = {
gpt4Tokens: 10_000_000,
costPerToken: 0.00004,
total: 400.00 // No hidden markups
}// You control spending limits
await openai.updateBilling({
monthlyLimit: 10000,
alertThreshold: 8000
})Markup Pricing Advantages
// One invoice, one vendor
const invoice = {
allLLMCosts: 1234.56,
nothingElseToPay: true
}Security & Compliance
BYOK Security Model
// Your keys are encrypted at rest
const encryptedKey = await encrypt(yourOpenAIKey, {
algorithm: 'AES-256-GCM',
key: customerMasterKey
})
// Platform never sees your plaintext key
// Decrypted only in memory during request
const response = await proxyRequest({
key: encryptedKey, // Decrypted just-in-time
prompt: userPrompt
})**Benefits**:
Markup Security Model
Platform owns keys → You trust platform**Risks**:
When to Choose BYOK
Choose BYOK if:
When to Choose Markup
Choose Markup if:
Migration: Markup → BYOK
If you start with markup and outgrow it:
// Step 1: Sign up with providers
const openaiKey = await signUpOpenAI()
const anthropicKey = await signUpAnthropic()
// Step 2: Add keys to platform
await platform.addKey({
provider: 'openai',
key: openaiKey,
encrypted: true
})
// Step 3: Switch pricing model
await platform.updateBillingModel({
from: 'markup',
to: 'byok',
effectiveDate: new Date('2024-04-01')
})
// Step 4: Traffic automatically routes to your keysThe ReForge Approach
At ReForge LLM, we believe in BYOK:
const pricing = {
model: 'byok',
monthlyFee: 99, // Starter
markup: 0, // No markup ever
transparency: 'full',
ownership: 'customer'
}**Why**:
Key Takeaways
Cost Calculator
function calculateBestModel(monthlyTokens: number): {
byok: number
markup: number
recommendation: string
} {
const tokenCost = monthlyTokens * 0.00004 // GPT-4 Turbo
const byokTotal = tokenCost + 99 // BYOK flat fee
const markupTotal = tokenCost * 1.3 // 30% markup
return {
byok: byokTotal,
markup: markupTotal,
recommendation: byokTotal < markupTotal ? 'BYOK' : 'Markup'
}
}
// Example: 20M tokens/month
const result = calculateBestModel(20_000_000)
console.log(\`
BYOK: $\${result.byok.toFixed(2)}
Markup: $\${result.markup.toFixed(2)}
Recommendation: \${result.recommendation}
\`)
// Output:
// BYOK: $899.00
// Markup: $1,040.00
// Recommendation: BYOKChoose wisely. Your pricing model decision can save (or cost) you thousands per month.