How Gnomcode Calculates AI Model Pricing and Costs
Last updated
Gnomcode estimates model cost locally by applying available rates to recorded token classes. The model picker’s Codex cache is an availability source, not a live billing feed; reference prices and user overrides belong to the separate Rust pricing engine.
Which token types are counted?
Source formats may expose input, output, reasoning, cache-read and cache-write tokens, including Claude five-minute and one-hour write tiers. The adapter determines what is recorded and avoids counting cached input twice. Reasoning fields are handled according to the source format rather than universally charged twice.
Where do prices and models come from?
Built-in reference rates and context metadata live in the Rust catalog; custom overrides are local. An explicit pricing refresh is opt-in. Fresh visible official Codex CLI model-cache entries drive discoverable model choices, not proof of prices or entitlement. Claude Code retains its native selection where reliable discovery is absent; Antigravity lists the models its CLI reports.
What does Plan Value ROI mean?
It compares estimated API-equivalent compute with a user-configured subscription price. A ratio above one means observed work has a higher reference API value than that fee; it does not prove an invoice saving. Use gnomcode report --plan-usd 20 only if 20 is the fee you want to compare.
Can I trust every model price?
Read the source and trust label. EXACT usage is a measured count, EST money is a rate-based calculation, API is a direct opted-in response, and UNKNOWN means missing information. Static rates can age and tiered pricing has conditions; consult the vendor before a purchasing decision.
Does pricing require my API keys?
Local cost calculation does not read agent API keys, subscription tokens or billing history. Optional network refresh fetches rate data rather than your provider invoice. No catalog entry guarantees that your account can run that model.
Official sources
Pricing and availability sources
| Model family/source | What Gnomcode uses | What it proves |
|---|---|---|
| Claude, OpenAI and the Gemini models Antigravity uses | Rust reference catalog or explicit refresh/custom rate | Rate assumptions for estimated API equivalent |
| Visible Codex CLI models | Fresh local official CLI cache | Discoverable model choices, not live pricing or entitlement |
| Unknown model IDs | No matching reliable rate | UNKNOWN cost; never zero by assumption |
Try Gnomcode
Download it for Windows, macOS, Linux or Android, open a project and start an agent.