Repository navigation
[DOCS] Subscription-gated models with per-token rates cost zero per session #717
Copy link
Copy link
Closed
Copy link
Labels
Description
Summary
A model can now carry both per-token rates and subscription: true in the gateway pricing table. Ollama Cloud sells flat-fee subscription plans and pay-as-you-go API access, and models.dev publishes the pay-as-you-go rates. The gateway keeps the rates for reference but flags every ollama_cloud/* model as subscription-gated, and the CLI bills subscription-gated models at zero cost per session even when a per-token rate is shown in the model picker.
Source changes:
- fix(communitygen): keep subscription=true for priced ollama cloud models inference-gateway#683 -
subscription: trueis kept for priced ollama_cloud models in the community pricing table - fix(pricing): bill subscription-gated models at zero cost cli#1263 -
CalculateCostreturns zero for subscription-gated models (gateway flag orpricing.custom_prices.<model>.requires_pro) - Originating report: [TASK] Bump inference-gateway/sdk to v1.38.0 (sfx, music, video client methods) cli#1260
Affected pages:
- Gateway pricing /
GET /v1/models?include=pricingreference: document thatsubscriptionand non-zeroinput_per_token/output_per_tokencan coexist, and what each means - CLI pricing and cost tracking page: state that the session cost line and status-bar cost are zero for subscription models, that the picker label still shows the informational rate with a
subscriptionsuffix, and thatrequires_pro: trueincustom_pricesforces the same behaviour for any model
Example to add to the CLI page:
pricing:
enabled: true
custom_prices:
ollama_cloud/glm-5.3-flash:
input_price_per_mtoken: 0.15
output_price_per_mtoken: 0.50
requires_pro: true # informational rate only, billed as flat-fee subscriptionAcceptance Criteria
- Gateway pricing reference explains the
subscriptionflag alongside per-token rates, with the ollama_cloud case as the example - CLI pricing page states that subscription-gated models report zero session cost and shows the
requires_prooverride example above - Both pages link to fix(communitygen): keep subscription=true for priced ollama cloud models inference-gateway#683 and fix(pricing): bill subscription-gated models at zero cost cli#1263
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Sep 22, 2026
@claude [model:claude-fable-5-1] [effort:low] Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 22, 2026
Claude finished @edenreich's task in 2m 4s —— View job •
docs/issue-717-20260922-1549• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-717-20260922-1549?quick_pull=1&title=Issue%20%23717%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23717%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Done - PR opened: #718
subscriptionalongside per-token rates in the gateway pricing reference (with pricedollama_cloud/glm-5.3-flashexample, link to docs: document rust adk tool.<name> tracing spans #683)subscriptionpicker suffix, andrequires_prooverride example on the CLI pricing page (link to cli#1263)Three files touched:
api-reference.md,cli.md,supported-providers.md(the latter had a stale "zero rates" sentence for Ollama Cloud that now contradicts the gateway change).| Branch
inference-gateway-releaser commentedon Sep 23, 2026
🎉 This issue has been resolved in version 0.9.15 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