1. Home
  2. Documentation
  3. AI Gateway
  4. Pricing

Pricing

View and customize the effective price of each provider and model combination used by the AI Gateway.

The Model Pricing module, under Spend Management > Model Pricing, shows the effective price of each provider and model combination used by the AI Gateway and lets you negotiate your own rate. This price is the basis for the estimated costs in input, output and cache tokens.

NOTE

Any price change made on this screen β€” customizing, editing, restoring or deleting β€” only applies to usage from that moment on. Requests made before the change keep the price that was in effect when they happened; their already-calculated costs are not recalculated.

See how to:

Pricing sources

Every provider and model combination always has a single active pricing source:

  • Default: the standard price from the Sensedia catalog for the model. No customization has been made.
  • Overridden: a default price exists and you have already customized one or more values. The default price still exists and is kept as a reference β€” see Edit a custom price.
  • Custom: the model has no default price in the catalog, and you registered your own price for it.

List

The Model Pricing page lists every provider and model combination with an active price (default or custom), with pagination.

Filters available above the table:

  • Provider: lists the supported native providers (OpenAI, Anthropic, Azure, AWS Bedrock, Google Gemini, Google Vertex AI) or All providers.
  • Model: search by a substring of the model ID.
  • Pricing source: filters by source (Default, Overridden, Custom) or all.

Columns shown in the table:

  • Provider and Model: identify the combination.
  • Pricing source: badge with the price's source (see Pricing sources).
  • Input tokens, Output tokens, Cache read, Cache write: price per 1M tokens, in the price's currency (currently always USD). A cache dimension with no value of its own shows "Uses input rate" β€” it uses the same rate as input tokens.
  • Actions: View details icon (magnifying glass), available with the View Model Cost permission; Delete custom pricing icon, available with the Delete Model Costs permission and only when the source is Custom.
MODELS USED WITHOUT AN ACTIVE PRICE

When one or more Routes use a provider and model that has no active price yet, a warning appears at the top of the list. It says which models receive traffic without a price or, when there are many, how many, with a Show N models link that opens the list. Calls to those models are counted in tokens but stay out of the cost figures and the USD budgets until a price is added. To add one, use Add custom price, above the table.

View a price's detail

Click the View details icon (magnifying glass) on the desired row to open a read-only screen (route /pricing/<provider>/<model>/view) with:

  • Provider and Model of the combination.
  • The current prices table, with one row per usage dimension (Usage, Input tokens, Output tokens, Cache read, Cache write). When the source is Overridden, the table also shows the Default price column, side by side with Current price, for comparison.
  • The actions available for the current source (see below).

If the combination has no active price yet, the screen shows only the notice that usage is counted in tokens and excluded from cost, with a shortcut to add a custom price.

Actions available per source:

Source
Actions
DefaultCustomize pricing β€” opens the form to create a custom price, without changing the default price.
OverriddenEdit override β€” adjusts the custom price; Restore default pricing β€” removes the customization and goes back to the default price (see Restore).
CustomEdit β€” adjusts the custom price; Delete custom pricing β€” removes the price, leaving the model with no active price (see Delete).

Add a custom price to a model with no default price

Use this flow for a model that does not exist in the default catalog (for example, a self-hosted or very recent model).

Step 1

On the Model Pricing page, click Add custom price, above the table.

Step 2

Select the Provider and enter the Model β€” the exact ID received by the gateway (for example gpt-4.1 or claude-sonnet-4; see Form fields).

Step 3

Fill in Input and Output (required) and, if it makes sense for your contract, Cache read and Cache write (optional β€” when left blank, they use the same value as Input). Track the estimate in Simulate the cost of a request.

Step 4

Click Save.

If the provider and model combination already has a default or custom price registered, the form rejects the submission and points you to customize or edit the existing configuration instead of duplicating it.

Customize a model's default price

Use this flow to negotiate your own rate for a model that already has a default price in the catalog (source Default).

Open the model's View details and click Customize pricing (or go directly to the route /pricing/<provider>/<model>/edit). The form opens with Provider and Model fixed and the price fields blank, next to the default price of reference for each dimension.

THE DEFAULT PRICE IS NOT CHANGED

Customizing creates your own price (the source becomes Overridden); the catalog's default price still exists and remains available as a reference and for restoring.

