Costimizer AI observability SDK for LLM FinOps
Project description
Costimizer Python SDK
Capture LLM calls and send them to Costimizer FinOps.
Install only the provider client you use — same pattern as PostHog:
pip install "costimizer[openai]"
pip install "costimizer[all]" # every provider
Core SDK (httpx only) installs with:
pip install costimizer
OpenAI
pip install "costimizer[openai]"
from costimizer import Costimizer
from costimizer.ai.openai import OpenAI
costimizer = Costimizer(
project_token="fo_ingest_your_key",
host="https://api.costimizer.ai",
)
client = OpenAI(
api_key="sk-...",
costimizer_client=costimizer,
)
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello"}],
costimizer_trace_name="support-chat",
)
costimizer.shutdown()
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
costimizer-0.1.0.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file costimizer-0.1.0.tar.gz.
File metadata
- Download URL: costimizer-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2add6b272180930c13109b57b9c5eef9f7126a30f9214db68c32735edc64958c
|
|
| MD5 |
fc0dd252c3f7cacaba1335e2f242be00
|
|
| BLAKE2b-256 |
46b14c77e35fd85744f64ee43b4dab469c7a1e89b95cbf0066d3cf1db64fa91d
|
File details
Details for the file costimizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: costimizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0ef0f8e7b630afe3ab49c15b2e55df12e18b966de35b2ac6bf44d550f6f475e
|
|
| MD5 |
aba9da42ca1121c76862508e1560339f
|
|
| BLAKE2b-256 |
dffa873a4b420522db66db6b10b34d6e6021b1aa4106a01ba6f43975bb059e5e
|