---
title: "Get Model Pricing"
method: GET
path: "/v1/models/pricing"
tags: ["Models"]
---

# Get Model Pricing

`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`

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

## Query parameters

- `model_name` string, required: The model to price, e.g. gpt-5.4 or openrouter/moonshotai/kimi-k3.

## Headers

- `x-api-key` string, required

## Response `200`

Successful Response

- ModelPricingOutput: Response for GET /v1/models/pricing: one model's price per 1M tokens.
  - `status` string: The status of the request.
  - `model_name` string, required: The model that was priced.
  - `input_cost_per_1m` number, required: Price per 1M input tokens (USD), including the service fee.
  - `output_cost_per_1m` number, required: Price per 1M output tokens (USD), including the service fee.
  - `price_source` string, required: Where the price came from: 'openrouter', 'litellm' or 'fallback'.
  - `timestamp` string, required: ISO timestamp when the price was looked up.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `500c79520e41`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/changes/v1/models/pricing/get.md)

---

[API](https://skmtc.dev/the-swarm-corporation/apis/swarms-api.md) - [All operations](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/the-swarm-corporation/apis/swarms-api/revisions/fca99f497199?raw)
