compare_model_costs
Use when you already have 2–20 exact offer IDs and want their USD text-token subtotals for the same usage and pricing snapshot. Equal token counts are a comparison assumption, not equivalent tokenization of the same text. Returns supported results and per-offer exclusions. Excludes cache writes, storage, search, tool fees and taxes; does not rank quality. Use find_cheapest_models to search without a shortlist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | Yes | Token totals for the period or scenario being estimated, not dollars or request counts. Supply input and output separately; cached input is a subset of total input. | |
| model_ids | Yes | Distinct exact pricing-offer IDs returned by discovery. Choose 2–20 offers to compare; do not supply display names. | |
| expected_dataset_revision | No | Optional consistency check: copy meta.dataset_revision from a prior tool response to require the same current pricing snapshot. Omit to use the current snapshot. A mismatch returns DATASET_CHANGED; refresh pricing and retry. This cannot retrieve a historical snapshot. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||