Metadata-Version: 2.4
Name: token-mint-ai
Version: 1.0.0
Summary: AI inference price aggregator and comparison platform
Author: Jack Blacketter
License: MIT
Project-URL: Homepage, https://github.com/jblacketter/token-mint
Project-URL: Repository, https://github.com/jblacketter/token-mint
Project-URL: Issues, https://github.com/jblacketter/token-mint/issues
Keywords: ai,llm,pricing,tokens,inference,anthropic,openai,google,comparison
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.110
Requires-Dist: uvicorn[standard]>=0.27
Requires-Dist: pydantic>=2.0
Requires-Dist: httpx>=0.27
Requires-Dist: sqlalchemy>=2.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Requires-Dist: ruff>=0.3; extra == "dev"
Dynamic: license-file

# TokenMint

[![PyPI](https://img.shields.io/pypi/v/tokenmint)](https://pypi.org/project/token-mint-ai/)
[![Python](https://img.shields.io/pypi/pyversions/tokenmint)](https://pypi.org/project/token-mint-ai/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

AI inference price comparison across Anthropic, OpenAI, and Google. Track token pricing, compare models, build the dataset for the future token economy.

## Quick Start

```bash
pip install token-mint-ai

# Show current pricing
tokenmint prices

# Save a snapshot
tokenmint snapshot

# Start the web dashboard and API
tokenmint serve
```

Then open [http://localhost:8200](http://localhost:8200) for the HTML dashboard.

## Features

- **3 providers** — Anthropic, OpenAI, Google (Gemini)
- **10+ models** — Claude, GPT, O-series, Gemini families
- **4 pricing tiers** — budget, standard, premium, flagship
- **HTML dashboard** — sorted pricing table with cheapest-per-tier highlights
- **REST API** — /prices, /compare, /history, /models, /cheapest
- **Daily snapshots** — JSON files for historical price tracking

## API Endpoints

| Endpoint | Description |
|----------|-------------|
| `GET /` | HTML dashboard with sorted pricing table |
| `GET /prices` | All model pricing (filter by `?provider=` or `?tier=`) |
| `GET /compare` | Compare two models (`?model_a=gpt-4o&model_b=claude-sonnet-4-20250514`) |
| `GET /history` | Historical snapshots (`?limit=30`) |
| `GET /models` | All models grouped by provider |
| `GET /cheapest` | Cheapest model in a tier (`?tier=budget`) |
| `GET /health` | Health check |

## Development

```bash
git clone https://github.com/jblacketter/token-mint.git
cd token-mint
pip install -e ".[dev]"
pytest
```

## License

MIT
