Models & Pricing
Every cost number in ANTS Platform comes from a model: a rule that recognizes a model name in your traces and says what each unit of usage costs. The same catalog prices SDK and OpenTelemetry traces, Budget AI gateway traffic and the comparison runs of the AI Optimizer.
Open it from Settings → Models (page title Models). Everyone with project access can view the catalog, including discounts. Adding, editing, cloning and deleting models and setting discounts is limited to the Owner role today. See Members & Roles.
The catalog
| Column | Meaning |
|---|---|
| Model | The model name. Click a row to open its detail page. An ANTS model that a custom model replaces shows Overridden by and the custom model's name. |
| Source | ANTS for models maintained by ANTS Platform, Custom for the ones your project created. |
| Match pattern | A regular expression (Postgres syntax) tested against the model attribute of each incoming generation. |
| Input price and Output price | The default tier's price. With a discount, the effective price is shown with the list price struck through. Use the price unit selector to show prices Per 1M units, Per 1K units or Per unit. |
| Discount | The project's discount for the model, for example 20% off, or None |
| Tiers | The number of pricing tiers, when the model has more than one |
| Last used | Start time of the most recent generation priced by this model, or Never |
Rows are sorted by last use. Above the table:
- Search model or pattern… filters by model name or match pattern.
- Source filters to ANTS or Custom, and Discount to Discounted or Not discounted.
- Show overridden includes ANTS models that a custom model replaces in this project. They are hidden by default.
ANTS models cover common OpenAI, Anthropic, Google, AWS Bedrock and other models. Some carry tiered prices, for example a higher rate once a request passes a long-context token threshold; the tier is picked from each request's usage.
Model detail page
Select a row, or View in its menu, to open the model's page:
- Configuration shows the match pattern, source, discount and tokenizer and, for an overridden ANTS model, which custom model overrides it.
- Pricing lists every tier with the List price, Discount and Effective price for each usage type.
- Model observations lists the generations the model priced.
How a generation is costed
- Match. The generation's model name is matched against the catalog. Your project's custom models are checked before ANTS models, so a custom model whose pattern matches overrides the ANTS price.
- Use ingested cost if present. If the trace already reports cost for the generation, that cost is kept.
- Otherwise multiply usage by price. For each usage type the generation reports (for example
input,output, cached input), cost = units × the price for that usage type. The usage keys must exactly match the price keys of the model. - Count tokens if usage is missing. If no usage was ingested and the model has a tokenizer, tokens are counted from the input and output text.
- Apply the project discount. If the project has a discount on the model, the cost calculated in steps 3 and 4 is reduced by it.
Trace cost is the sum of its generations. Every other view (per model, user, trace name, environment, day) rolls up from these values.
Price and discount changes apply to generations ingested after the change. Generations already stored keep the cost they were given, unless a later event for the same generation arrives: that recalculates the generation with the current prices and discount.
ANTS versus custom models
- ANTS models are read-only and cannot be deleted. Use Clone to copy one into a custom model and change its prices.
- Custom models cover models the catalog does not know, such as self-hosted, fine-tuned or newly released models. They can be edited and deleted.
- To replace an ANTS price for your project, create a custom model whose match pattern matches the ANTS model's name. The ANTS model is then marked overridden and hidden unless Show overridden is on.
Check coverage
Open a trace and look at its generations. A generation with no cost usually means its model name matched no model.
Add or clone a model
Click Add model, or Clone in an ANTS model's menu, and fill in:
- Model name
- Match pattern, for example
(?i)^(my-company/)?support-llm-v2$ - Prices per usage type. The OpenAI and Anthropic buttons add those providers' usage keys for you.
- Tokenizer:
openai,claudeorNone. Theopenaitokenizer needs a Tokenizer config.
For a model with several pricing tiers, only the default tier is edited. Editing keeps the other tiers' prices; a clone prices every request at the default tier.
Verify
Send a new trace that uses the model and confirm the cost on the generation and in the Cost Dashboard.
To delete custom models in bulk, select their rows and choose Delete in the bar that appears. It is not available while the selection includes an ANTS model.
Discounts
A discount records a negotiated rate for a model in this project. It lowers the cost ANTS calculates; the list prices stay as they are.
- Set it with Set discount in a row's menu, on the model's detail page, or in the bar that appears when you select several rows. Enter a percentage from 0.01 to 99.99 with at most two decimals. The sheet previews list and effective input and output prices for the selected models.
- The discount applies to every usage type and every pricing tier: effective price = list price × (1 - discount / 100).
- Clear discount returns the model to list price for new usage.
What a discount changes and what it does not:
| Area | Effect |
|---|---|
| New usage | Costed at the discounted rate from the moment the discount is saved |
| Past usage | Not recalculated |
| Costs your SDK reports | Kept as sent, never discounted |
| Budget AI | Reservations and spend use the discounted rate within about 60 seconds, so existing budgets cover more usage. Budget amounts are not changed. |
| AI Optimizer | Comparisons and savings use list prices |
A custom model that overrides a discounted ANTS model takes over its traffic, so the ANTS model's discount stops applying. It is shown struck through, with the reason in its tooltip, and a new discount cannot be set on an overridden ANTS model. Discount the custom model instead.
Setting and clearing discounts are written to the audit log.
Why pricing matters for the AI Optimizer
- The Select Models step sorts comparison models from cheapest to most expensive using these prices.
- Model replay costs every replayed call with this catalog. A comparison model with no price is costed at zero, which makes its savings meaningless.
Next steps
- Cost & Latency Dashboards: see the cost your models produce.
- Model Replay: how comparison runs are priced.
- Sending Data In: send model names and usage for accurate cost.