get_model_pricing
Retrieve public pricing for a provider/model pair in USD cents per token, including cache, audio, image, fine-tuning metadata. Use this read-only lookup before setting pricing adjustments.
Instructions
Get Portkey's current public pricing configuration for one exact provider/model pair. Prices are returned in USD cents per token or provider-specific unit and may include cache, audio, image, fine-tuning, and calculation metadata. Use this read-only catalog lookup before setting integration pricing_adjustments or custom-model pricing; it does not return your negotiated integration multiplier or require Portkey authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Exact provider model identifier, such as gpt-4o | |
| provider | Yes | Lowercase Portkey provider identifier, such as openai, anthropic, bedrock, or x-ai |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |