compare_plans
Rank TokenLens plans by effective cost per 1M tokens to choose between subscriptions and API access for any model. Filter by model and output ratio to find the most cost-effective plan.
Instructions
Rank all TokenLens plans by effective cost per 1M tokens. Useful when choosing between subscriptions and API access for a given model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Filter to plans that include this model (e.g. 'claude-sonnet', 'gpt-4o'). If omitted, all plans are returned. | |
| output_ratio | No | Fraction of tokens that are output (0–1). Default 0.35. |