get_model_pricing
Look up Portkey pricing for one provider-model pair before setting integration adjustments or custom-model pricing. Returns USD token/unit rates plus cache, audio, image, and fine-tuning metadata.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"model": "<model>"
},
"name": "get_model_pricing"
}
}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 |