Models

Get Model Pricing

Changed on

Get what one model costs per 1M input and output tokens, including the service fee.

get/v1/models/pricing

Request

  • Base URL
    https://api.swarms.world
  • URL
    https://api.swarms.world/v1/models/pricing
  • Auth
    none declared. Required headers: x-api-key

Query parameters

model_namestring required

The model to price, e.g. gpt-5.4 or openrouter/moonshotai/kimi-k3.

Headers

x-api-keystring required

Response

Successful Response

statusstring

The status of the request.

model_namestring required

The model that was priced.

input_cost_per_1mnumber required

Price per 1M input tokens (USD), including the service fee.

output_cost_per_1mnumber required

Price per 1M output tokens (USD), including the service fee.

price_sourcestring required

Where the price came from: 'openrouter', 'litellm' or 'fallback'.

timestampstring required

ISO timestamp when the price was looked up.

Changes