---
title: "Get Model Pricing"
method: GET
path: "/model-configs/pricing/{provider}/{model}"
tags: ["Pricing"]
---

# Get Model Pricing

`GET /model-configs/pricing/{provider}/{model}`

Returns pricing configuration for a specific model.

**Note:** Prices are in USD cents per token.

## Supported Providers

openai, anthropic, google, azure-openai, bedrock, mistral-ai, cohere, 
together-ai, groq, deepseek, fireworks-ai, perplexity-ai, anyscale, 
deepinfra, cerebras, x-ai, and 25+ more.

## Example Response Fields

| Field | Description | Unit |
|-------|-------------|------|
| `request_token.price` | Input token cost | cents/token |
| `response_token.price` | Output token cost | cents/token |
| `cache_write_input_token.price` | Cache write cost | cents/token |
| `cache_read_input_token.price` | Cache read cost | cents/token |
| `additional_units.*` | Provider-specific features | cents/unit |

## Path parameters

- `provider` string, required
- `model` string, required

## Response `200`

Pricing configuration for the specified model

- PricingConfig — Complete pricing configuration for a model
  - `pay_as_you_go` PayAsYouGo — Token-based pricing (all prices in USD cents)
    - `request_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `response_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `cache_write_input_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `cache_read_input_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `request_audio_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `response_audio_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `cache_read_audio_input_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `additional_units` object — Provider-specific additional pricing units. Common additional units: - `web_search`: Web search tool usage - `file_search`: File search tool usage - `thinking_token`: Chain-of-thought reasoning tokens (Google) - `image_token`: Image generation tokens - `video_duration_seconds_*`: Video generation (OpenAI Sora)
    - `image` ImagePricing — Image generation pricing by quality and size
  - `batch_config` BatchConfig — Batch API pricing configuration. Prices are specified as exact values matching the provider's published batch pricing.
    - `request_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `response_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `cache_read_input_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
  - `calculate` CalculateConfig — Cost calculation formulas
    - `request` CalculateOperation — Mathematical operation for cost calculation
      - `operation` 'sum' | 'multiply' — Operation type
      - `operands` union[] — Operands for the operation
        - union
          - CalculateOperation — recursive
          - ValueReference
            - `value` string — Reference to a value or rate. Examples: - `input_tokens`: Number of input tokens - `output_tokens`: Number of output tokens - `rates.request_token`: Request token rate - `rates.response_token`: Response token rate
    - `response` CalculateOperation — Mathematical operation for cost calculation
      - `operation` 'sum' | 'multiply' — Operation type
      - `operands` union[] — Operands for the operation
        - union
          - CalculateOperation — recursive
          - ValueReference
            - `value` string — Reference to a value or rate. Examples: - `input_tokens`: Number of input tokens - `output_tokens`: Number of output tokens - `rates.request_token`: Request token rate - `rates.response_token`: Response token rate
  - `currency` 'USD' — Currency code (always USD)
  - `finetune_config` FinetuneConfig — Fine-tuning pricing configuration
    - `pay_per_token` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens
    - `pay_per_hour` TokenPrice — Price object (value is in USD cents)
      - `price` number — Price in USD cents per token/unit. Example: `0.003` = 0.003 cents/token = $0.03 per 1K tokens

## Other responses

- `404` — Model or provider not found

## Changes

- **2026-02-04** `1c757e79a119` — 6 breaking, 1 warning, 3 info
  - removed the required property `batch_config/cache_read_input_token/base` from the response with the `200` status
  - removed the required property `batch_config/cache_read_input_token/multiplier` from the response with the `200` status
  - removed the required property `batch_config/request_token/base` from the response with the `200` status
  - removed the required property `batch_config/request_token/multiplier` from the response with the `200` status
  - …6 more
- **2026-02-01** `dd9c6f3fe23e` — 1 info
  - added the optional property `batch_config` to the response with the `200` status
- **2026-01-12** `48b31ccb5751` — 1 warning
  - removed the optional property `batch_config` from the response with the `200` status

[Change history](https://skmtc.dev/portkey-ai/apis/portkey-models-api/changes/model-configs/pricing/:provider/:model/get.md)

---

[API](https://skmtc.dev/portkey-ai/apis/portkey-models-api.md) · [All operations](https://skmtc.dev/portkey-ai/apis/portkey-models-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/portkey-ai/portkey-models-api/revisions/3c6052be421a/schema)