Fill in Input and Output (required). Cache read and Cache write are only required when the default price already has its own value for that dimension β€” otherwise they are optional and, when left blank, use the customized Input value. Click Save.

Edit a custom price

Open the model's View details and click Edit override (source Overridden) or Edit (source Custom), or go directly to the route /pricing/<provider>/<model>/edit. Adjust the fields you need (see Form fields) and click Save.

NO CHANGE, NOTHING TO SUBMIT

If you save without changing any value from the current effective price, the form submits nothing β€” there is no need to confirm a cancellation.

Simulate the cost of a request

The custom price form includes a Cost preview with the Input and Output values entered and a simulator: it starts from a typical request (a predefined input and output token count) and recalculates the estimated cost per request as you adjust the Input tokens and Output tokens fields. Use Reset to typical request to go back to the starting values.

Restore the default price

Available only for the Overridden source. On the model's View details, click Restore default pricing. The confirmation dialog shows, dimension by dimension, the current custom price and the default price it will revert to.

WARNING

Restoring removes the custom price and switches to the default price from this moment on.

Delete a custom price

Available only for the Custom source (model with no default price in the catalog). On the model's View details, click Delete custom pricing and confirm in the dialog.

THE MODEL IS LEFT WITH NO ACTIVE PRICE

After deletion, the provider and model combination no longer has any active price: usage goes back to being counted only in tokens and is excluded from cost figures until a new price is registered (see Add a custom price).

Form fields

The table below covers every field of the custom price form (create, customize and edit).

Field
Type
Required
Rules
ProviderSelectYesOne of the supported native providers (see List). Only shown in the add flow β€” in the other flows, it comes filled in and fixed.
ModelTextYesExact model ID received by the gateway (for example gpt-4.1, claude-sonnet-4). Only editable in the add flow.
Input (per 1M tokens)Numeric (money)YesNon-negative value, with up to 6 decimal places. Price per 1 million input tokens, in the price's currency (USD).
Output (per 1M tokens)Numeric (money)YesSame rules as Input, for output tokens.
Cache read (per 1M tokens)Numeric (money)Only when the default price already has its own value for this dimensionWhen left blank, uses the same value as Input. Same format rules as Input.
Cache write (per 1M tokens)Numeric (money)Only when the default price already has its own value for this dimensionWhen left blank, uses the same value as Input. Same format rules as Input.

Permissions

Access to each action in the Model Pricing journey depends on its own permission. Without the corresponding permission, the screen element does not appear: the interface never shows an unavailable action as disabled.

Permissions are granted in Access Control, on the Roles screen, under the AI Gateway product. The table below lists each one exactly as Access Control displays it.

Permission
Group in AC
Description in AC
Identifier
List Model CostspricingAllows listing the effective cost per provider and modelai-gateway.pricing.list
View Model CostpricingAllows viewing the effective cost of one provider and modelai-gateway.pricing.view
Create and Update Model CostspricingAllows creating and editing the negotiated rate of a provider and model, and refreshing the cost catalogai-gateway.pricing.create-update
Delete Model CostspricingAllows deleting the negotiated rate of a provider and modelai-gateway.pricing.delete
Action
What it unlocks
Required permissions
ListModel Pricing item in the sidebar menu; listing with table, filters and paginationList Model Costs
ViewView details icon on the row and the price detail screenList Model Costs + View Model Cost
AddAdd custom price button, above the table, and the formList Model Costs + Create and Update Model Costs
CustomizeCustomize pricing button inside the detailList Model Costs + View Model Cost + Create and Update Model Costs
EditEdit override or Edit button inside the detailList Model Costs + View Model Cost + Create and Update Model Costs
DeleteDelete custom pricing icon on the row (Custom source)List Model Costs + Delete Model Costs
Restore the default priceRestore default pricing button inside the detailList Model Costs + View Model Cost + Delete Model Costs

Delete: the Delete custom pricing button in the detail also requires View Model Cost.

By default, the Super Admin and Admin roles receive all four permissions, and the Read-Only role receives List Model Costs and View Model Cost.

A control without its permission is not rendered; a route reached directly by URL without its permission lands on the AI Gateway's own access denied screen, not on Access Control's.

EDITING REQUIRES VIEWING

The Customize pricing, Edit override and Edit buttons only exist inside the price detail. Because of that, a user holding Create and Update Model Costs but not View Model Cost has no path to edit or customize an existing price. This is expected platform behavior, not a bug.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more