Skip to Content
SWARMIXDocs
AI providers and models

Model prices and limits

Set the price and context window of the models you add, and see how Swarmix uses prices to count the cost of chats and apply your cost limits.

Who can do this:Org admin

A model's price lets Swarmix count what a chat costs when the AI provider doesn't report it. The same form holds the model's context window and the other names its API accepts.

Before you start

You need the organization admin role and the Swarmix Studio desktop app. Open Settings โ†’ AI providers, click Admin, and find the model in the AI Provider Catalog.

Who sets each price

  • Platform models: Swarmix sets the prices. Click a model's price on its row to see it. The dialog is read only.
  • Models you add: you set the prices, on your own AI providers and models.

Each model row shows its price and context window, such as "$3 / $15 ยท 200K context". A model of yours without a price shows Price & limits, and a platform model without one shows "No price".

Set the price of a model you added

  1. Expand the AI provider and click the model's price, or click Edit on the model's row.
  2. Under Price per million tokens (USD), enter the Input and Output prices. Add Cache read and Cache write if the AI provider prices them. Left empty, they count as input.
  3. If the AI provider charges more for long prompts, turn on Long prompts. Enter the number of input tokens in Above and the prices that apply beyond it.
  4. Under Limits and names, enter the Context window and any Other names.
  5. Click Save.

Leave a price empty if you don't know it.

How Swarmix uses prices

For each answer in a chat, Hive takes the cost the AI provider reports. When the AI provider reports none, Hive counts the answer's tokens at the model's price. A model without a price adds no cost to that count.

With Long prompts on, a request whose input passes Above uses the long-prompt prices for the whole request. Input here means input, cache read and cache write tokens together.

The cost counts toward your policy's limit per chat, Max Cost Per Session (USD), under Chat & Sessions โ†’ Sessions. Under Enforced, Studio stops a chat when it reaches a limit the policy locks. See How policies work.

Hive matches a model by the exact name the request uses. Other names lists the names the AI provider's API also accepts, such as a dated model ID, so those requests find the price too. Under a platform AI provider, the platform's models come first: a model you add with a platform model's name doesn't change the platform's price.

Context window

The Context window is the most tokens one request may hold. Agents shorten the chat before they reach it, so set the number the AI provider documents for the model.

Best practices

  • Copy prices from the AI provider's price page when you add a model, and check them when the provider changes its prices.
  • Add the dated model IDs under Other names. Requests that use them then find the price.
  • Set a context window for each model you add. Agents use it to decide when to shorten a chat.

FAQ

On this page