Skip to content

Peter/model cache pricing - #47

Merged
pjb157 merged 2 commits into
mainfrom
peter/model-cache-pricing
Jul 31, 2026
Merged

Peter/model cache pricing#47
pjb157 merged 2 commits into
mainfrom
peter/model-cache-pricing

Conversation

@pjb157

@pjb157 pjb157 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 31, 2026 12:23
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview Jul 31, 2026 12:23pm

Request Review

@pjb157
pjb157 merged commit e2ec9ba into main Jul 31, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the auto-generated Inference API model catalog markdown to present prompt-caching “cache read” pricing as a multiplier (instead of a per-1M token price), aligning the index page display with the underlying cache pricing model data.

Changes:

  • Adjust the models index table “Cache read” column to display cacheReadMultiplier (e.g., 0.1×) and use a visual fallback for unsupported models.
  • Update the prompt-caching callout text to describe the new multiplier-based meaning of the column.
  • Update/extend unit tests to assert the new header formatting, alignment row, and multiplier/fallback rendering.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/lib/model-artifacts.ts Changes the generated models index markdown table to show cache-read multipliers and updates accompanying explanatory text.
src/lib/model-artifacts.test.ts Updates expectations to validate the new cache-read column header/alignment and the multiplier/unsupported rendering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 226 to +229
The table below outlines the models we have available and their pricing per 1M tokens. If you are interested in understanding pricing for a model not listed below or if you'd like to request a new model - please reach out to support@doubleword.ai.

:::info{title="Prompt caching"}
Prompt-caching availability and rates are model-specific. The **Cache read** column shows the current cache-read price for supported models. See the [prompt caching guide](/inference-api/prompt-caching) for setup, TTLs, and write pricing.
Prompt-caching availability and rates are model-specific. The **Cache read** column shows the current multiplier on the model's standard input price. See the [prompt caching guide](/inference-api/prompt-caching) for setup, TTLs, and write pricing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants