Hover a prompt, see the trade-off
How a prompt string in a file becomes a ranked, honest cost comparison without a single network call.
- 1A string literal is recognised as prompt-like from its shape and the identifier next to it
- 2The text is tokenized once per encoding — exactly for OpenAI, approximately for the rest — and cached so models sharing an encoding are not re-tokenized
- 3Each model is priced at its own input and output rate, using the assumed completion length from settings
- 4Results are sorted cheapest first, approximations are marked, and anything over a model's context window is flagged
- 5The comparison renders inline — in the hover, the CodeLens and the status bar, from the same result



