Skip to content

Releases

LLMPrices 0.1.0

Choose a tag to compare

@Mattbusel Mattbusel released this 16 Nov 01:59

First release. Add it in Xcode with File > Add Package Dependencies and https://github.com/Mattbusel/swift-llm-prices, or in Package.swift:

.package(url: "https://github.com/Mattbusel/swift-llm-prices.git", from: "0.1.0")
  • PriceTable: the llm-prices table (146 rows, generated 2026-11-15) compiled in, with lookup, provider lookup and per-request cost.
  • Price.cost(Usage) prices cache reads, cache writes, batch and long-context tiers.
  • Budget: a thread-safe USD spending cap for apps that call LLM APIs.
  • No network calls, no dependencies beyond Foundation. Tested on macOS, iOS (build), Linux Swift 5.9 and 6.1.