{"_id":"@calcis/pricing","_rev":"3-67424f1ec37af0c56b81df28a86603f7","name":"@calcis/pricing","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@calcis/pricing","version":"1.0.0","keywords":["llm","pricing","openai","anthropic","google","gemini","claude","gpt","api","cost","tokens"],"author":{"url":"https://www.calcis.dev","name":"Calcis"},"license":"MIT","_id":"@calcis/pricing@1.0.0","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"homepage":"https://www.calcis.dev/models","bugs":{"url":"https://github.com/rc397/Calcis/issues"},"dist":{"shasum":"b8cc34f82d80a76cbd472613abc91bc798a0d007","tarball":"https://registry.npmjs.org/@calcis/pricing/-/pricing-1.0.0.tgz","fileCount":4,"integrity":"sha512-l2/wHo/gzaVVXD2PnC+9F6nXB2KR0mGSDe0g+27SW2nJmw+ixwN2Fa5idf7pmOr9pNQ6uXJy8q8T0EPBrAZOfA==","signatures":[{"sig":"MEYCIQCd8Ds8ZVw4xZ5ovRTtcOxwlTJd2+K6xocTRgFlIgY7zgIhAKmgvCGuurd0LmPQTzly1sN2obnZqkGI7fxxXvadq8o9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11654},"main":"index.json","gitHead":"906f52a5fcf4988d0cd715a1a15c5f64e6cb75a7","private":false,"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"repository":{"url":"git+https://github.com/rc397/Calcis.git","type":"git"},"_npmVersion":"11.4.2","description":"LLM API pricing data for 25+ models. Updated within hours of provider changes.","directories":{},"_nodeVersion":"24.4.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pricing_1.0.0_1776513696623_0.1574469534292875","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@calcis/pricing","version":"1.0.1","keywords":["llm","pricing","openai","anthropic","google","gemini","claude","gpt","api","cost","tokens"],"author":{"url":"https://www.calcis.dev","name":"Calcis"},"license":"MIT","_id":"@calcis/pricing@1.0.1","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"homepage":"https://www.calcis.dev/models","bugs":{"url":"https://github.com/rc397/Calcis/issues"},"dist":{"shasum":"02a6284ad601a1ee1a4c63f48b3718fd80e62009","tarball":"https://registry.npmjs.org/@calcis/pricing/-/pricing-1.0.1.tgz","fileCount":4,"integrity":"sha512-BsE/W193VJiS3mgzhhLLRr4rWX0hIjTY/peD1EEiIvUVUfkLWOQhPUGvxGEUxBat37+nn24fhpyy7SAt+09dYA==","signatures":[{"sig":"MEUCIC0/0c1z5D3tgaiTZxnnyFTpoP/FRkgmcUfxjw3soD6KAiEAi+PSG2sZCU4TXSuLxHH1HuCZHY/vCljflx+GzZkhtys=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11900},"main":"index.json","gitHead":"2ac0279a067083da14424b97edaf969cbc69b3c8","private":false,"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"repository":{"url":"git+https://github.com/rc397/Calcis.git","type":"git"},"_npmVersion":"11.4.2","description":"LLM API pricing data for 25+ models. Updated within hours of provider changes.","directories":{},"_nodeVersion":"24.4.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pricing_1.0.1_1776941510176_0.960118269581191","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@calcis/pricing","version":"1.0.4","description":"LLM API pricing data for 25+ models. Updated within hours of provider changes.","license":"MIT","author":{"name":"Calcis","url":"https://www.calcis.dev"},"homepage":"https://www.calcis.dev/models","repository":{"type":"git","url":"git+https://github.com/rc397/Calcis.git"},"bugs":{"url":"https://github.com/rc397/Calcis/issues"},"keywords":["llm","pricing","openai","anthropic","google","gemini","claude","gpt","api","cost","tokens"],"main":"index.json","private":false,"publishConfig":{"access":"public"},"_id":"@calcis/pricing@1.0.4","gitHead":"862b57a8fc4e016ca36906c9c0ddea082f4c38b9","_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-cWrN4rEnj8xi5WQfIMXzj6HDH052Wy9oobysVbDt/AapZyVQnQutxjD2OjcoZ+a/2NYpoIZw9N+iRancgUSuPg==","shasum":"7277136774f5d27b65c51aaea032e59b6793d0f8","tarball":"https://registry.npmjs.org/@calcis/pricing/-/pricing-1.0.4.tgz","fileCount":4,"unpackedSize":11862,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCGtPf3hRcqAMx+AUXKCDAS1a5BhnznvTr3/jDWEQnDJgIgJ+LWWMFcracBYjgOjrzJWsme7RzDGvu6SbR++EUqByg="}]},"_npmUser":{"name":"calcis","email":"calcis.dev@gmail.com"},"directories":{},"maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pricing_1.0.4_1777117443164_0.21169858526741114"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-18T12:01:36.443Z","modified":"2026-04-25T11:44:03.444Z","1.0.0":"2026-04-18T12:01:36.759Z","1.0.1":"2026-04-23T10:51:50.306Z","1.0.4":"2026-04-25T11:44:03.325Z"},"bugs":{"url":"https://github.com/rc397/Calcis/issues"},"author":{"name":"Calcis","url":"https://www.calcis.dev"},"license":"MIT","homepage":"https://www.calcis.dev/models","keywords":["llm","pricing","openai","anthropic","google","gemini","claude","gpt","api","cost","tokens"],"repository":{"type":"git","url":"git+https://github.com/rc397/Calcis.git"},"description":"LLM API pricing data for 25+ models. Updated within hours of provider changes.","maintainers":[{"name":"calcis","email":"calcis.dev@gmail.com"}],"readme":"# @calcis/pricing\n\nOpen dataset of LLM API pricing for 25+ models across OpenAI, Anthropic, and Google.\n\n> **Live pricing for 25+ models, side-by-side comparisons, and a web estimator: https://calcis.dev**\n>\n> - Full price index: https://calcis.dev/models\n> - Compare models: https://calcis.dev/compare\n> - API reference: https://calcis.dev/api-docs\n\nShipped as a single JSON file so you can:\n\n- Vendor it into a build,\n- Import it at runtime,\n- Use it in a script that doesn't even have Node installed.\n\nThe source of truth is the [Calcis](https://www.calcis.dev) application's\npricing table. Every row is re-verified against the provider's rate card on\na rolling schedule; the `lastUpdated` field is the ISO date a human last\nconfirmed it.\n\n## Install\n\n```sh\nnpm install @calcis/pricing\n```\n\n## Use\n\n```js\n// Node / bundler\nimport pricing from \"@calcis/pricing\";\n\nfor (const m of pricing.models) {\n  console.log(m.displayName, m.inputPricePerMTok, m.outputPricePerMTok);\n}\n```\n\n```js\n// Fetch directly in the browser\nconst res = await fetch(\n  \"https://unpkg.com/@calcis/pricing/index.json\"\n);\nconst pricing = await res.json();\n```\n\nNo build step, no dependencies. `index.json` is the entry point.\n\n## Schema\n\n```ts\ninterface PricingFile {\n  version: string;           // semver of the dataset shape\n  generatedAt: string;       // ISO date the file was generated\n  source: string;            // canonical URL for richer data\n  note: string;              // unit + field conventions (human-readable)\n  models: ModelPricing[];\n}\n\ninterface ModelPricing {\n  /** Exact API model id to pass to the provider SDK. */\n  id: string;\n  /** Human-friendly name (e.g. \"Claude Opus 4.7\"). */\n  displayName: string;\n  /** \"openai\" | \"anthropic\" | \"google\". */\n  provider: \"openai\" | \"anthropic\" | \"google\";\n  /** USD per 1,000,000 input tokens. */\n  inputPricePerMTok: number;\n  /** USD per 1,000,000 output tokens. */\n  outputPricePerMTok: number;\n  /** Context window in tokens. */\n  contextWindow: number;\n  /** Max output tokens per response (omitted when provider doesn't publish). */\n  maxOutput?: number;\n  /** ISO date a human last verified the row against the provider. */\n  lastUpdated: string;\n}\n```\n\n## What's NOT in here (by design)\n\nThis package is deliberately the simple case: base input / output prices\nand context window. It does not ship:\n\n- Cached-input pricing (OpenAI + Gemini)\n- Anthropic cache-write pricing\n- Gemini long-context surcharge tiers\n- Tokenizer identity or multipliers\n- Batch / async discounts\n\nThose live in the [full Calcis app](https://www.calcis.dev) where they can\nbe modelled against the cost estimator. If you have a use case that needs\nthem as a dataset too, open an issue.\n\n## License\n\nMIT. See [LICENSE](./LICENSE).\n\n## Sources\n\nCanonical rate cards the data is derived from:\n\n- Anthropic: https://platform.claude.com/docs/en/about-claude/models/overview\n- Google Gemini: https://ai.google.dev/gemini-api/docs/pricing\n- OpenAI: https://developers.openai.com/api/docs/models\n\n## Links\n\n- Website: https://www.calcis.dev\n- Upstream repo: https://github.com/rc397/Calcis\n- Full estimator package: [`@calcis/cost-estimator`](../calcis)\n","readmeFilename":"README.md"}