Skip to content

[DOCS] Document include=pricing model pricing metadata on GET /v1/models #444

Closed

Description

Summary

The gateway now populates the pricing field on GET /v1/models?include=pricing (inference-gateway/inference-gateway#467, closes inference-gateway/inference-gateway#464). Docs covering the models endpoint and the include query parameter should describe the new pricing metadata.

User-facing behavior to document:

  • GET /v1/models?include=pricing adds a pricing object per model with normalized field names: currency, input_per_token, output_per_token, cache_read_per_token, cache_write_per_token, source, updated_at.
  • Monetary values are decimal strings (e.g. "0.00000027") to avoid floating-point precision loss.
  • Rates the provider does not publish are omitted entirely (never 0 or null).
  • Rates are resolved from the upstream provider's model listing (source: "provider"). Models without public per-token pricing - subscription-based providers, locally hosted models, providers that publish none - return "pricing": null.
  • Without include=pricing the response carries no pricing key and stays byte-for-byte OpenAI-compatible.

Acceptance Criteria

  • The models endpoint page documents include=pricing with a request/response example.
  • The normalized pricing field names and decimal-string convention are described.
  • The "pricing": null case (no public per-token pricing) is explained.

Activity

  1. added
    documentation
    on Jul 20, 2026
  2. edenreich commented on Jul 20, 2026

    @edenreich
    Contributor

    @infer Can you work on this? use /ponytail:ponytail

  3. added theissue type on Jul 20, 2026
  4. moved this to Todo in 2026on Jul 20, 2026
  5. inference-gateway-maintainer commented on Jul 20, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Read current api-reference.md to understand models endpoint docs
    • Read ponytail skill instructions
    • Add issue to project board and set status to In progress
    • Create working branch
    • Document include=pricing in api-reference.md
    • Validate with lint/format/build checks
    • Commit and push
    • Create draft PR
    • Set project status to QA

    Pull Request

    #446

    ✅ Infer Result: Success

    All acceptance criteria are met - no further work needed.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 4m 13s

    Tokens: 2,597,368 in · 10,232 out · 2,607,600 total (42 requests)

    Tool calls: 41 total · 95% success rate

    Traces
    Session: 1784570498-5586832d
    
    session (standard, success)                4m12s
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool TodoWrite                 269µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.1s
    ├── execute_tool Read                      158µs
    ├── execute_tool Read                      460µs
    ├── chat ollama_cloud/deepseek-v4-flash     7.5s
    ├── execute_tool TodoWrite                  58µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.4s
    ├── execute_tool Bash                      433ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.2s
    ├── execute_tool Bash                       1.8s
    ├── chat ollama_cloud/deepseek-v4-flash     2.3s
    ├── execute_tool Bash                      32.1s
    ├── chat ollama_cloud/deepseek-v4-flash     3.1s
    ├── execute_tool Bash                      840ms
    ├── chat ollama_cloud/deepseek-v4-flash     9.0s
    ├── execute_tool TodoWrite                  68µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.2s
    ├── execute_tool Bash                        3ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.2s
    ├── chat ollama_cloud/deepseek-v4-flash     2.4s
    ├── execute_tool Bash                        3ms
    ├── chat ollama_cloud/deepseek-v4-flash     8.4s
    ├── execute_tool Bash                       32ms
    ├── chat ollama_cloud/deepseek-v4-flash     6.8s
    ├── execute_tool Bash                       1.4s
    ├── chat ollama_cloud/deepseek-v4-flash     7.1s
    ├── execute_tool TodoWrite                  59µs
    ├── chat ollama_cloud/deepseek-v4-flash     6.7s
    ├── chat ollama_cloud/deepseek-v4-flash     3.2s
    ├── execute_tool Edit                      200µs [error: tool_error]
    ├── chat ollama_cloud/deepseek-v4-flash     2.8s
    ├── execute_tool Read                      148µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.4s
    ├── execute_tool Edit                      361µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.9s
    ├── execute_tool Read                      123µs
    ├── chat ollama_cloud/deepseek-v4-flash     7.8s
    ├── execute_tool Edit                      667µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.8s
    ├── execute_tool Read                      140µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Read                      129µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.9s
    ├── execute_tool Grep                      807µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.6s
    ├── execute_tool TodoWrite                  67µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.7s
    ├── execute_tool Bash                       2.4s [error: tool_error]
    ├── chat ollama_cloud/deepseek-v4-flash     3.8s
    ├── execute_tool Bash                       2.3s
    ├── chat ollama_cloud/deepseek-v4-flash     3.7s
    ├── execute_tool Bash                      875ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.4s
    ├── execute_tool Bash                      14.1s
    ├── chat ollama_cloud/deepseek-v4-flash     4.4s
    ├── execute_tool TodoWrite                  61µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                        4ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                        7ms
    ├── chat ollama_cloud/deepseek-v4-flash    10.2s
    ├── execute_tool Bash                       1.4s
    ├── chat ollama_cloud/deepseek-v4-flash     4.7s
    ├── execute_tool Write                     751µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.9s
    ├── execute_tool Bash                       2.0s
    ├── chat ollama_cloud/deepseek-v4-flash     5.4s
    ├── execute_tool TodoWrite                  67µs
    ├── chat ollama_cloud/deepseek-v4-flash     6.6s
    ├── execute_tool Bash                      692ms
    ├── chat ollama_cloud/deepseek-v4-flash     4.3s
    ├── execute_tool Bash                        4ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.7s
    ├── execute_tool Bash                        3ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                      925ms
    ├── chat ollama_cloud/deepseek-v4-flash     4.8s
    ├── execute_tool TodoWrite                  52µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.6s
    ╰── chat ollama_cloud/deepseek-v4-flash     5.2s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 20    │ 5%    │ 3064ms │
    │ TodoWrite │ 8     │ 0%    │ 0ms    │
    │ Read      │ 6     │ 0%    │ 0ms    │
    │ Edit      │ 3     │ 33%   │ 0ms    │
    │ Grep      │ 1     │ 0%    │ 0ms    │
    │ Write     │ 1     │ 0%    │ 0ms    │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                          │ Prompt  │ Completion │ Total   │ Cost │
    ├────────────────────────────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/deepseek-v4-flash │ 2597368 │ 10232      │ 2607600 │ -    │
    ╰────────────────────────────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ standard │ 1        │
    ╰───────────┴──────────┴──────────╯
    
    ⚠️ 2 log(s)
    • Edit:
      old_string not found in file /home/runner/work/docs/docs/api-reference.md
      
      … (truncated)
      
    • Bash:
      exit status 1: $ prettier --check .
      Checking formatting...
      … (truncated)
      

    Triggered by edenreich · Infer Action

  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