---
schema_version: "1"
id: e32dfcaf9126fea6e963ebe298ff65bb87dcbd9fd188a8ea9e0dacc727c39bb6
title: Setting Model Costs for Spend Tracking
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/general/exp-models-manage-costs.md
canonical_url: https://docs.mulesoft.com/general/exp-models-manage-costs
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5bc37761ac9158ce7a73e204c4ae25c5292ecb961884178d13a24f93db0d1cdc
description: MuleSoft Documentation Site
latest: true
---
---
product: Getting Started
keywords: models, model costs, cost per token, input tokens, output tokens, spend tracking, budgets, model proxies, cost management, anypoint platform
---

# Setting Model Costs for Spend Tracking

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Set a cost for each model so usage translates into spend tracking. The **Models** page lists the AI
models available in your organization. Wallet budgets can cap spend or token count. Spend caps use
the model costs that you set here.

## Before You Begin

To set model costs, you need:

- An Anypoint Platform account.

- One of the API Manager permissions:

  - API Manager: API Creator

  - API Manager: View APIs Configuration

  - API Manager: Edit APIs Configuration

  For more information, see [Enhanced Experience Permissions](https://docs.mulesoft.com/general/exp-home-start#permissions).

## View Models

The **Models** page lists available models, the proxies that use them, and any costs you have set.

1.  From **Portfolio** > **Model Proxies**, select **Models**.

2.  Review the list of available models.

3.  To see details for a model, select its name.

    The model detail page shows the model proxies that use the model and the model’s configured
    costs if applicable.

## Edit Model Costs

Model costs drive spend and budget calculations. Set a cost per token for each model that you use.

1.  From **Portfolio** > **Model Proxies**, select **Models**.

2.  Select a model, for example, `Claude 3.5 Haiku`.

3.  Select **Edit** from the **Actions** menu.

4.  Enter the **Cost per 1M Input Tokens**, for example, `0.01`.

5.  Enter the **Cost per 1M Output Tokens**, for example, `0.05`.

6.  Select **Save changes**.

If a model has no configured cost, then spend tracking and spend-based wallet budgets treat that
model’s usage as zero. Token-based wallet budgets still count tokens. See
[Capping Spend for Callers of Model Proxies](https://docs.mulesoft.com/general/exp-model-wallets-manage).

## See Also

- [Capping Spend for Callers of Model Proxies](https://docs.mulesoft.com/general/exp-model-wallets-manage)

- [Managing Costs and Token Usage](https://docs.mulesoft.com/general/exp-governance-view-cost-and-token-usage)
