Skip to main content

Reduce LLM API costs by 90% with automatic tracking and AI-powered recommendations

Project description

AIOptimize - Reduce LLM API Costs by 90%

Drop-in SDK that automatically tracks costs, recommends cheaper models, and optimizes AI workflows.

Python 3.8+ License: Proprietary


๐Ÿš€ Quick Start

pip install llmoptimize
import llmoptimize

# Your code works exactly the same
import openai
client = openai.OpenAI()
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)

# See your costs and savings
llmoptimize.report()

Output:

๐Ÿ’ฐ COST REPORT
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
Total Calls:     47
Total Cost:      $2.34
Potential Savings: $2.11 (90%)

๐Ÿ’ก RECOMMENDATIONS
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
โœ“ Use gpt-3.5-turbo instead of gpt-4 for simple tasks
โœ“ Estimated savings: $1.85/day

โœจ Features

๐ŸŽฏ Magic Mode (Default)

Zero code changes - just import aioptimize and it works.

๐Ÿค– AI-Powered Recommendations

Smart analysis of each API call with confidence scores and reasoning.

๐Ÿ“Š Comprehensive Tracking

  • Real-time cost tracking
  • Token usage analytics
  • Model performance insights
  • Automatic report generation

๐Ÿ” Code Auditing

Analyze Python code BEFORE running to find optimization opportunities.

๐ŸŽญ Agent Optimization

Track multi-step AI agent workflows with loop detection and context optimization.


๐ŸŽ Free Trial

100 calls with full access to all features - no credit card required.

After 100 calls, choose your plan:

  • Starter: $29/month - 10,000 calls
  • Pro: $99/month - Unlimited calls + dashboard
  • Enterprise: Custom pricing

๐Ÿ“ฆ Supported Providers

โœ… OpenAI (GPT-4, GPT-4o, o1, o3, embeddings) โœ… Anthropic (Claude 3, Claude 3.5) โœ… Google (Gemini 1.5, 2.0) โœ… Groq (Llama, Mixtral, Gemma) โœ… Mistral (Large, Small, Nemo) โœ… Cohere (Command R+)

72+ models tracked automatically.


๐Ÿ” Privacy & Security

โœ… No prompt content sent - Only categories โœ… API keys stay local - Never sent to our servers โœ… Anonymized data only - Random session IDs โœ… GDPR compliant - Full data export available


๐Ÿ“ License

Proprietary - See LICENSE file.

Free 100-call trial included. Paid license required for continued use.


๐Ÿค Support


Made with โค๏ธ by AIOptimize Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmoptimize-1.0.1.tar.gz (96.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llmoptimize-1.0.1-py3-none-any.whl (108.9 kB view details)

Uploaded Python 3

File details

Details for the file llmoptimize-1.0.1.tar.gz.

File metadata

  • Download URL: llmoptimize-1.0.1.tar.gz
  • Upload date:
  • Size: 96.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for llmoptimize-1.0.1.tar.gz
Algorithm Hash digest
SHA256 033a3730f01db488bbc9d82a9cd8dc573fa0cc458bef23c4490d2694518ee284
MD5 4a6c0db65429f893c227d27d61fb18c4
BLAKE2b-256 c57464a3f9d588dbbfb9d6c8683cd63c846ced289eae00e7da0f8606a47ab00a

See more details on using hashes here.

File details

Details for the file llmoptimize-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: llmoptimize-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 108.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for llmoptimize-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c45dae22c0e76bc5e33d1c398d2bf0e21d4da20d7e683e54d15f0dbe6a4cbf
MD5 dc59e7af9866c1256a11469209ae31a8
BLAKE2b-256 bde8ea4e2176f3f09569dbf2062b40bb07588005b17769e3709d091967d194df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page