tokenometer
Advanced tools
+3
-3
| { | ||
| "name": "tokenometer", | ||
| "version": "2.0.3", | ||
| "version": "2.0.4", | ||
| "description": "Tokenometer CLI — LLM token cost + latency benchmarking across Claude, GPT-4o, Gemini, Mistral, and Cohere. Multi-format, empirical mode, vision tokens, SARIF output.", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
| "cohere", | ||
| "command-r", | ||
| "command-r-08-2024", | ||
| "cost", | ||
@@ -84,3 +84,3 @@ "cost-calculator", | ||
| "dependencies": { | ||
| "@tokenometer/core": "2.0.3", | ||
| "@tokenometer/core": "2.0.4", | ||
| "image-size": "^2.0.2" | ||
@@ -87,0 +87,0 @@ }, |
+3
-3
@@ -64,3 +64,3 @@ # tokenometer | ||
| | Mistral (19 models) | `open-mistral-7b`, `open-mixtral-8x22b`, `mistral-large-latest`, `codestral-latest`, `mistral-nemo`, `pixtral-large-latest`, `mistral-medium-2505`, `magistral-small`, `ministral-3b-latest`, `devstral-small-2505` | `mistral-tokenizer-js` for SentencePiece V1/V2/V3 (exact); `chars/4` for Tekken (approximate) | unsupported (no public token-count API) | | ||
| | Cohere | `command-r`, `command-r-plus` | `chars / 4` (approximate) | `POST /v1/tokenize` (free, exact, requires `COHERE_API_KEY`) | | ||
| | Cohere | `command-r-08-2024`, `command-r-plus-08-2024` | `chars / 4` (approximate) | `POST /v1/tokenize` (free, exact, requires `COHERE_API_KEY`) | | ||
@@ -75,3 +75,3 @@ Pricing comes from the [`tokenlens`](https://www.npmjs.com/package/tokenlens) registry with a small set of local overrides for bleeding-edge models. Cohere pricing lives entirely in `LOCAL_OVERRIDES` because `@tokenlens/models` doesn't yet ship a Cohere catalog at v1.3.0. | ||
| ANTHROPIC_API_KEY=… GOOGLE_API_KEY=… COHERE_API_KEY=… \ | ||
| npx tokenometer ./prompt.md --empirical --model claude-opus-4-7,gemini-2.5-pro,command-r-plus | ||
| npx tokenometer ./prompt.md --empirical --model claude-opus-4-7,gemini-2.5-pro,command-r-plus-08-2024 | ||
| ``` | ||
@@ -89,3 +89,3 @@ | ||
| - `MISTRAL_API_KEY` only → first known `mistral-*` model | ||
| - `COHERE_API_KEY` only → `command-r-plus` | ||
| - `COHERE_API_KEY` only → `command-r-plus-08-2024` | ||
| - Multiple keys set → falls back to `claude-opus-4-7` and prints a stderr note. Pass `--model` to disambiguate. | ||
@@ -92,0 +92,0 @@ - No keys set → existing default (`claude-opus-4-7`). |
78860
0.05%+ Added
- Removed
Updated