Skip to content

[DOCS] Subscription-gated models with per-token rates cost zero per session #717

Closed

Description

@edenreich

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:

Affected pages:

  • Gateway pricing / GET /v1/models?include=pricing reference: document that subscription and non-zero input_per_token / output_per_token can 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 subscription suffix, and that requires_pro: true in custom_prices forces 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 subscription

Acceptance Criteria

Activity

  1. added
    documentation
    on Sep 22, 2026
  2. added theissue type on Sep 22, 2026
  3. moved this to Todo in 2026on Sep 22, 2026
  4. edenreich commented on Sep 22, 2026

    @edenreich
    ContributorAuthor

    @claude [model:claude-fable-5-1] [effort:low] Can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Sep 22, 2026

    @inference-gateway-maintainer
    Contributor

    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

    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

  6. moved this from Todo to In progress in 2026on Sep 22, 2026
  7. moved this from In progress to QA in 2026on Sep 22, 2026
  8. moved this from QA to Done in 2026on Sep 22, 2026
  9. inference-gateway-releaser commented on Sep 23, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.15 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions