Skip to content

feat(prentis): add pricing for Prentis models - #1032

Open
polease wants to merge 1 commit into
Portkey-AI:mainfrom
polease:add-prentis-pricing
Open

polease wants to merge 1 commit into
Portkey-AI:mainfrom
polease:add-prentis-pricing

Conversation

@polease

@polease polease commented Nov 13, 2026

Copy link
Copy Markdown

Adds pricing/prentis.json for the new prentis provider proposed in Portkey-AI/gateway#1880, so Portkey can attribute cost for requests sent to Prentis.

  • 16 chat models with pay-as-you-go prices from Prentis's current public rate card.
  • Prices are in cents per token, per CONTRIBUTING.md. For example, $0.30 / 1M input tokens is stored as 0.00003.
  • The default entry is copied unchanged from an existing provider file (zero prices plus the standard calculate block).
  • cache_read_input_token is set wherever Prentis prices cached input separately. qwen3.5-9b-tunable has no separate cached-input price.
model input $/1M cached input $/1M output $/1M
muse-glimmer-30b 0.30 0.04 1.20
qwen3.8-27b 0.165 0.0438 2.09
qwen3.6-35b-a3b-tunable 0.10 0.075 0.95
qwen3.5-9b-tunable 0.10 – 0.20
gpt-oss-120b 0.30 0.03 1.20
deepseek-v4.1-flash-1017 0.45 0.009 1.80
hy3 0.15 0.04 0.64
inkling-small 0.45 0.10 1.20
kimi-k2.7-code 1.90 0.38 8.00
ling-3.1-flash 0.30 0.06 0.90
mimo-v2.6-flash-rl 0.14 0.0028 0.28
mimo-v2.6-pro-rl 0.43 0.0036 0.87
minimax-m3 0.30 0.06 1.20
muse-spark-open-816b-a42b 1.25 0.15 4.25
nvidia-nemotron-3.5-super-vl 0.15 0.02 0.50
step-5-preview 1.00 0.10 2.70

JSON validated locally. No general/ config is included yet. That can follow once the provider PR is merged.

🤖 Generated with Claude Code

Prices are taken from Prentis's published pay-as-you-go rate card,
converted to cents per token as CONTRIBUTING.md asks. Companion to the
provider PR Portkey-AI/gateway#1880.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 13, 2026 13:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The pricing calculation omits cached-input charges for 15 models, and the gateway’s default deepseek-v4.1-flash model ID lacks a matching nonzero pricing entry.

2 open issues
What changed in this PR

Adds Prentis pricing data to support cost attribution for the provider proposed in Portkey-AI/gateway#1880.

Changes:

  • Adds USD pay-as-you-go input and output rates for 16 models, expressed in cents per token.
  • Defines separate cached-input rates for 15 models.
  • Includes a zero-price default and shared calculation block; defers general provider configuration.
File Description
pricing/​prentis.json Adds Prentis model rates and default cost-calculation configuration.

Review effort: Balanced

Comment thread pricing/prentis.json
Comment on lines +4 to +23
"pay_as_you_go": {
"request_token": {
"price": 0
},
"response_token": {
"price": 0
}
},
"calculate": {
"request": {
"operation": "multiply",
"operands": [
{
"value": "input_tokens"
},
{
"value": "rates.request_token"
}
]
},
Comment thread pricing/prentis.json
"currency": "USD"
}
},
"deepseek-v4.1-flash-1017": {

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants