You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document community pricing fallback for GET /v1/models?include=pricing #447
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
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
Activity
edenreich commentedon Jul 20, 2026
@claude Is it still relevant? check if it's documented and if not please document it. use /ponytail:ponytail
inference-gateway-maintainer commentedon Jul 20, 2026
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
api-reference.mdonly describedsource: "provider"api-reference.mdpricing docslint:md) and format (format:check) passWhat changed
All in
api-reference.md, verified against the merged gateway code and itstests/api_pricing_test.go:context_windowstyle):providerwins outright (never mixed with community rates), thencommunity, then explicitnull.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,-YYYYMMDDdate pins) resolve. Mentioned thetask pricing:syncmaintainer flow.ollama,llamacpp) are intentionally absent from the community table and staynull.include=pricingexample so one model showssource: "provider"and one showssource: "community"(community entries omitupdated_at, matching the committed table).Modelfield-reference table:sourceis now"provider"or"community",updated_atis optional.Roadmap board: issue moved to In progress, then QA after the PR opened.
| PR #449
inference-gateway-releaser commentedon Jul 22, 2026
🎉 This issue has been resolved in version 0.9.3 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