---
title: "GET /ai/pricing"
method: GET
path: "/ai/pricing"
tags: ["AI Gateway Pricing"]
---

# GET /ai/pricing

`GET /ai/pricing`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/pricing`
- Auth: HTTP bearer

## Response `200`

Model pricing: the bundled table with the runtime model catalog applied

- PricingResponse
  - `models` ModelPricing[], required
    - `batch_input_per_million` number, double, nullable: Batch API input cost per 1M tokens (if provider offers batch pricing)
    - `batch_output_per_million` number, double, nullable: Batch API output cost per 1M tokens
    - `cache_hit_per_million` number, double, nullable: Cache hit / refresh cost per 1M tokens
    - `cache_write_1h_per_million` number, double, nullable: 1-hour cache write cost per 1M tokens
    - `cache_write_5m_per_million` number, double, nullable: 5-minute cache write cost per 1M tokens (Anthropic-style prompt caching)
    - `deprecated` boolean: Whether the model is deprecated
    - `display_name` string, required: Human-readable model name (e.g. "Claude Sonnet 5.5")
    - `input_per_million` number, double, required: Base input token cost per 1M tokens
    - `model` string, required: Model identifier (e.g. "gpt-6.2-sol", "claude-sonnet-5-5")
    - `output_per_million` number, double, required: Output token cost per 1M tokens
    - `provider` string, required: Provider ID (e.g. "openai", "anthropic")
    - `source` 'bundled' | 'catalog', required: Whether the price is the bundled one or comes from the runtime catalog.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-11-24** `092dd9dae7a3`: 1 info
  - added the required property `models/items/source` to the response with the `200` status
- **2026-11-24** `4496ed4a25a7`: 1 breaking
  - removed the required property `models/items/source` from the response with the `200` status
- **2026-11-23** `e5c54359463f`: 1 info
  - added the required property `models/items/source` to the response with the `200` status
- **2026-11-09** `12896146b193`: 2 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-05** `4b228ebed583`: 2 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/pricing/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
