Skip to main content

Overview

RedPill uses pay-as-you-go pricing based on token usage. Pay only for what you use, with no monthly minimums or subscriptions required.
All 60+ models (66+ provider integrations available) are TEE-protected at no extra cost. Privacy is included by default.

How Pricing Works

Token-Based Billing

You’re charged based on the number of tokens processed:
Cost = (Prompt Tokens × Prompt Price) + (Completion Tokens × Completion Price)
Example:
# Request with GPT-5
Prompt: "Explain quantum computing" (4 tokens)
Response: 150 tokens

Cost = (4 × $1.25/M) + (150 × $10/M)
     = $0.000005 + $0.0015
     = $0.001505

What is a Token?

Tokens are pieces of words. On average:
  • 1 token ≈ 4 characters in English
  • 1 token ≈ ¾ of a word
  • 100 tokens ≈ 75 words

Tokenizer Tool

Calculate tokens for your text →

Pricing Tiers

Free Tier

Perfect for testing and experimentation:
FeatureFree Tier
Rate Limit60 requests/min
Token Limit100K tokens/min
ModelsAll 60+ models (66+ provider integrations available)
TEE Protection✅ Included

Pay-As-You-Go

No monthly commitment:
FeaturePay-As-You-Go
CreditPurchase as needed
Minimum$10 minimum purchase
Rate Limit600 requests/min
Token Limit1M tokens/min
ModelsAll 60+ models (66+ provider integrations available)
TEE Protection✅ Included
Priority Support✅ Yes

Enterprise

Custom solutions for large organizations:
FeatureEnterprise
CreditCustom pricing
Rate LimitCustom
Token LimitCustom
ModelsAll models + custom
TEE Protection✅ Included
Dedicated Support✅ 24/7
SLA99.9% uptime
Custom ModelsAvailable

Contact Sales

Get enterprise pricing →

Model Pricing

OpenAI Models

ModelPrompt (per M tokens)Completion (per M tokens)
GPT-5.1$1.25$10
GPT-5$1.25$10
GPT-5 Mini$0.25$2
GPT-4.1$2$8
GPT-3.5 Turbo$0.5$1.5

Anthropic Models

ModelPrompt (per M tokens)Completion (per M tokens)
Claude Sonnet 4.5$3$15
Claude Opus 4.1$15$75
Claude 3.5 Haiku$0.8$4

Google Models

ModelPrompt (per M tokens)Completion (per M tokens)
Gemini 2.5 Pro$1.25$10
Gemini 2.5 Flash$0.3$2.5
Gemini 2.5 Flash-Lite$0.1$0.4

DeepSeek Models

ModelPrompt (per M tokens)Completion (per M tokens)
DeepSeek V3.1$0.28$1.14
DeepSeek R1$0.55$2.19
DeepSeek Chat$0.14$0.28

Qwen Models

ModelPrompt (per M tokens)Completion (per M tokens)
Qwen3 Coder 480B$0.3$1.49
Qwen3 VL 30B$0.15$0.6
Qwen 2.5 VL 72B$0.59$0.59
Qwen 2.5 7B$0.04$0.1

ZhipuAI Models

ModelPrompt (per M tokens)Completion (per M tokens)
GLM-4.6$0.5$2

Phala Confidential AI

ModelPrompt (per M tokens)Completion (per M tokens)
DeepSeek V3 (TEE)$0.28$1.14
GPT-OSS 120B (TEE)$0.1$0.49
Qwen 2.5 VL 72B (TEE)$0.59$0.59
Qwen 2.5 7B (TEE)$0.04$0.1
Qwen3 VL 235B (TEE)$0.3$1.49

View All Models

See pricing for all 60+ models (66+ provider integrations available) →

Cost Examples

Chatbot (1M messages/month)

Scenario: Customer support chatbot
  • Average prompt: 50 tokens
  • Average response: 150 tokens
  • Model: GPT-3.5 Turbo
Monthly cost = 1M × [(50 × $0.5/M) + (150 × $1.5/M)]
             = 1M × [$0.000025 + $0.000225]
             = 1M × $0.00025
             = $250/month

Document Analysis (10K documents)

Scenario: Legal document review
  • Average document: 2K tokens
  • Average analysis: 500 tokens
  • Model: Claude Sonnet 4.5
Total cost = 10K × [(2K × $3/M) + (500 × $15/M)]
           = 10K × [$0.006 + $0.0075]
           = 10K × $0.0135
           = $135

