Skip to content

[DOCS] Document community pricing fallback for GET /v1/models?include=pricing #447

Closed

Description

Summary

inference-gateway/inference-gateway#470 (for inference-gateway/inference-gateway#469) adds a community-data pricing fallback to GET /v1/models?include=pricing. When the upstream provider publishes no cost data, the gateway now resolves rates from a committed table synced from the community-maintained models.dev dataset, returned with a new source: community enum value. Provider-published pricing still wins (source: provider); models absent from the table (local providers such as ollama/llamacpp, or paid gates with no per-token rate) remain an explicit null. Maintainers refresh the table with task pricing:sync.

The pages covering the models endpoint / pricing metadata should describe:

  • the resolution order: provider-published pricing, then the community table, then null
  • the new source: community value and that rates come from the models.dev dataset (USD, per-token decimal strings)
  • that local providers (ollama, llamacpp) intentionally stay null
  • the task pricing:sync maintainer flow for refreshing the committed table

Acceptance Criteria

  • The models endpoint / pricing docs describe the provider -> community -> null resolution order
  • The source: community enum value and its models.dev origin are documented
  • The task pricing:sync refresh flow is mentioned for maintainers

Activity

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

    @edenreich
    Contributor

    @claude Is it still relevant? check if it's documented and if not please document it. use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Jul 20, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 3m 4s —— View job • docs/issue-447-20260720-2036 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-447-20260720-2036?quick_pull=1&title=Issue%20%23447%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23447%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Issue #447 is still relevant - now documented

    What changed

    All in api-reference.md, verified against the merged gateway code and its tests/api_pricing_test.go:

    • Replaced the single-sentence pricing paragraph with a numbered resolution order (mirroring the existing context_window style): provider wins outright (never mixed with community rates), then community, then explicit null.
    • Documented source: "community": rates come from the models.dev dataset as USD per-token decimal strings, free-tier models carry explicit "0" rates, and model-ID variants (models/ prefix, -latest, -YYYYMMDD date pins) resolve. Mentioned the task pricing:sync maintainer flow.
    • Noted local providers (ollama, llamacpp) are intentionally absent from the community table and stay null.
    • Updated the include=pricing example so one model shows source: "provider" and one shows source: "community" (community entries omit updated_at, matching the committed table).
    • Updated the Model field-reference table: source is now "provider" or "community", updated_at is optional.

    Roadmap board: issue moved to In progress, then QA after the PR opened.
    | PR #449

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.3 🎉

    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