CAELUM
← Blog

Introducing CAELUM: stop paying twice for the same AI answer

By Issouf KANAZOE

AI APIs are billed per token, and many applications ask the same questions again and again: the same support question from different customers, the same document summarized twice, the same test suite run every day. Each time, you pay for an answer you already have.

CAELUM is a small open-source Python library that fixes that, and a few other things, without changing how you write code.

One import

from caelum import OpenAI   # instead of: from openai import OpenAI

client = OpenAI(cache=True, retry=True)

Everything else stays the same: your code, your types, your API keys. CAELUM wraps the official OpenAI, Anthropic, Google Gemini and Mistral SDKs instead of replacing them, so new SDK features work on day one.

What you get

Everything is opt-in, runs on your machine, and nothing is sent to us. You keep paying your providers directly: CAELUM never resells tokens.

Measured, not promised

All benchmark scripts and raw results are in the repository, so you can check them on your own traffic.

Why I built it

I'm Issouf, based between Burkina Faso and Ghana. I come from the product and business side, not from a career in engineering. I started CAELUM because AI API costs are a real barrier for small teams, and even more for teams paying in currencies that are weak against the dollar. Paying twice for the same answer felt like the first thing to fix.

What's next

  1. Your feedback, and version 0.2.
  2. Routing and fallback for Gemini and Mistral.
  3. CAELUM Cloud: an optional hosted dashboard for teams, with one cache shared by all your servers. The library stays open source and works fully without it.

Try it, and tell us what's missing:

pip install "caelum-ai[openai]"