Code Generation (100K generations)

Scenario: AI coding assistant
  • Average prompt: 100 tokens
  • Average code: 300 tokens
  • Model: GPT-4.1
Total cost = 100K × [(100 × $2/M) + (300 × $8/M)]
           = 100K × [$0.0002 + $0.0024]
           = 100K × $0.0026
           = $260

Rate Limits

Free Tier

LimitValue
Requests per minute60
Tokens per minute100,000
Tokens per day2,000,000

Pay-As-You-Go

LimitValue
Requests per minute600
Tokens per minute1,000,000
Tokens per day20,000,000

Enterprise

Custom rate limits based on your needs.

Billing & Credits

Credit System

RedPill uses an internal credit system for billing: Conversion Rate: 1 USD = 2,000,000 credits Example Conversion:
$10 USD = 20,000,000 credits
$50 USD = 100,000,000 credits
$100 USD = 200,000,000 credits
How It Works:
  1. Token costs are converted to credits
  2. Credits deducted from your balance in real-time
  3. Your dashboard shows balance in both USD and credits
Example Token Cost Calculation:
# GPT-5: $1.25/M input tokens, $10/M output tokens
# Convert to credits:
Input cost: $1.25 / 1M tokens = 2,500 credits per token
Output cost: $10 / 1M tokens = 20,000 credits per token

# For a request with 100 input + 500 output tokens:
Total credits = (100 × 2.5) + (500 × 20)
              = 250 + 10,000
              = 10,250 credits
              = $0.005125 USD

Adding Credits

  1. Go to Dashboard
  2. Click “Add Credits”
  3. Choose amount ($10 minimum)
  4. Pay with credit card or crypto
  5. Credits available immediately
Minimum Purchase Amounts:
  • Regular: 5minimum(5 minimum (10 minimum for first purchase)
  • Phala Cloud: $1 minimum
Maximum Purchase:
  • Regular: $100 per transaction (flat rate)
  • Phala Cloud: $10 per transaction
  • Enterprise: Custom limits

Auto-Recharge

Never run out of credits with automatic recharging: Setup Auto-Recharge:
curl https://api.redpill.ai/api/user/auto-recharge-settings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -X PUT \
  -d '{
    "auto_recharge_enabled": true,
    "auto_recharge_threshold": 10,
    "auto_recharge_amount": 50
  }'
How It Works:
  • Set a threshold (e.g., $10 remaining)
  • Set recharge amount (e.g., $50)
  • System automatically recharges when balance drops below threshold
  • Uses your default payment method
  • Runs every 5 minutes
  • Automatically disables on payment failures
Requirements:
  • Minimum threshold: $5 USD
  • Minimum recharge: $5 USD
  • Valid default payment method required

Credit Expiration

  • Free credits: Expire after 90 days
  • Purchased credits: Never expire
  • Auto-recharged credits: Never expire

Billing Alerts

Set up alerts in your dashboard:
  • Low balance warning (e.g., less than $5)
  • Daily spend limit (e.g., more than $100/day)
  • Unusual usage spike detection
  • Auto-recharge notifications

Pricing vs Competitors

vs Direct Provider APIs

ProviderModelTheir PriceRedPill PriceDifference
OpenAIGPT-4.12/2/8 per M2/2/8 per MSame
AnthropicClaude Sonnet 4.53/3/15 per M3/3/15 per MSame
GoogleGemini 2.5 Pro1.25/1.25/10 per M1.25/1.25/10 per MSame
RedPill pricing matches provider pricing, but adds TEE protection at no extra cost!

vs Tinfoil

FeatureTinfoilRedPill
Confidential models✅ Yes✅ Yes
Multi-provider❌ Limited✅ 60+ models (66+ provider integrations available)
TEE gateway❌ No✅ Yes
Price premium~20% markupSame as providers

vs OpenRouter

FeatureOpenRouterRedPill
Multi-provider✅ Yes✅ Yes
TEE protection❌ No✅ Yes
PricingCompetitiveSame + TEE

Cost Optimization Tips

Don’t use GPT-4.1 when GPT-3.5 suffices:
  • GPT-4.1: $2/M → Complex reasoning
  • GPT-3.5: $0.5/M → Simple tasks
  • Savings: 4x cheaper!
Shorter prompts = lower cost:
# ❌ Expensive (100 tokens)
"Please analyze the following text and provide a detailed..."

