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 Pricing module, under AI Spend > 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 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), always available; Delete custom pricing icon, available 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 with an Add custom price shortcut for that combination. In the meantime, usage of those models is counted in tokens but excluded from cost figures.

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 Pricing page, click Add custom price (above the table, or on the warning for models with no active price).

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.

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