Skip to main content
Optimize infrastructure and LLM API costs with TealTiger’s built-in cost optimization features. This guide covers provider selection, request batching, caching strategies, and cost tracking.

Why Cost Optimization Matters

Benefits:
  • Reduce LLM costs - Save 40-60% on API costs
  • Prevent budget overruns - Set limits and get alerts
  • Track spending - Per-user, per-feature cost attribution
  • Optimize performance - Balance cost vs latency
  • Forecast costs - Predict future spending
Cost Drivers:
  • LLM API calls (tokens, models, providers)
  • Infrastructure (compute, memory, storage)
  • Data transfer (egress, cross-region)
  • Monitoring and logging
  • Secrets management

Quick Start

Enable Cost Tracking


Automatic Provider Selection

Cost-Optimized Client

Provider Cost Comparison

Optimization Strategies

Lowest Cost:
  • Always selects cheapest provider
  • Best for batch processing
  • May have higher latency
Lowest Latency:
  • Selects fastest provider
  • Best for real-time applications
  • May have higher costs
Balanced:
  • Optimizes cost-latency tradeoff
  • Best for most applications
  • Configurable weights

Request Batching

Batch Multiple Requests


Caching Strategies

Response Caching

Semantic Caching


Budget Management

Set Budget Limits

Budget Alerts


Cost Attribution

Per-User Cost Tracking

Cost Allocation Tags


Infrastructure Cost Optimization

Serverless Optimization

Container Optimization

Kubernetes Resource Limits


Cost Monitoring

Real-Time Cost Dashboard

Cost Reports


Best Practices

  1. Set budget limits to prevent overruns
  2. Enable caching for repeated requests
  3. Use batch processing when possible
  4. Right-size infrastructure resources
  5. Monitor costs in real-time
  6. Use cost-optimized providers for non-critical workloads
  7. Implement rate limiting to control usage
  8. Track costs per user/feature for attribution

Cost Comparison

Provider Pricing (per 1M tokens)

Infrastructure Pricing


Support