# ✅ Cheaper (10 tokens)
"Analyze: [text]"
Stop generation early when you have enough:
stream = client.chat.completions.create(
    model="openai/gpt-4.1",
    messages=[...],
    stream=True,
    max_tokens=100  # Limit output
)
Avoid redundant API calls:
# Cache common queries
cache = {}
key = hash(prompt)
if key in cache:
    return cache[key]
response = client.chat.completions.create(...)
cache[key] = response
Process multiple items in one request:
# ✅ Efficient
response = client.chat.completions.create(
    messages=[{
        "role": "user",
        "content": "Translate these 10 phrases: ..."
    }]
)
Start with cheaper models:
  1. Try qwen/qwen-2.5-7b-instruct ($0.04/M)
  2. If quality insufficient, upgrade to GPT-3.5 ($0.5/M)
  3. Use GPT-4.1 ($2/M) only when necessary

Payment Methods

Supported Methods

  • Credit/Debit Cards - Visa, Mastercard, Amex via Stripe
  • Cryptocurrency - BTC, ETH, USDC via Coinbase Commerce
  • Wire Transfer - Enterprise only ($10K minimum)
  • ACH - US enterprise only
  • Phala Cloud - Direct integration for Phala ecosystem users

Payment Method Management

Manage your saved payment methods via API:
# List saved cards
curl https://api.redpill.ai/api/recharge/stripe/payment-methods \
  -H "Authorization: Bearer YOUR_API_KEY"

# Add new payment method
curl https://api.redpill.ai/api/recharge/stripe/payment-methods \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{
    "payment_method_id": "pm_abc123xyz"
  }'

# Set default payment method
curl https://api.redpill.ai/api/recharge/stripe/payment-methods/default \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -X PUT \
  -d '{
    "payment_method_id": "pm_abc123xyz"
  }'

3D Secure Authentication

For enhanced security, RedPill uses risk-based 3D Secure (3DS) authentication. 3DS is Required When:
  • 2+ failed payments in history
  • 5+ payment attempts in 24 hours
  • Missing IP address or user agent
  • Risk score ≥ 50 (calculated by fraud detection)
How It Works:
  1. Submit payment request
  2. If 3DS required, receive clientSecret
  3. Complete authentication flow on frontend
  4. Payment confirmed after successful 3DS

Security

  • PCI DSS compliant payment processing
  • No card details stored on RedPill servers
  • Secure payment via Stripe & Coinbase
  • All transactions encrypted end-to-end
  • 3D Secure for fraud prevention
  • Fraud detection with risk scoring

Enterprise Billing

Monthly Invoicing

Enterprise customers can opt for monthly invoicing instead of prepayment: How It Works:
  • Use RedPill throughout the month
  • Invoice generated automatically on the 1st of each month
  • 15-day payment terms
  • Minimum invoice amount: $1.00
  • Covers negative credit balances
Invoice Delivery:
  • Sent via email
  • Hosted invoice URLs (Stripe)
  • Downloadable PDF format
  • Custom purchase order numbers
Eligible Customers:
  • Enterprise tier only
  • Valid Stripe customer ID required
  • Excludes specific internal domains
Example Invoice:
Invoice Date: December 1, 2025
Due Date: December 16, 2025
Amount: $1,234.56

Description: RedPill AI Usage - November 2025
Usage: 500M tokens processed
Models: GPT-5, Claude Sonnet 4.5, DeepSeek V3

Payment Terms

TierTermsMethod
FreePrepaidCard only
Pay-As-You-GoPrepaidCard, Crypto
EnterpriseNet-15 (monthly invoice)Wire, ACH, Card

Refund Policy

  • Unused credits: Refundable within 30 days
  • Used credits: Non-refundable
  • Bulk purchases: Custom terms
  • Enterprise contracts: Per agreement
  • Auto-recharge: Can be disabled anytime

FAQs

No! All requests are TEE-protected at no additional cost. Privacy is included in standard pricing.
  • Free credits: 90 days
  • Purchased credits: Never
Yes! Contact [email protected] for enterprise pricing.
API requests will fail with “insufficient credits” error. Add credits to resume.
Yes, set daily/monthly limits in your dashboard to prevent unexpected charges.
We use the same tokenizer as the provider (e.g., OpenAI’s tokenizer for GPT models). Check your dashboard for exact counts.

Next Steps