{"_id":"ai-sdk-cost-calculator","_rev":"51-bcd137f422dd8a1e3f0a69677c49316e","name":"ai-sdk-cost-calculator","dist-tags":{"latest":"7.1.16"},"versions":{"0.1.0":{"name":"ai-sdk-cost-calculator","version":"0.1.0","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.0","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"9bc13eb0ef447aa28bffbca3c02f646b571027f7","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.0.tgz","fileCount":38,"integrity":"sha512-EXMZPlCxjlhwpKMz+VWJI/Qb8T1Vr1bKm3a7wyai21A7vtmAiiL0hyR4hT0ujgMcG5kXEr/vT+2H2dRwew0afA==","signatures":[{"sig":"MEUCIQCSSTUZ/vvsjota+X2YdpQFhyjK4aWx0/zXQkZYV41XXAIgbFZnHqjPLC13bwMTWoz5dMBh2fXXsGYaDytbvs7TvXU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":95750},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"613bd4d9c0c946d8a88fc681d2674943f4ce3396","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.0_1768655874142_0.23738696448759966","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"ai-sdk-cost-calculator","version":"0.1.1","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.1","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"4a33fe182b09da1178bfbaddc2ae3e98cd2ae085","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.1.tgz","fileCount":38,"integrity":"sha512-hXnxiYmNhr7zuZybPi7Xguii9u7sre7Mm9ykSPu1S+aIosAONaMaxKb1MQewsuNpq4UE1wUg8ZgOuDA6RVMneA==","signatures":[{"sig":"MEYCIQDFl3kZzkWwYPwNDjqTZiy07+QoMEwuX5y2Z4IT6ygYJQIhAMDZAIR0CBK/X9TubaWYsL+gEdOh4b8m/78Ra35OEBTl","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96836},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"613bd4d9c0c946d8a88fc681d2674943f4ce3396","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.1_1768656800631_0.4691844016462545","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"ai-sdk-cost-calculator","version":"0.1.2","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.2","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"bc3f97da6e83027c60886d0f591f3b8c88a97051","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.2.tgz","fileCount":95,"integrity":"sha512-ZMlmReLpDfrKB2g9tHeF4BYv377QmE9rAckeYlQXULBT3/QsZ2oP2ZCdXSZo+xyeU+R2qa9ActWE/G0u5mn72g==","signatures":[{"sig":"MEYCIQDAGOh8R6KGVM7qCVgmSHxSQZ/dYv0RHVeWATZQvy3sdwIhAK9iS07AmLYCavPq9WLAsoFCQX5OuJzlxlhB6iuW8aVs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":232626},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"2c829d94f053e5762da38b4f9f6d0c130dc5bdf8","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.2_1768668653870_0.0857678749963311","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"ai-sdk-cost-calculator","version":"0.1.3","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.3","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"315ebc4d2a36db267a91f049470a6f5c38692114","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.3.tgz","fileCount":95,"integrity":"sha512-sV2RgDmzoOQlu0fIHx+aQqxSUa6qzd/ivrZ5M+UZiZDqJ7sjzzmE/Eli8SL49uckwy1OhJcNFRGGj5viUsn1/g==","signatures":[{"sig":"MEUCIQCGm5fCH0fgtOncy0qf1VF3k1MCuZzwpMUYDd3XQ6EP+AIgenWcP2b03vkwTEg/nI+C7jRx1IS2Q6nnkqJ4/eM0+40=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255263},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e2f291feebaac8a774e6ff94f64138cc2f540b6a","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.3_1768702093556_0.13292038797725758","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"ai-sdk-cost-calculator","version":"0.1.4","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.4","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"5b1a9fd2f8e92d1a380aa7deb2b82e009b4c447f","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.4.tgz","fileCount":59,"integrity":"sha512-2Et3+DwQpuGuwhAHwRUMh6OGYHF1RMc3f25PgE6KHy8adktaAtkh1pux0eEmVfsP07MvEPjzyOMVN2Mv0Jy4Ww==","signatures":[{"sig":"MEUCIQDhIgFB9jW5WuW2/FHOhmUcMyhrBJJu1uJYIFbKf2QwjAIgZZcX5pJz0gQDdeE1CG35NzdOrVnoumzVH75AsEMymL0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":207401},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e2f291feebaac8a774e6ff94f64138cc2f540b6a","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.4_1768702195356_0.9095744367235745","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"ai-sdk-cost-calculator","version":"0.1.5","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.5","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"5bfb84139b956db4c8568d093248f9ae32def1c5","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.5.tgz","fileCount":59,"integrity":"sha512-wjdsIxfJX1dVD3/214UQwPTOyNq0+ln91P76iNKjLn81oVWcuXZUQ7yi6FRJizWzccVfyPMuDMeVcGF91iYeNg==","signatures":[{"sig":"MEUCIBCKlxu6LacArMhwI21iY/szrEUJ7TrxAAcG8j7WW3hcAiEArxloTRf88KU9BU1ad5zQs0nX9F5/rlZ0/kH7bt7pWlQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":226891},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e2f291feebaac8a774e6ff94f64138cc2f540b6a","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.5_1768716007077_0.42766241565292384","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"ai-sdk-cost-calculator","version":"0.1.6","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.6","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"a33785b218d0da930a2a38d17e26ba6977704af6","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.6.tgz","fileCount":59,"integrity":"sha512-ip8fn5sKnBh8Rmf1fNIQQsmzcFy3ewQoyl5/fDAdZWGZLUQm0HtQWu7ln9cx/j/kvmHrUaMYspK3lmQ3XNL04A==","signatures":[{"sig":"MEUCIEG5JTvZZ2nKGAYulv0y0WtWTOqE58Lw41VSdUYeTYbQAiEA61LNIToEL8NUQ00LxIYdc6Dsm68CoNbXz/Px4Hu6RI8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":229207},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"ebf4bfced1c8a924e7e7e977ef55facd241cca55","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.6_1768885741390_0.1680401936802649","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"ai-sdk-cost-calculator","version":"0.1.7","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.7","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"c43c63cc0751610d90b3b17017531b6d55d9bbbb","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.7.tgz","fileCount":59,"integrity":"sha512-PK6sZhGj2Nv0SzfgOKfsFuN7nVwiWMZXPO+j1OY7fFFN40qkkD+UZ4Wy5igdZcB3n1CAMr55DuMJ1LXwgCEJMQ==","signatures":[{"sig":"MEYCIQDJrIO9TSi1RW+RclGM3LJ511ihvjg9CTTUAPtjHs50YQIhAN7hGAA3AGheiFEtTW/dRzozzMqJAncSKL2OiZsMXOPW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":230153},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"ebf4bfced1c8a924e7e7e977ef55facd241cca55","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.7_1768887471836_0.42156230654820126","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"ai-sdk-cost-calculator","version":"0.1.8","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.8","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"4149813a1e704dca2132e9509915bd9e58781256","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.8.tgz","fileCount":59,"integrity":"sha512-LW80tWs059eE4I6cIErfK2DS9ks4MFyO4MlVMU+593unq/HHFPebwsIFNOUayVmgW0UkqrqACcCYb0siV9LpUQ==","signatures":[{"sig":"MEUCIAoKfC+iA+BYX93H0WlpbvpJx5SOpn/znIT0a33rRZTxAiEAmkbcBrex8niQVYGMx6pVWO3cD5ayz9DWihq7QJ1fVpU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":232751},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"b5d2434e62f48f31918b17a520da847afee01bfb","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.8_1768897620284_0.8539693824487387","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"ai-sdk-cost-calculator","version":"0.1.9","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.9","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"f640ef35df082ab02e9d9cf7efde6ec59dbf3b46","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.9.tgz","fileCount":59,"integrity":"sha512-Hvk/yRcObEFfhnmbK48/OEZQpjjCLn7l2nVmUU+Z+3L/dhUmEpf/tCgGsE0RfkCYEU1m/bNlkNxzKWlfk9ag1A==","signatures":[{"sig":"MEYCIQCdZegT6UZELSLbABmCTOQdMAU8x00xKtqO76TFjtpj7AIhALun8vG/bVZPPhrqdtqR8NOFeSTVI/E0E0zTVh3XS3gs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":247805},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"b5d2434e62f48f31918b17a520da847afee01bfb","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.9_1768899562912_0.9755175814435901","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"ai-sdk-cost-calculator","version":"0.1.10","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.10","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"7dc2ddf725c674650d353ba4944cb37682251460","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.10.tgz","fileCount":59,"integrity":"sha512-FY6M7RdoSnVzhQI60uhqm0AbN9wqNqYYZ8RBtSFltKTrNiORu1uNEt6r5gQkL1nF7B1m7m3z3pvC9PllXjNCfQ==","signatures":[{"sig":"MEQCIAMgJY3Vi1DcNaVG/W6i2Hn7JAbBeAaGoO3OxoERM1hgAiB5Se8emH2bKQ6u11ey/bTi5OMuBR+rNLXKbu6KiKuOmQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248776},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"b5d2434e62f48f31918b17a520da847afee01bfb","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.10_1768899943782_0.6475399005874152","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"ai-sdk-cost-calculator","version":"0.1.11","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.11","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"93a2facc4526f9196fa9a6a2c90ba470a90a16e2","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.11.tgz","fileCount":59,"integrity":"sha512-YiZgQXTc4Dv18hVJBltlhh9vLKAvu/8+Gbi3mtyIeVzKDVjrYEKOL3nBSiG7q0Ngm4HfM2hWp2/TcS5fpoxMRA==","signatures":[{"sig":"MEUCIAMM9QL4qBW/z+eAUHb2zd4+gyHKW2B2QlKLrFCoI7j1AiEArfWp9N9nceL7JeK2ZWK9eq4eqj+Rv7wjCi8XIlMS63k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":265156},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"b5d2434e62f48f31918b17a520da847afee01bfb","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.11_1768911868828_0.0878299672416436","host":"s3://npm-registry-packages-npm-production"}},"0.1.12":{"name":"ai-sdk-cost-calculator","version":"0.1.12","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.12","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"75787a1d21f17a5ff95d652918abe701d0a5ae63","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.12.tgz","fileCount":59,"integrity":"sha512-osV4Z7b9OUO3YFMAZfw7Jy08zv3CZwxvuhK2B3f4wsUkMNO6bimIgZr6YNxTDit6bGsZLbYcBjoV7cQZPfcNaA==","signatures":[{"sig":"MEUCIGkwRXwbm7jCJSK1AESkdcT0pLVnUTDWZ8lpX43Jhaf5AiEA0PpaBJQqGpAmxnBMq6wbQTmC2BlGfdvJSFU7s1zugLc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":294932},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"935088a9fb5334a34b35aed807d61517fe2822ce","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.12_1771407688913_0.46164360657633075","host":"s3://npm-registry-packages-npm-production"}},"0.1.13":{"name":"ai-sdk-cost-calculator","version":"0.1.13","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.13","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"3ac68ce3916e1b83518a647731bd463d55ea8859","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.13.tgz","fileCount":59,"integrity":"sha512-nJxZAXOPC4yxD4TN2Ov9/FqeZhxP5d3CN+oqGPOLJp1dk7B5AyR3bpS/USTW/Y5D7wevPGdincmBprFRQSW0Nw==","signatures":[{"sig":"MEYCIQDUqk2YS/7FK1TOi8r3Mp2Dbb5jk7UbCUO9QPjuEIjBNQIhAP9libeDPHqpWUhneuW2D2V1RhuhGblrJ5w57Jxfxp3s","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":296520},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"097800d9ad5b395428743d8c10ae2883d840bac6","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.13_1771552878870_0.5966092184821132","host":"s3://npm-registry-packages-npm-production"}},"0.1.14":{"name":"ai-sdk-cost-calculator","version":"0.1.14","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.14","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"feb3b89d6fcdf2f2155aaca35309f118bfa076f9","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.14.tgz","fileCount":59,"integrity":"sha512-tRdcQZFOpv3g6Lr4/NQQb4RABMBxac85JAO0f8j9uFVPZS2130pjagbmAnTVXvCNDkDweX+6JnSBYyx/mnt8Zg==","signatures":[{"sig":"MEUCIQCo84L5QEbQ57pQBTS5m8Ey0Qq0tuHZfjFbgBsJ7z1BBAIgZK7CohzhnklHFzIHgNbAUiGGFhm7LRQGUIbuOmohzFQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":293652},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"cd63b68e757e10747c451b61fae7b8dcf4413b92","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.14_1772158901303_0.3081735528990375","host":"s3://npm-registry-packages-npm-production"}},"0.1.15":{"name":"ai-sdk-cost-calculator","version":"0.1.15","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.15","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"b1bb16f648111322f4afc8c8a0220c74b7f637dc","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.15.tgz","fileCount":59,"integrity":"sha512-DItxAU9fP4uXCfRPtCgX1NtZdLQX7WDuKA00ubUcbsH+Mc92nzFKCqxuKzUoBHshNbr/Rds7IiCayjhhbITvZw==","signatures":[{"sig":"MEUCIQCBXPaE5uESUhPZl20GzmTRidmuyO3nF/j5UXnS6ere6QIgJUxNg5eOuR0qzTqRqdN9fBi5L3bPjPs+mPC1UTln9yo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":295648},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"cd63b68e757e10747c451b61fae7b8dcf4413b92","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.15_1772161197699_0.7167952783035703","host":"s3://npm-registry-packages-npm-production"}},"0.1.16":{"name":"ai-sdk-cost-calculator","version":"0.1.16","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.16","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"f16f85cde8e9f2299032d158a64e8f66228475cc","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.16.tgz","fileCount":59,"integrity":"sha512-WgIerPDkicJfX4Z4ble/yfKfaeu6Svfv3w1YRsV7nEOmyK7M2pgyFTZOi9kB319bylPoFnX7LRgG7RQRjhr16Q==","signatures":[{"sig":"MEYCIQCyfLF0JC4e8NVRBQShHUh21pZFLefvmaPX2lqBTF0d3wIhALgKusRrL3CxX4Lf3xUS0X1gnDPD1L+wwOps3R3xoy34","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":297574},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"cd63b68e757e10747c451b61fae7b8dcf4413b92","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.6.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.16_1772162670422_0.4703070962460627","host":"s3://npm-registry-packages-npm-production"}},"0.1.17":{"name":"ai-sdk-cost-calculator","version":"0.1.17","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.17","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"ad6863654402ee1fb2a50c45c041cfb3f32dff90","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.17.tgz","fileCount":59,"integrity":"sha512-+d2o3h12Yfm9sZiSbRQDjTrr/pQz/yQzpxnTspkd6zPBSLN+EbtJQMkA1bOD+UzYJn6in+NQCMC0fchcxTR5zQ==","signatures":[{"sig":"MEUCIQClh33qstR7jVTO5XdXLLknPTgFwqxygMyRkIzHsyG8PwIgO5g81bveqYDvTHINgkM/INHKLGpESxjsiBFBwXP01PU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":300844},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"963e967b8807dee7d6eb363fcba10281114638e8","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.11.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.17_1772585040203_0.9023061231739153","host":"s3://npm-registry-packages-npm-production"}},"0.1.18":{"name":"ai-sdk-cost-calculator","version":"0.1.18","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.18","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"3f5da79a7603ff0ae3600935aa2404c5910c3737","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.18.tgz","fileCount":59,"integrity":"sha512-YhnooPCoRHgviSNVMwb+WRKOyAKj+2P5epaekgdgbv1XeyiE20Gf8PUWcXOLEm8Ttr7BKZgJt0lVlIVH6pp5zA==","signatures":[{"sig":"MEUCIQDVHSvbH8Qp8JGec0jLiuzRnoChrf6DZtikP2t7msVR1gIgX6t/zPk5kpb25/tDQc5wBCwYx++eHmKy2w75G2alUVw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":302191},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"963e967b8807dee7d6eb363fcba10281114638e8","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.11.0","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.18_1772849463985_0.30750734197554874","host":"s3://npm-registry-packages-npm-production"}},"0.1.19":{"name":"ai-sdk-cost-calculator","version":"0.1.19","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.19","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"737a528123d693b5a6a64f85b80baeb445b97080","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.19.tgz","fileCount":59,"integrity":"sha512-FSFfGf/OaIX5ICgM09jXKWLNXKOYWFfdw2g4R+H/Cejao44iIus7JS8KYw/wuvXdskaDhb1Fq3C0g8XOJ+fbSQ==","signatures":[{"sig":"MEUCIQC65VtM+PUXaIyRx0f/lmyNLJLOH1HsvsXJyi+u30mecQIgLAmNHFtDAebkJKfaHs2oUAeIes1wAGmzBi38BVHj7Fs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":311181},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"1a23d62d0669d8da26a60609e85d0606da393b59","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.19_1775356922056_0.42080550293704855","host":"s3://npm-registry-packages-npm-production"}},"0.1.20":{"name":"ai-sdk-cost-calculator","version":"0.1.20","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.20","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"5e624f929fb2bbf773ae6fc3e1292f251c661a29","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.20.tgz","fileCount":59,"integrity":"sha512-FbEcRzVTJ9JCCmaLTIv86dbnOjbQnWc2jdMzIA2AL+ci1k4gteJrFSevqzF1PIs7k8sXEvO+zRrSkRYQAV8jwg==","signatures":[{"sig":"MEYCIQC+x+7NohJc6IWx/vcVGPpGOFLlxkeMrR815Yr83qNvogIhAM8sLjD1C/8j5WPOzEjIGsEFnpw5ZeotGfW4PpDfAc/7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":314111},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"50013d1645f5f3b8559e87718449ce39a6871485","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.20_1776087940059_0.9312242498532801","host":"s3://npm-registry-packages-npm-production"}},"0.1.21":{"name":"ai-sdk-cost-calculator","version":"0.1.21","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.21","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"1c563528d1f0b77eac446f228129df3eeed08958","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.21.tgz","fileCount":59,"integrity":"sha512-dE6QuM2WQxkeuur1g9l0q4Nb+zkVUQyAOZCW4d6erjuzgtKZkesbTbF9h/qAxuYsMaQ0rXkQSWyXm1S3/Mf4kg==","signatures":[{"sig":"MEUCIDUNmZX3FSIJeaMtTEprjDEnzjRUjI9376V1gaIgjIOEAiEA0YhvuUd3cHCLGOPpNXJsNebneOmhHncwevOaJ02aWpw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":317580},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"504e3e44ecaa472fcfb81d881a521242a8ebbbf5","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.21_1777362223365_0.9254548993514493","host":"s3://npm-registry-packages-npm-production"}},"0.1.22":{"name":"ai-sdk-cost-calculator","version":"0.1.22","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.22","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"9cc614e5b40f29eef882b9a81e57df59a528e91a","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.22.tgz","fileCount":59,"integrity":"sha512-OcAqaeJj6Tacuas3h6Tviplw52POF+fqgracO3a1rCqd8r6TqyfwXgDQkhZ5p5Taj78O9B5R2e6Gfw0Pukh5Hg==","signatures":[{"sig":"MEUCIQCd+26EQW2wJvbDXAbZofptAwju7U/nYUFRGozmMZCIvAIgZgW6DrjkPT+UVq/xKo9qvaSnDoxHDPfaBiZNwF3Ae2A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":319123},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"a265ce91c8f298ae7b26319fc4ceee0113fa979a","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.22_1777368469442_0.43459256153934556","host":"s3://npm-registry-packages-npm-production"}},"0.1.23":{"name":"ai-sdk-cost-calculator","version":"0.1.23","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.23","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"0a6344b394f30234c8caf8276ac71e650995844a","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.23.tgz","fileCount":59,"integrity":"sha512-ozEIufUASM2vvbuOhZVZeuqDeU7y9Ct3LZAdiTxbHj5htbkdWSWL6gRDkhVbU3i24S+0Y+/UXjMgG6/RftL4DA==","signatures":[{"sig":"MEYCIQDwkkALckuuxFpyoUrTL5s7E2Xn6YBYKzxXHwtdTR6cWwIhAKuxp2nYqHlj8GwOveH5xgJMXqq33YPZg1G6DG8ZZ7uq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":319835},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"a265ce91c8f298ae7b26319fc4ceee0113fa979a","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.23_1778211861027_0.6177523723330625","host":"s3://npm-registry-packages-npm-production"}},"0.1.24":{"name":"ai-sdk-cost-calculator","version":"0.1.24","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.24","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"2000134781e7aa8d5389c849a41d205d181e1e34","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.24.tgz","fileCount":59,"integrity":"sha512-tsOoZ28XCXcJkeje327RUaFjVqSp67zKxkq4Eap4WBBuQPRkqKlMm9U9CoeaIxK44pP2GF3eOGqHf+2Vu9ho6A==","signatures":[{"sig":"MEUCIHeCZJhg3amMqI24OGeQNV1at/7sBm/1VNv5USngZfIfAiEAuCdbXQfsHvEUjRjsHPVo0h0tJfy3xLwEm1bWSnQBmWo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":322381},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"1900bb31f18b3513bc798912fe54d5ddf777e561","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.24_1778213653012_0.5085435735162143","host":"s3://npm-registry-packages-npm-production"}},"0.1.25":{"name":"ai-sdk-cost-calculator","version":"0.1.25","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.25","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"5bbf4b798105323f8711aac256ca8ad846f33270","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.25.tgz","fileCount":59,"integrity":"sha512-8JeyU8iY7kzOsEQ05pXx//u8EYN9ozdh0LSEcBxB1kBMJt1u5blb7D9FLWTGyq2LLEqju1Q1pEKKOcXngZVoug==","signatures":[{"sig":"MEUCIQDO8Lpr4LQeoIpn2ixQkHohRpK0OAJFXe7WY1upfEN47AIgGlNtG0H8AgdLBwLvKApNpm47Fb7OTqvXinn3vX7WJUI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":323777},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"1900bb31f18b3513bc798912fe54d5ddf777e561","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.25_1778215909719_0.08295093517516872","host":"s3://npm-registry-packages-npm-production"}},"0.1.26":{"name":"ai-sdk-cost-calculator","version":"0.1.26","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.26","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"bb4fce81088d78d3d860945c3d1c8522756621da","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.26.tgz","fileCount":59,"integrity":"sha512-TJ/USWurQsExc76FNJbrElkvrITM2RL62NNocyB4+ymiy3bbIfaDOmO2AzF/17DQZD7wdn/YNp0fYtBlnIHWNw==","signatures":[{"sig":"MEUCIQDym7NZ3OPmiAtWE0+AUneLBdhSfhL3Nj9mxGVlG8peRAIgRMc8JS6lfWk4pqewq+OuhfScDbkWCfmyoIYHXrtgOFM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":411579},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"1900bb31f18b3513bc798912fe54d5ddf777e561","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.26_1778294325640_0.02773930824936932","host":"s3://npm-registry-packages-npm-production"}},"0.1.27":{"name":"ai-sdk-cost-calculator","version":"0.1.27","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.27","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"8f44dd1f5831615b6422d8aa3ae4ecfca8ffe300","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.27.tgz","fileCount":59,"integrity":"sha512-c7mvYStk436kT6r2CDChfZ0pZcOFwOC5YS2rWVUFyPcGHctyjoyqJnVXzA0kSdYa5gwolWa0WneHIYBydjFhzw==","signatures":[{"sig":"MEYCIQCQZkYnKUhEU94DiSuXiD2Re34SpgSgmRJl2DwXh+MOgwIhANnm2/7zJzNWfZBDikb64AlR3850SYXcpHe7wI4r8bpy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":423693},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"d446e4b8758c5b67a1c0cd69018d0d1b2171137b","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.27_1778295409272_0.8221057385550579","host":"s3://npm-registry-packages-npm-production"}},"0.1.28":{"name":"ai-sdk-cost-calculator","version":"0.1.28","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.28","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"d3577b62092d425a430eb647f4fb4da6f44eb9d9","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.28.tgz","fileCount":59,"integrity":"sha512-k3iePr7limg4wGykAGqY5zWoIF59KxTGTCLJIhmu0yfTvPr6FHeVfDsDcYYw5igQdcf6dP+zL3dnVhQOrLUXJg==","signatures":[{"sig":"MEYCIQDNwZzb8I62CnvBjaelSjfmyzhjoeDs61nMR4ZI6vni3QIhAJ1XBLEu/pCozc//Drcn85miuOt66jRZZh3zFAoyzAjo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":424608},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"81c9555bb967dd2940b7339d9a3deba1dd65cee3","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.28_1779238612003_0.3503876912412558","host":"s3://npm-registry-packages-npm-production"}},"0.1.29":{"name":"ai-sdk-cost-calculator","version":"0.1.29","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.29","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"13945c45e5822b6608e385a217dbfc436c38c95e","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.29.tgz","fileCount":86,"integrity":"sha512-8ASYOKLtTf4nuQXAJFcf9NDdzNldbjDFCIVuMbT6nf5q1zvl+KvhNaNXsbxsGCUqgdFiJERT9ycCP5t8C3nMCg==","signatures":[{"sig":"MEYCIQD6oKC9qjHV3I1hHZbMD1b5gX/QHpB8zyrwe4acwgLIbQIhAKE9jZ7fk85ab34jIKheHQTSawXYSQlRydf/zLTefBhM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":488683},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"527f2e0c24e3cf03855c803ad44dd5bad680b32b","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.29_1779246778361_0.6673613159230476","host":"s3://npm-registry-packages-npm-production"}},"0.1.30":{"name":"ai-sdk-cost-calculator","version":"0.1.30","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@0.1.30","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"1d2ba90e425931c947cb8f1683cff2005e7de632","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-0.1.30.tgz","fileCount":86,"integrity":"sha512-yuU8XgKsfV9+8eQvPFxoaRbgpTVpPdI6XrQthVVSURRHB1HM1sMYeIN6zj5OQvo1EajnBCpogLIoAFocrmRDkA==","signatures":[{"sig":"MEUCIQC45iw22GgfqQgPVGFJky8+D7D1ELn8OT5X61jPFvKUpgIgWF2zu65qDLMb+Zhl6ZsFhQBB+byhW2ZHY1h4SyP8ikM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":493350},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e2e646e4504f36d40e5cbeab3c1bfe2834bae7b8","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^6.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_0.1.30_1781430178365_0.8715859627030804","host":"s3://npm-registry-packages-npm-production"}},"7.0.0":{"name":"ai-sdk-cost-calculator","version":"7.0.0","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.0.0","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"5b62fe853ad81bd8bad13d61e19b23b3a9f84d33","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.0.0.tgz","fileCount":7,"integrity":"sha512-qdTm0Z3DhHvd13JaqigNYs8VOJr9ChALliI2blKJ/sGAx+cLXsO+s7+8CnTYFvFxtMP0Y9l4kcLnADxAzmPQUA==","signatures":[{"sig":"MEQCIBGXGsq3EAiV66Cf4N1vJqfj5XlD+sgHSSpLhv/1fwNHAiBPwox+X29TsQiE5ZzP4vIxs2XZV1eu1WNwwpcbcS/6Ng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":304887},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"fcd550b2fcc6320a049b9fe63aaab6aebf345f61","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.0.0_1782701818705_0.1403239255351847","host":"s3://npm-registry-packages-npm-production"}},"7.0.1":{"name":"ai-sdk-cost-calculator","version":"7.0.1","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.0.1","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"a3737d2be727011c2dd030b817036ca6c56c6a02","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.0.1.tgz","fileCount":7,"integrity":"sha512-E+OcyBKsSrogssIoqNflv/1R3+NLxJfrWm+qYY4uw8GJbT9VvWb+XfFNKHl3UZKOx6GVcHQk7MaH5VuvfFF3mw==","signatures":[{"sig":"MEUCIQCIj6zXFXMXFzMtrJaoASz5Ri/uyJi78P/Vgklk/+PCagIgGWJ9c1IAtas4ZouUvcZJnakW1OzgrSiG0slH/paPVY4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":319307},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"17eda8a1277f3d9983810762efb30ff1f74db463","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.0.1_1782955713445_0.4123460210018719","host":"s3://npm-registry-packages-npm-production"}},"7.0.3":{"name":"ai-sdk-cost-calculator","version":"7.0.3","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.0.3","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"46b5b63b2886582c355ebc91aef1afbd1f614a27","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.0.3.tgz","fileCount":7,"integrity":"sha512-+8jXdLe2fd26RBmy7xwEp7+YP4SoqOuR6EPO+er7UgTzMz3F9LTWLDrb1JX9sOAxrITk68DoVaodeFrArVjEEg==","signatures":[{"sig":"MEQCIEzif+ayipXu164U/GTS/fay0rSViUDM0USBl1w/NJDhAiAnmSylfy91HkUxJ/95dZiGARxy+iDZCyRLTtxp2UCqyg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":342463},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"77c9866557c08fdf57749fa8d7d483661dc0b249","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.0.3_1783080804183_0.577185846155031","host":"s3://npm-registry-packages-npm-production"}},"7.1.0":{"name":"ai-sdk-cost-calculator","version":"7.1.0","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.0","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"95b2c52904314661747cf1f66b00dcc2196e366b","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.0.tgz","fileCount":7,"integrity":"sha512-qu6vFDla1SQO+LQWDuPHfu3LB33da3/flqTaQYAQDxQ9A/0KLAJ62CUwXHmI2Rs0UFVRZGQ+v+aIOnFBNBVJEQ==","signatures":[{"sig":"MEUCIQCcW1jYchoKAtXUt2+Nn9dGJP9vB8SU3l93/7OxzB8bjQIgXCSU0TrzJ2zHdtUqUSEEhKcFkGzjPNRBapfL2GPAAnQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":396364},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"391cb6ba1df4cfe2b7390fa90ed04280647e07b5","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.0_1783182205313_0.6128628103544378","host":"s3://npm-registry-packages-npm-production"}},"7.1.1":{"name":"ai-sdk-cost-calculator","version":"7.1.1","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.1","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"b57edc65d4efc1f92d48d889104bf9a2cf2cf40d","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.1.tgz","fileCount":7,"integrity":"sha512-P4y1xeFJaMDNR4mzqPdreZ9z3t+9QRf7GMcGDaFrKKlQo5dyCwWZzq6jWoybWTisfI/R6gYp1OUnU4VZEFW8Rw==","signatures":[{"sig":"MEYCIQDc5cBdsJiA5RcoPXiWgn1rrm4NGdobWmi9vQ2qVhW3/gIhALqkYFlUpJjEALk9fLGH/r0q8WIvyaSxf/IbFnFOdSdF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":397302},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"60c950f50451158f04cc0990a084e9077c5ecf1c","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.1_1783872302517_0.08418743644724946","host":"s3://npm-registry-packages-npm-production"}},"7.1.2":{"name":"ai-sdk-cost-calculator","version":"7.1.2","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.2","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"87910ce803ef85d578e17d0a49e439fd325535c3","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.2.tgz","fileCount":7,"integrity":"sha512-/ddLpw7fTihBozEhKUZUPPSN4u1hXhGXIGnxQ/ZfnEwIcg0F97Jl31RnZcnePYN0pNKJLJ9U+S6WeHysABoBiw==","signatures":[{"sig":"MEQCIHL6O72rilentnREELRQ4ynCw3Hj+EZZznj6uu8kCdgYAiBXEtLt001c68DNFBqMNTtJ8F+wv5hQphX8COjgfp0uvA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":403034},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"2d2860d0973ab62577dd7445e8008ec0fab449c3","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.2_1784649952023_0.21348150126630183","host":"s3://npm-registry-packages-npm-production"}},"7.1.3":{"name":"ai-sdk-cost-calculator","version":"7.1.3","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.3","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"97c29f23971d8157dc699e66ae2bbb3a23d5c22a","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.3.tgz","fileCount":7,"integrity":"sha512-p33y7FrluY3DaQapEHdWkpuxfTqX30LYLxNwe69DgzSbXK+w8tp4UY+LpqjlkLLpdHxC4A8I31KqjQ40jaSZgA==","signatures":[{"sig":"MEYCIQCkD+MnGMHUYwjYCPpjRhyCWUkqWR78DSp+FiaE1JVeTgIhAPjDOabvXBHNRvAwaj9kkzSCM0pSAgPK9AOoNn/vlFdy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":404766},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"eac9791239121ac3c5b9388d9ca96830684fbf15","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.3_1785332048864_0.5741689420647351","host":"s3://npm-registry-packages-npm-production"}},"7.1.4":{"name":"ai-sdk-cost-calculator","version":"7.1.4","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.4","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"351dc300e876219ee543707bd76835c73db45014","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.4.tgz","fileCount":7,"integrity":"sha512-5/ShETggA3t5PBEsffjivl6dYdnuqakplWzKCmRV3JJqK15WVH/WY1dcnusxLPqX0ad0b7s2tR58wxLbp0oIMw==","signatures":[{"sig":"MEQCIGyl8lOsV9o8TL6ZL40pEk+nx5LQFVbbybmtSbYNXq69AiB0F0iyIRCCZHX1cPGxV0r+SYYuatAFK3awbqI43BgFjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":405436},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"6ffd2bfc81a0805cbeaa5564f31149cc38629de2","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.4_1785332160306_0.815066857199485","host":"s3://npm-registry-packages-npm-production"}},"7.1.5":{"name":"ai-sdk-cost-calculator","version":"7.1.5","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.5","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"ae72573c2f03a423c9b5d841d534810121441d80","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.5.tgz","fileCount":7,"integrity":"sha512-CbFj9MH3AcWQ8T3DcaW9GVEPhU2LYuocJEN772ZAK/NKhEs2PhFd14QNSqN0rNKRCzXCD+QIaNK1aPJgZp+d/g==","signatures":[{"sig":"MEYCIQCYrEwVhhx/gz0wDtnYZiDyKS6WMjx+J1nW+63wxASGIAIhAMHuXPjt+3Ah9iN6m+hqf94+KptgiUX4QqH4rU0hJ5Ln","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":421118},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"127f1dc0b2bd241c192f80df015635fe1351d4e3","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.5_1786411448029_0.35216278542438206","host":"s3://npm-registry-packages-npm-production"}},"7.1.6":{"name":"ai-sdk-cost-calculator","version":"7.1.6","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.6","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"c1c36bef8f91a24a43da429e4bc23bc5a6f5faf5","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.6.tgz","fileCount":7,"integrity":"sha512-2viw2T32tingaOweAEiUO6rahMoj6c3K9LO4HHAx01UNwYOeLIV+tb0IAhEiip748bLtaAlvXpzTnCF/Knap9A==","signatures":[{"sig":"MEYCIQC2XgYT5Qu8wVgsg4j0JFAmxuCNqSmDgQ1QZ21w0QyGhQIhANnwwZpGO0sQbDcVYwPK96VQKNMCjeHZ1FT+y/bgRgQ2","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":422906},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"00ee916fb43b0b4688000248534f8fa3169d7cb3","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.6_1786553992333_0.06362170487463836","host":"s3://npm-registry-packages-npm-production"}},"7.1.7":{"name":"ai-sdk-cost-calculator","version":"7.1.7","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.7","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"a5668f27b04b9143b981cddc3d0a69440c8594f4","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.7.tgz","fileCount":7,"integrity":"sha512-0sSX9HbTSzyATFPTZoIdcDwyEfUcGd9Ah5vsvWw4pJ9EYLn/kmOAturE/6AQuqZCF0n06hlPyY8WxZndweV+dw==","signatures":[{"sig":"MEYCIQDHaQZ6JwxnfbFjR7GXZysJhlTb08kUe48G4AXuC1r1DQIhAK+tvsDxIRJn1AJC+ySFDmjndul0NJIN4bmI7pwqqoc+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":424882},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"edce51fe65c18e157a3e8f0c8e47baa649f25942","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.7_1786643760427_0.3586423446882201","host":"s3://npm-registry-packages-npm-production"}},"7.1.8":{"name":"ai-sdk-cost-calculator","version":"7.1.8","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.8","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"c34705cf3fa60f42269b4f9b8cedc4f9c3dd57a0","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.8.tgz","fileCount":7,"integrity":"sha512-uevs93CZV83Ym6jETXrjTvUKqXULvwKLHazF28mkC5PUE8wMEJHSY3A+dZfRhSN3GsE4ELzqGSYoeal3PZls8g==","signatures":[{"sig":"MEUCIQDSRZn2fhWQ5kEKTXUl13WlA3z5TZx+ZY7xcQ/rpfpUNAIgEUuIrlg0uScI6Q4SGe0qsB+Yy3x4QCjfHf2OSIzoo1k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":431495},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"f01cb0b9d5448c5db72eed124705ef3ab03cd759","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.8_1787814923972_0.13188023923507752","host":"s3://npm-registry-packages-npm-production"}},"7.1.9":{"name":"ai-sdk-cost-calculator","version":"7.1.9","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.9","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"edb004743d6849f7347b9ce82e53d178beee367d","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.9.tgz","fileCount":7,"integrity":"sha512-/2vDPJ+3nzqZ7TzujITCzGLcFPfMRLh8t1MZdUiGX/1g/TzPRoPGQnkBaUQuK5Vcmp1M4tgN/qYnUaPcUKuo+g==","signatures":[{"sig":"MEUCIBlL9eXjqsDfZvMcmxlcOeXDtQXZE1BfIrC81bYqF7cQAiEAyLThr8towO2B+NUmaY/K85o4gQqjqNQoEbw/xqIyB84=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":431543},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"12d8b3307915d045e714dd2381299f6fa173d9da","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.9_1787815996438_0.9291318757875426","host":"s3://npm-registry-packages-npm-production"}},"7.1.10":{"name":"ai-sdk-cost-calculator","version":"7.1.10","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.10","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"9b886bff1bb2c37b5c589396b428e1f0276552c7","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.10.tgz","fileCount":7,"integrity":"sha512-a0jzuz5N0kdeUofBp+P74R04cWUw9ZTuID8NgKSB+miyRAr0IeCFFJc5Lm+BrXzziRh23rwV0ILOMB0GXPej9g==","signatures":[{"sig":"MEYCIQC10s0QsEPvF2V6sxcclSghYrmnURNM1JDu1yM1GvuIxwIhAN1LtFFlHYQLbumiI9ADLaXtqySTbGh/qdCl6OSnrsJK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":432438},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"b0f82072729b7767ec2c03513b758fec2763da7d","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.10_1788406407375_0.9915675131771802","host":"s3://npm-registry-packages-npm-production"}},"7.1.11":{"name":"ai-sdk-cost-calculator","version":"7.1.11","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.11","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"4ae202bacac91dd5847e58c46367c91644babeaa","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.11.tgz","fileCount":7,"integrity":"sha512-h9VrMwolGSiBgZbawnBioew2O0+AgFfvs/7yt+m3P31ruLA7nT1H+2FCK5KD/ak7x4CrKeALAAyzukepGLkLuQ==","signatures":[{"sig":"MEYCIQDKoSSCsydTO4tRp4frrTHIoq4wZaQYaTmryTjA6fNUyQIhAP70nVPHz/Usa72PFMLQVJ7RS7CRKzHhzYwFXzaYVC7k","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":440948},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e65e8004a3adf208797dd281ce3e62b0d1aa7a88","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.11_1789044672570_0.26839158210479974","host":"s3://npm-registry-packages-npm-production"}},"7.1.12":{"name":"ai-sdk-cost-calculator","version":"7.1.12","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.12","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"44b1f896db7dbce2005c5a16ee9eee49938714eb","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.12.tgz","fileCount":7,"integrity":"sha512-hlXBq4+IczufC7ym8aqX0V/ck1y895U23iu+6xKKO5gGPnp7zZERKywfXuCG0wNZzunK7ipmmShWa/ZpahreXg==","signatures":[{"sig":"MEUCIQDOUVZQ2LlLmgUSGKobxRIpXS63ZJ260YkkstjcZEY8HgIgeGk5kDxNPNKLZOevHtr1oq5N4PjiVGffBjrR1cR4xvQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFAsC3SfWsbBAnLDsOy92B49mpgo6Uzm+8EfC0Qry3YgAiBCcYhz0blTm3qQTxXvG8VbQpUL9GV/p35kuinmf4hPCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":448278},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"908eb359ae900f78c6d95b055435c049109b094c","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.12_1789626250196_0.3273413788370225","host":"s3://npm-registry-packages-npm-production"}},"7.1.13":{"name":"ai-sdk-cost-calculator","version":"7.1.13","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.13","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"e3e75654eda58616dfa252efbf4af840cd76c3ad","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.13.tgz","fileCount":7,"integrity":"sha512-dg7XrdelcH/b98G81rTP9HXo4LewE0dFxgtqjw81plLlXxHtbwcBVXpsJ6vnQadGD1mRrG335n8vbYoniNUtrA==","signatures":[{"sig":"MEUCIQDqHCLGVXz6E2ATSQLk5tBCyEOZ9kaAJCFmIG0+yIi8jgIgSxAWpxIdaLDM+kciiBRVPFGxiGkhPmoVgdG9WrHb220=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCMzewfhICI8wuQYL83x98lhkOqDaMrpqjBEHkcpSKUzgIgHiX/T87kJwfS+UMT0i1ApnKYlBi2AshGkToV4tFmU6k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":474447},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"fe3be59c7ba031b2947c93e10f6449ed90d76708","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.13_1790048230260_0.4022676503697178","host":"s3://npm-registry-packages-npm-production"}},"7.1.14":{"name":"ai-sdk-cost-calculator","version":"7.1.14","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.14","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"43531a5cff0fd20da2054b9613b394633660f4d9","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.14.tgz","fileCount":7,"integrity":"sha512-T6pa48/KOE+wCqLqFnFT4peR0P7WgLYyn+MXdwIN6g7NfPSMeXOkyc+sfVqAIAfxDJbBZ/o02tywXDDIYhQQhA==","signatures":[{"sig":"MEUCIQChL3ja1NvePc3EUZfYYmTj5lLQiOsH7hR4AngYEfHJ/QIgOWYPaQDMZJmAPf9IiIPjH6Oid1W2GmIZN4FqWg0fKzo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIF9C7qUwkmX/XeBg+1aWeqPBTw6qHfElcHFqu9Rwx3CWAiA8EwxlmijZfTz93beKvK0Co07h2VUUx4kxfZDShAXcrA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":477294},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"9fc0357f39913ca7632489c24501aed779e4232c","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"11.12.1","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.14_1790101740771_0.725835011533444","host":"s3://npm-registry-packages-npm-production"}},"7.1.15":{"name":"ai-sdk-cost-calculator","version":"7.1.15","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"author":{"name":"Ren Koya"},"license":"MIT","_id":"ai-sdk-cost-calculator@7.1.15","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"07b28acad3d3603624731a26f3ebee6cb9c75e58","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.15.tgz","fileCount":7,"integrity":"sha512-RmdxCpLm6HlHEXLHriSSk6DRkVKN4nhxBrqmjNABxR3k8BQVtS/3G4zplGluMD12wT1I/pGadLeJ8DxJGwiZdQ==","signatures":[{"sig":"MEQCIEe8jjAZPD/T1yLChbkRX2crPZCB8tF5LZ+ow/6UNRrgAiAISjY0ClKUFjaSv1YUqDGZ9WzBuyZoe6b5WTh+b+f2zw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDorYJ7LUFHUlMzQkD7MRXGah85XLdPf340AlfrW4dTuAIhAI0zDYRid1+0neBmW/YAevD0zQyP85C368AYS3qVX3Sw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":487178},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"54aad61845f0000a11cbf6aa8299734e542f56d7","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"10.9.9","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"_nodeVersion":"22.23.3","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-cost-calculator_7.1.15_1790861512956_0.9256735186257932","host":"s3://npm-registry-packages-npm-production"}},"7.1.16":{"_id":"ai-sdk-cost-calculator@7.1.16","bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"dist":{"shasum":"7c9684ea7af033bc0a00bcb8de55c70236b9917e","tarball":"https://registry.npmjs.org/ai-sdk-cost-calculator/-/ai-sdk-cost-calculator-7.1.16.tgz","fileCount":7,"integrity":"sha512-TB3KfAXoVKZsgJIyZtjkT/FuOtJRR6yUOshvJYgQOBPpqDnuB0vUT3itImHVOHB5I76UcJ2M0rRZyrPD45OgbQ==","signatures":[{"sig":"MEUCIQDxCzCHsna5xSrHfH/V+zmfUZvdmLmDToYloZpTuum+CgIgBYorrQQZyM10qf6zRUc5Epvq7fXyf+EQEO8+fJqQsmk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAP8jsxaFqm25ydfP8aZMt5SQDlonVlbb2PKwqZ2WkeFAiEAkj73pLWlCyhxoXiun2+y/jfVZ7Am45rgi0rlWqzx8+U="}],"unpackedSize":488382},"main":"dist/index.js","name":"ai-sdk-cost-calculator","types":"dist/index.d.ts","author":{"name":"Ren Koya"},"module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"1491812e43e6fbd73f0ec51c0d2ba5587f843e8e","license":"MIT","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts --clean","release":"npm login && npm run build && npm publish --access=public","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"version":"7.1.16","_npmUser":{"name":"renkoya1","email":"koya.ren.701@gmail.com"},"homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"_npmVersion":"10.9.9","description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","directories":{},"maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"_nodeVersion":"22.23.3","_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.0.0","@types/node":"^20.0.0"},"peerDependencies":{"ai":">=6.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-sdk-cost-calculator_7.1.16_1791426281292_0.12150301190087154"}}},"time":{"created":"2026-01-17T13:17:54.066Z","modified":"2026-10-08T02:24:41.557Z","0.1.0":"2026-01-17T13:17:54.310Z","0.1.1":"2026-01-17T13:33:20.791Z","0.1.2":"2026-01-17T16:50:54.014Z","0.1.3":"2026-01-18T02:08:13.699Z","0.1.4":"2026-01-18T02:09:55.505Z","0.1.5":"2026-01-18T06:00:07.245Z","0.1.6":"2026-01-20T05:09:01.535Z","0.1.7":"2026-01-20T05:37:52.050Z","0.1.8":"2026-01-20T08:27:00.437Z","0.1.9":"2026-01-20T08:59:23.040Z","0.1.10":"2026-01-20T09:05:43.913Z","0.1.11":"2026-01-20T12:24:28.985Z","0.1.12":"2026-02-18T09:41:29.091Z","0.1.13":"2026-02-20T02:01:19.027Z","0.1.14":"2026-02-27T02:21:41.465Z","0.1.15":"2026-02-27T02:59:57.979Z","0.1.16":"2026-02-27T03:24:30.587Z","0.1.17":"2026-03-04T00:44:00.382Z","0.1.18":"2026-03-07T02:11:04.139Z","0.1.19":"2026-04-05T02:42:02.236Z","0.1.20":"2026-04-13T13:45:40.222Z","0.1.21":"2026-04-28T07:43:43.516Z","0.1.22":"2026-04-28T09:27:49.652Z","0.1.23":"2026-05-08T03:44:21.159Z","0.1.24":"2026-05-08T04:14:13.165Z","0.1.25":"2026-05-08T04:51:49.859Z","0.1.26":"2026-05-09T02:38:45.781Z","0.1.27":"2026-05-09T02:56:49.423Z","0.1.28":"2026-05-20T00:56:52.169Z","0.1.29":"2026-05-20T03:12:58.509Z","0.1.30":"2026-06-14T09:42:58.513Z","7.0.0":"2026-06-29T02:56:58.853Z","7.0.1":"2026-07-02T01:28:33.617Z","7.0.3":"2026-07-03T12:13:24.328Z","7.1.0":"2026-07-04T16:23:25.487Z","7.1.1":"2026-07-12T16:05:02.652Z","7.1.2":"2026-07-21T16:05:52.172Z","7.1.3":"2026-07-29T13:34:09.005Z","7.1.4":"2026-07-29T13:36:00.472Z","7.1.5":"2026-08-11T01:24:08.194Z","7.1.6":"2026-08-12T16:59:52.495Z","7.1.7":"2026-08-13T17:56:00.565Z","7.1.8":"2026-08-27T07:15:24.104Z","7.1.9":"2026-08-27T07:33:16.595Z","7.1.10":"2026-09-03T03:33:27.528Z","7.1.11":"2026-09-10T12:51:12.720Z","7.1.12":"2026-09-17T06:24:10.314Z","7.1.13":"2026-09-22T03:37:10.357Z","7.1.14":"2026-09-22T18:29:00.852Z","7.1.15":"2026-10-01T13:31:53.071Z","7.1.16":"2026-10-08T02:24:41.405Z"},"bugs":{"url":"https://github.com/RenKoya1/ai-sdk-cost-calculator/issues"},"author":{"name":"Ren Koya"},"license":"MIT","homepage":"https://github.com/RenKoya1/ai-sdk-cost-calculator#readme","keywords":["ai","ai-sdk","vercel-ai","cost","calculator","pricing","token","usage","openai","anthropic","claude","google","gemini","xai","grok","deepseek","llm","gpt","chatgpt"],"repository":{"url":"git+https://github.com/RenKoya1/ai-sdk-cost-calculator.git","type":"git"},"description":"Cost calculator for Vercel AI SDK token usage. Supports OpenAI, Anthropic, Google, xAI (Grok), and DeepSeek with long context pricing, prompt caching, and reasoning tokens.","maintainers":[{"name":"renkoya1","email":"koya.ren.701@gmail.com"}],"readme":"# ai-sdk-cost-calculator\n\nCost calculator for [Vercel AI SDK](https://sdk.vercel.ai/) token usage. Calculate API costs for OpenAI, Anthropic, Google, xAI (Grok), DeepSeek, and Perplexity with support for long context pricing, prompt caching, reasoning tokens, and web search.\n\n## Features\n\n- **Multi-provider support**: OpenAI, Anthropic, Google Gemini, xAI Grok, DeepSeek, Perplexity\n- **AI SDK native**: Use with `onFinish` callbacks via `withCost()` wrapper\n- **Session tracking**: Track costs across multiple calls with `createCostAwareAI()`\n- **Multi-model tracking**: Track costs across different models in a single tracker\n- **Web search pricing**: Calculate costs for grounding/search features\n- **Google Maps pricing**: Calculate costs for Google Maps API requests\n- **Image generation pricing**: Calculate costs for DALL-E, Imagen, and other image models\n- **Embedding pricing**: Calculate `embed()` / `embedMany()` costs with `calculateEmbeddingCost()`\n- **Speech & transcription**: Calculate `generateSpeech()` (TTS) and `transcribe()` (STT) costs\n- **Video generation**: Calculate `experimental_generateVideo()` costs (per-second / per-video)\n- **Auto-detection**: Automatically detect web search/maps/image generation tool calls from results\n- **Long context pricing**: Automatic tier-based pricing (e.g., Claude Sonnet 4.5 >200K tokens)\n- **Prompt caching**: Separate pricing for cache reads and writes\n- **Reasoning tokens**: Support for o1/o3/R1 reasoning model costs\n- **TypeScript**: Full type definitions included\n\n## Installation\n\n```bash\nnpm install ai-sdk-cost-calculator\n```\n\n**Peer dependency**: Requires `ai` (Vercel AI SDK) version 6.0.0 or higher.\n\n```bash\nnpm install ai\n```\n\n## Quick Start\n\n```typescript\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { calculateCost, formatCost } from \"ai-sdk-cost-calculator\";\n\nconst result = await generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Hello, world!\",\n});\n\nconst cost = calculateCost({\n  model: \"gpt-4o\",\n  usage: result.usage,\n});\n\nconsole.log(`Total cost: ${formatCost(cost.totalCost)}`);\n// Output: Total cost: $0.000150\n```\n\n## AI SDK Integration\n\n### Using `withCost` with `onFinish`\n\nThe easiest way to track costs is with the `withCost` callback wrapper:\n\n```typescript\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { withCost, formatCost } from \"ai-sdk-cost-calculator\";\n\nconst result = await generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Hello!\",\n  onFinish: withCost(\"gpt-4o\", ({ cost, usage }) => {\n    console.log(`Cost: ${formatCost(cost.totalCost)}`);\n    console.log(`Tokens: ${usage.inputTokens} in, ${usage.outputTokens} out`);\n  }),\n});\n```\n\nYou can also pass the model object directly:\n\n```typescript\nconst model = openai(\"gpt-4o\");\n\nawait generateText({\n  model,\n  prompt: \"Hello!\",\n  onFinish: withCost(model, ({ cost }) => {\n    console.log(`Cost: ${formatCost(cost.totalCost)}`);\n  }),\n});\n```\n\n### Using `getCost` for One-Shot Calculation\n\nFor simple post-hoc cost calculation:\n\n```typescript\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { getCost, formatCost } from \"ai-sdk-cost-calculator\";\n\nconst result = await generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Hello!\",\n});\n\nconst cost = getCost(\"gpt-4o\", result.usage);\nconsole.log(`Cost: ${formatCost(cost.totalCost)}`);\n```\n\n### Using `createCostAwareAI` for Session Tracking\n\nFor tracking costs across multiple calls in a session:\n\n```typescript\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { anthropic } from \"@ai-sdk/anthropic\";\nimport { createCostAwareAI, formatCost } from \"ai-sdk-cost-calculator\";\n\nconst ai = createCostAwareAI({\n  onCost: (model, cost) => {\n    console.log(`[${model}] ${formatCost(cost.totalCost)}`);\n  },\n});\n\n// First call\nawait generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Hello!\",\n  onFinish: ai.onFinish(\"gpt-4o\"),\n});\n\n// Second call with different model\nawait generateText({\n  model: anthropic(\"claude-sonnet-4-5\"),\n  prompt: \"Hello!\",\n  onFinish: ai.onFinish(\"claude-sonnet-4-5\"),\n});\n\n// Get totals\nconsole.log(`Total: ${formatCost(ai.getTotal().totalCost)}`);\nconsole.log(`Requests: ${ai.getRequestCount()}`);\nconsole.log(`Models: ${ai.getModels().join(\", \")}`);\n\n// Reset when needed\nai.reset();\n```\n\n## Multi-Model Tracker\n\nTrack costs across multiple models in a single tracker instance.\n\n```typescript\nimport { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { anthropic } from \"@ai-sdk/anthropic\";\nimport { createTracker, formatCost } from \"ai-sdk-cost-calculator\";\n\nconst tracker = createTracker({\n  onCost: (model, cost) => {\n    console.log(`[${model}] Cost: ${formatCost(cost.totalCost)}`);\n  },\n});\n\n// Use with onFinish callback\nawait generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Hello!\",\n  onFinish: tracker.onFinish(\"gpt-4o\"),\n});\n\nawait generateText({\n  model: anthropic(\"claude-sonnet-4-5\"),\n  prompt: \"Hello!\",\n  onFinish: tracker.onFinish(\"claude-sonnet-4-5\", ({ cost, text }) => {\n    console.log(`Response: ${text}, Cost: ${formatCost(cost.totalCost)}`);\n  }),\n});\n\n// Or add usage manually\ntracker.add(\"gpt-4o\", result.usage, { webSearchRequests: 5 });\n\n// Get per-model costs\nfor (const summary of tracker.getAllCosts()) {\n  console.log(`${summary.model}: ${formatCost(summary.cost.totalCost)}`);\n}\n\n// Get total cost across all models\nconsole.log(`Total: ${formatCost(tracker.getTotal().totalCost)}`);\nconsole.log(`Requests: ${tracker.getTotalRequestCount()}`);\nconsole.log(`Models: ${tracker.getModels().join(\", \")}`);\n\n// Reset when needed\ntracker.reset();\n```\n\n## Web Search & Google Maps Costs\n\nCalculate costs including web search/grounding and Google Maps features.\n\n```typescript\nconst cost = calculateCost({\n  model: \"gemini-2.0-flash\",\n  usage: result.usage,\n  webSearchRequests: 10,   // Number of web searches\n  googleMapsRequests: 5,   // Number of Google Maps API calls\n});\n\nconsole.log(cost.webSearchCost);   // $0.14 for 10 searches\nconsole.log(cost.googleMapsCost);  // $0.035 for 5 maps requests\n```\n\n### Native Search Pricing\n\nProvider-executed web search is billed through the same `calculateCost()` path.\nThe calculator adds the provider's per-request tool fee; search-content tokens\nreported in `usage` continue to use the model's normal token rates.\n\n| Provider / verified model family | One Web search | Other native search | Notes |\n| --- | ---: | ---: | --- |\n| OpenAI GPT-6 Astra/Sol/Luna, GPT-6.1 Sol, GPT-5.6/5.5/5.4/5, GPT-4o/4.1, supported o-series | $0.010 | — | Search-content tokens billed at model rates |\n| Anthropic Claude (all models in the native table) | $0.010 | — | Search-content tokens billed at model rates |\n| Google Gemini 3.x and Robotics ER | $0.014 | Maps $0.014 | Includes Gemini 3.5 Flash-Lite |\n| Google Gemini 2.5 | $0.035 | Maps $0.025 | Provider free allowance is not subtracted |\n| xAI searchable Grok models | $0.005 | X $0.005/post, $0.010/profile; file/collections $0.0025 | Includes Grok 4.7 |\n| Groq GPT-OSS 20B/120B | $0 | — | Browser Search is free during beta |\n| Moonshot Kimi K3/K2.7/K2.6/K2.5 | $0.005 | — | Successful calls only |\n| Perplexity Sonar defaults | $0.005 | Pro/Reasoning Pro $0.006 | Low-context default; higher tiers vary |\n\nOpenAI's legacy non-reasoning `*-search-preview` models use $0.025 per search.\nFor the non-preview tool, GPT-4o-mini and GPT-4.1-mini also bill a fixed 8,000\ninput-token block per search. Provider free tiers and monthly allowances are not\nsubtracted automatically.\n\nSince 2026-09-21, xAI X Search bills fetched posts and user profiles, not tool\ncalls. Pass `xSearchPosts` and `xSearchUserProfiles` to any cost entry point;\nthese counts replace the legacy `xSearchRequests` estimate, including when zero.\nInclude parent/quoted posts and all fetched profiles, not just citations.\nGrok 4.7 requires fetched counts when X Search calls are reported. Older Grok\nentries retain their legacy per-call estimate when these counts are omitted.\n\nSearch tools whose price is selected per request rather than per model are not\nwritten into a model's fixed pricing record. This includes Groq Compound's\nBasic/Advanced choice, OpenRouter search-engine selection, and Vercel AI Gateway\nsearch tools; use `customPricing` when you need to pin one of those variants.\n\n### Auto-Detection from Tool Calls\n\nAutomatically detect web search and Google Maps usage from AI SDK results:\n\n```typescript\nimport { createTracker } from \"ai-sdk-cost-calculator\";\n\nconst tracker = createTracker();\n\nawait generateText({\n  model: google(\"gemini-2.0-flash\"),\n  prompt: \"Find coffee shops near Tokyo Station\",\n  tools: { web_search: mySearchTool, places: myPlacesTool },\n  onFinish: tracker.onFinish(\"gemini-2.0-flash\", undefined, {\n    webSearchTools: [],  // Use default tool names for detection\n  }),\n});\n\n// Or add custom tool names\nawait generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Search the web\",\n  tools: { my_custom_search: customSearchTool },\n  onFinish: tracker.onFinish(\"gpt-4o\", undefined, {\n    webSearchTools: [\"my_custom_search\"],  // Add to defaults\n  }),\n});\n```\n\n#### Using `detectRequestsFromResult` Directly\n\n```typescript\nimport { detectRequestsFromResult, calculateCost } from \"ai-sdk-cost-calculator\";\n\nconst result = await generateText({\n  model: google(\"gemini-2.0-flash\"),\n  prompt: \"What's the weather?\",\n  tools: { web_search: searchTool },\n});\n\n// Detect tool usage\nconst { webSearchRequests, googleMapsRequests } = detectRequestsFromResult(result, {\n  model: \"gemini-2.0-flash\",       // Pass the model for correct grounding billing\n  webSearchTools: [\"my_search\"],   // Optional: add custom tool names\n});\n\nconst cost = calculateCost({\n  model: \"gemini-2.0-flash\",\n  usage: result.usage,\n  webSearchRequests,\n  googleMapsRequests,\n});\n```\n\n> **Pass `model` when detecting Google Search grounding.** Google bills grounding\n> differently by model family: the **Gemini 3** family is charged **per search\n> query** ($14/1k), while **Gemini 2.5 / 2.0 / 1.5** (and the same models on\n> **Vertex AI**) are charged **once per grounded prompt** ($35/1k for 2.5),\n> regardless of how many queries the model issued internally. Detection reads\n> grounding metadata from `providerMetadata.google` (`@ai-sdk/google`) **and**\n> `providerMetadata.googleVertex` / `providerMetadata.vertex`\n> (`@ai-sdk/google-vertex`), so Vertex AI is covered. Without `model` it falls\n> back to the conservative per-prompt count. The `withCost` / `getCost` /\n> tracker integrations pass the model automatically.\n\n#### Default Tool Names\n\nThe following tool names are detected by default:\n\n**Web Search**: `web_search`, `webSearch`, `google_search`, `googleSearch`, `grounding`, `web_search_preview`, `tavily_search`, `brave_search`, `bing_search`, `duckduckgo_search`\n\n**Google Maps**: `google_maps`, `googleMaps`, `place_search`, `placeSearch`, `geocode`, `places`\n\n### Pricing by Provider\n\n| Provider       | Model            | Web Search (/1k) | Google Maps (/1k) | Notes                  |\n| -------------- | ---------------- | ---------------- | ----------------- | ---------------------- |\n| **OpenAI**     | GPT-4o, GPT-4.1  | $10              | -                 | + tokens at model rate |\n| **OpenAI**     | GPT-4o-mini      | $10              | -                 | + 8k tokens per search |\n| **Google**     | Gemini Flash     | $14              | $7                | Grounding with Google  |\n| **Google**     | Gemini Pro       | $35              | $7                | Grounding with Google  |\n| **xAI**        | Grok models      | $5               | -                 | Web Search / X Search  |\n| **Perplexity** | Sonar            | $5               | -                 | Search-native          |\n| **Perplexity** | Sonar Pro        | $6               | -                 | Search-native          |\n\n## Image Generation Costs\n\nCalculate costs for image generation models (GPT Image, DALL-E, Imagen).\n\n### GPT Image 2.5\n\n`gpt-image-2.5-sunburst` and `gpt-image-2.5-flare` use actual token usage.\nBoth have the following **standard** rates (USD per 1M tokens), verified\n2026-09-10 against [OpenAI image pricing](https://developers.openai.com/api/docs/pricing#image-generation):\n\n| Text input | Cached text input | Image input | Cached image input | Image output |\n| ---------- | ----------------- | ----------- | ------------------ | ------------ |\n| $5         | $1.25             | $8          | $2                 | $30          |\n\n```typescript\nconst cost = calculateCost({\n  model: \"gpt-image-2.5-sunburst\", // or \"gpt-image-2.5-flare\"\n  usage: {\n    inputTokens: 3500,\n    outputTokens: 4000,\n    totalTokens: 7500,\n    inputTokenDetails: {\n      noCacheTokens: 3000,  // 1000 text + 2000 image tokens\n      cacheReadTokens: 500, // 300 text + 200 image tokens\n      cacheWriteTokens: 0,\n    },\n    outputTokenDetails: { textTokens: 4000, reasoningTokens: 0 },\n  },\n  imageInputTokens: 2000,     // Non-cached image input only\n  imageCacheReadTokens: 200, // Subset of cacheReadTokens\n});\n\nconsole.log(cost.imageGenerationCost); // $0.12\nconsole.log(cost.totalCost);           // $0.141775\n```\n\nUse your response's token counts in place of these example values. For Image 2.5,\nall non-reasoning output tokens are billed as image output, even though AI SDK's\ngeneric output pool is named `textTokens`. `imageGenerations` is optional and\ndoes not add another charge. Cached image input is included in `cacheReadCost`.\n\nThe models can consume different numbers of tokens at the same quality and size,\nincluding `xhigh`, `max`, and `auto` settings. Passing only image count and size\nwithout output usage throws an error for Image 2.5. See the\n[image generation guide](https://developers.openai.com/api/docs/guides/image-generation#cost-and-latency).\nWhen using the Responses API image-generation tool, calculate the main model's\nusage and the image model's usage separately.\n\nFor earlier GPT Image models and Gemini image models, pass `imageOutputTokens`\nto use actual output consumption instead of per-image estimates. These tokens\nmust be included in `usage.outputTokens`; the calculator subtracts them from the\nregular output charge. An explicit zero also overrides the estimate. Image token\nmodifiers work with `calculateCost`, `getCost`, `withCost`, `createCostAwareAI`,\nand `createTracker`.\n\n### Per-image estimates for earlier models\n\n```typescript\nconst cost = calculateCost({\n  model: \"gpt-image-2\",\n  usage: { inputTokens: 0, outputTokens: 0, totalTokens: 0 },\n  imageGenerations: 2,          // Number of images\n  imageSize: \"high-1024x1024\",  // {quality}-{size}; omit → medium 1024x1024\n});\n\nconsole.log(cost.imageGenerationCost); // $0.422 for 2 high-quality images\n```\n\nEarlier GPT Image models offer per-image estimates by **quality** (`low`/`medium`/`high`) and\n**size** (`1024x1024`, `1024x1536`, `1536x1024`). Pass `imageSize` as\n`\"{quality}-{size}\"` (e.g. `\"high-1536x1024\"`). A bare size (`\"1024x1024\"`) or\nomitting `imageSize` estimates medium quality for backwards compatibility;\nthe API's `auto` setting can vary. For image **edits**, reference\nimages are billed as image input tokens — pass `imageInputTokens` to charge them\nat the model's image input rate.\n\n### Image Generation Pricing\n\nGPT Image — per image, USD (`low` / `medium` / `high`):\n\n| Model             | 1024x1024              | 1024x1536 · 1536x1024   | Image out /1M |\n| ----------------- | ---------------------- | ----------------------- | ------------- |\n| gpt-image-2       | 0.006 / 0.053 / 0.211  | 0.005 / 0.041 / 0.165   | $30           |\n| gpt-image-1.5     | 0.009 / 0.034 / 0.133  | 0.013 / 0.050 / 0.200   | $32           |\n| gpt-image-1 ⚠️     | 0.011 / 0.042 / 0.167  | 0.016 / 0.063 / 0.250   | $40           |\n| gpt-image-1-mini  | 0.005 / 0.011 / 0.036  | 0.006 / 0.015 / 0.052   | $8            |\n\n⚠️ `gpt-image-1` deprecates 2026-10-23. Source: [OpenAI image generation guide](https://developers.openai.com/api/docs/guides/image-generation).\n\nLegacy / other providers — per image (flat by size):\n\n| Provider   | Model             | Default (/image) | Size Options                                      |\n| ---------- | ----------------- | ---------------- | ------------------------------------------------- |\n| **OpenAI** | DALL-E 3          | $0.04            | 1024x1024: $0.04, 1024x1792: $0.08, hd-*: $0.08-$0.12 |\n| **OpenAI** | DALL-E 2          | $0.02            | 1024x1024: $0.02, 512x512: $0.018, 256x256: $0.016 |\n| **Google** | Imagen 3          | $0.04            | 1024x1024: $0.04, 1536x1536: $0.08                |\n| **Google** | Imagen 3 Fast     | $0.02            | 1024x1024: $0.02, 1536x1536: $0.04                |\n\n### Auto-Detection for Image Generation\n\n```typescript\nawait generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Generate an image of a cat\",\n  tools: { generate_image: myImageGenTool },\n  onFinish: tracker.onFinish(\"gpt-4o\", undefined, {\n    imageGenerationTools: [],  // Use default tool names\n  }),\n});\n\n// Custom tool names\nonFinish: tracker.onFinish(\"gpt-4o\", undefined, {\n  imageGenerationTools: [\"my_dalle_tool\"],\n})\n```\n\n**Default Image Generation Tool Names**: `generate_image`, `generateImage`, `image_generation`, `imageGeneration`, `create_image`, `createImage`, `dall_e`, `dalle`, `imagen`, `stable_diffusion`, `text_to_image`, `textToImage`\n\n## Realtime / Live Sessions\n\nRealtime and Live models (AI SDK `experimental_useRealtime`, OpenAI Realtime,\nGemini Live, xAI Grok Voice) report usage split by modality — text, audio,\nimage, and video tokens are each billed at different rates, and some providers\noffer per-minute billing as an alternative to per-token.\n\nUse `calculateRealtimeCost` for a one-shot total, or `createRealtimeCostTracker`\nto accumulate cost across a session as usage events stream in.\n\n```typescript\nimport { calculateRealtimeCost } from \"ai-sdk-cost-calculator\";\n\nconst cost = calculateRealtimeCost({\n  model: \"gemini-3.1-flash-live-preview\",\n  usage: {\n    inputTextTokens: 1_000,\n    inputAudioTokens: 12_000,   // billed at the audio input rate ($3/1M)\n    inputImageTokens: 500,      // billed at the image input rate ($1/1M)\n    outputTextTokens: 800,\n    outputAudioTokens: 6_000,   // billed at the audio output rate ($12/1M)\n  },\n  webSearchRequests: 3,         // Google Search grounding ($14/1k)\n});\n\nconsole.log(cost.audioInputCost, cost.audioOutputCost, cost.totalCost);\n```\n\n### Per-minute billing\n\nLive APIs may bill audio and image/video by wall-clock minutes instead of\ntokens. Supply the `*Minutes` fields and the matching modality is billed at\n`minutes × rate`. Still pass the modality token counts so those tokens are\nexcluded from the text charge.\n\n```typescript\nconst cost = calculateRealtimeCost({\n  model: \"gemini-3.1-flash-live-preview\",\n  usage: {\n    inputAudioTokens: 100_000,\n    inputAudioMinutes: 10,      // 10 min × $0.005 = $0.05 (instead of per-token)\n    outputAudioTokens: 50_000,\n    outputAudioMinutes: 5,      // 5 min × $0.018 = $0.09\n  },\n});\n```\n\n### Session tracking\n\n```typescript\nimport { createRealtimeCostTracker } from \"ai-sdk-cost-calculator\";\n\nconst tracker = createRealtimeCostTracker({\n  model: \"gpt-realtime\",\n  costMultiplier: 1.2, // optional markup\n});\n\n// Feed each realtime usage event (a delta) as it arrives:\ntracker.addUsage({ inputAudioTokens: 2_000, outputAudioTokens: 1_000 });\ntracker.addUsage({ inputAudioTokens: 1_500, outputAudioTokens: 800 });\n\nconsole.log(tracker.getTotalCost().totalCost);\nconsole.log(tracker.getTotalUsage()); // accumulated per-modality tokens/minutes\n```\n\nWire it into the AI SDK realtime hook by forwarding usage events from the\nsession to `tracker.addUsage`.\n\n**Realtime models with modality pricing**: `gemini-3.1-flash-live-preview`,\n`gemini-2.5-flash-native-audio-preview-12-2025`, `gemini-3.5-live-translate-preview`,\n`gpt-realtime`, `gpt-realtime-2`, `gpt-realtime-mini`, `gpt-4o-realtime-preview`,\n`grok-voice` (pricing unconfirmed).\n\n## Embeddings\n\n`embed()` and `embedMany()` report usage as `{ tokens }` (AI SDK\n`EmbeddingModelUsage`), a shape `calculateCost` cannot price. Use\n`calculateEmbeddingCost` — embeddings are billed input-only.\n\n```typescript\nimport { embedMany } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport { calculateEmbeddingCost } from \"ai-sdk-cost-calculator\";\n\nconst { embeddings, usage } = await embedMany({\n  model: openai.textEmbedding(\"text-embedding-3-small\"),\n  values: chunks,\n});\n\nconst cost = calculateEmbeddingCost({\n  model: \"text-embedding-3-small\",\n  usage, // or a raw token count\n});\nconsole.log(cost.totalCost);\n```\n\nAccumulate across many calls with `createEmbeddingCostTracker`:\n\n```typescript\nimport { createEmbeddingCostTracker } from \"ai-sdk-cost-calculator\";\n\nconst tracker = createEmbeddingCostTracker({ model: \"text-embedding-3-small\" });\ntracker.addUsage(result1.usage);\ntracker.addUsage(result2.usage);\nconsole.log(tracker.getTotalCost().totalCost, tracker.getTotalTokens());\n```\n\n**Embedding models with pricing**: OpenAI `text-embedding-3-small` /\n`text-embedding-3-large` / `text-embedding-ada-002`, Google `gemini-embedding-2`,\nCohere `embed-v4.0` / `embed-english-v3.0` / `embed-multilingual-v3.0`, Mistral\n`mistral-embed` / `codestral-embed`, Perplexity `pplx-embed-*`.\n\nCohere `embed-v5.0-pro` / `embed-v5.0-fast` were\n[released on 2026-09-30](https://docs.cohere.com/changelog/embed-v5).\nTheir public [pricing page](https://cohere.com/pricing) lists instance rates,\nwithout a verified per-token API rate. Pass your contracted token rate via\n`customPricing` to `calculateEmbeddingCost()` for these models.\n\n## Speech (TTS) & Transcription (STT)\n\n`generateSpeech()` and `transcribe()` results carry no `usage` object, so cost\nis derived from the input. TTS is billed per input character (`tts-1`) or per\ntoken (`gpt-4o-mini-tts`); transcription is billed per minute of audio\n(`whisper-1`, using the result's `durationInSeconds`) or per token\n(`gpt-4o-transcribe`).\n\n```typescript\nimport { generateSpeech, transcribe } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport {\n  calculateSpeechCost,\n  calculateTranscriptionCost,\n} from \"ai-sdk-cost-calculator\";\n\n// Text-to-speech — billed per input character\nconst text = \"Hello, world!\";\nawait generateSpeech({ model: openai.speech(\"tts-1\"), text });\nconst ttsCost = calculateSpeechCost({ model: \"tts-1\", text });\n\n// Speech-to-text — billed per minute of audio\nconst transcript = await transcribe({\n  model: openai.transcription(\"whisper-1\"),\n  audio,\n});\nconst sttCost = calculateTranscriptionCost({\n  model: \"whisper-1\",\n  durationInSeconds: transcript.durationInSeconds,\n});\n```\n\nUse `createSpeechCostTracker` / `createTranscriptionCostTracker` to accumulate\nacross many calls.\n\n**Models with pricing**: OpenAI `tts-1` / `tts-1-hd` / `gpt-4o-mini-tts`,\n`whisper-1` / `gpt-4o-transcribe` / `gpt-4o-mini-transcribe`, Groq\n`whisper-large-v3` / `whisper-large-v3-turbo`, Google Gemini TTS models,\nQwen Audio 3.1 ASR Flash / Filetrans / Message / Streaming.\n\nGemini 3.8 Flash TTS and Flash-Lite TTS accept `textTokens` and `audioTokens`\nin `calculateSpeechCost()`. Standard prices are $0.50/1M text input and $9/$6\nper 1M audio output tokens; `-batch` entries use half these token rates.\nCached input costs $0.125/1M ($0.0625 in batch), with $0.50/1M token-hours\nstorage. Use `calculateCost()` with token details and `cacheStorageTokenHours`\nwhen billing caching. These introductory rates last through 2026-12-31;\npublished rates double on 2027-01-01 and must be overridden or updated then.\n[Google pricing](https://ai.google.dev/gemini-api/docs/pricing), verified 2026-10-01.\n\n## Video Generation\n\n`experimental_generateVideo()` returns no `usage` — video length lives in\n`providerMetadata`. Cost is billed per second (Google Veo) or per video, from\nthe `duration` and `n` you requested.\n\n```typescript\nimport { experimental_generateVideo as generateVideo } from \"ai\";\nimport { vertex } from \"@ai-sdk/google-vertex\";\nimport { calculateVideoCost } from \"ai-sdk-cost-calculator\";\n\nconst { videos } = await generateVideo({\n  model: vertex.video(\"veo-3.0-generate-001\"),\n  prompt: \"A cat walking on a treadmill\",\n  duration: 8,\n});\n\nconst cost = calculateVideoCost({\n  model: \"veo-3.0-generate-001\",\n  seconds: 8,\n  videos: videos.length,\n});\n```\n\nUse `createVideoCostTracker` to accumulate across calls, and `customPricing`\n(with `videoGenerationPerSecond` or `videoGenerationPerVideo`) for models not\nin the registry.\n\n**Models with pricing**: Google `veo-2.0-generate-001` ($0.35/s), `veo-3.0` /\n`veo-3.1` (`-generate-001` $0.40/s, `-fast-generate-001` $0.15/s).\n\n## API Reference\n\n### `calculateCost(options)`\n\nCalculate the cost for a single API request.\n\n```typescript\nimport { calculateCost } from \"ai-sdk-cost-calculator\";\n\nconst cost = calculateCost({\n  model: \"claude-sonnet-4-5\",\n  usage: {\n    inputTokens: 1000,\n    outputTokens: 500,\n    inputTokenDetails: {\n      noCacheTokens: 700,\n      cacheReadTokens: 200,\n      cacheWriteTokens: 100,\n    },\n    outputTokenDetails: {\n      textTokens: 500,\n      reasoningTokens: 0,\n    },\n  },\n  webSearchRequests: 5,\n});\n```\n\n#### Options\n\n| Property             | Type                 | Required | Description                                                |\n| -------------------- | -------------------- | -------- | ---------------------------------------------------------- |\n| `model`              | `string`             | Yes      | Model identifier (e.g., `\"gpt-4o\"`, `\"claude-sonnet-4-5\"`) |\n| `usage`              | `LanguageModelUsage` | Yes      | Token usage from AI SDK                                    |\n| `customPricing`      | `ModelPricing`       | No       | Override default pricing                                   |\n| `webSearchRequests`  | `number`             | No       | Number of web search requests                              |\n| `googleMapsRequests` | `number`             | No       | Number of Google Maps API requests                         |\n\n#### Return Value: `CostBreakdown`\n\n| Property         | Type      | Description                                  |\n| ---------------- | --------- | -------------------------------------------- |\n| `inputCost`      | `number`  | Cost for input tokens (excluding cache)      |\n| `outputCost`     | `number`  | Cost for output tokens (excluding reasoning) |\n| `cacheReadCost`  | `number`  | Cost for cached input tokens                 |\n| `cacheWriteCost` | `number`  | Cost for writing to cache                    |\n| `reasoningCost`  | `number`  | Cost for reasoning tokens                    |\n| `webSearchCost`  | `number`  | Cost for web search requests                 |\n| `googleMapsCost` | `number`  | Cost for Google Maps API requests            |\n| `totalCost`      | `number`  | Sum of all costs                             |\n| `currency`       | `\"USD\"`   | Always USD                                   |\n| `isLongContext`  | `boolean` | Whether long context pricing was applied     |\n\n### `createTracker(options?)`\n\nCreate a multi-model cost tracker.\n\n```typescript\nimport { createTracker } from \"ai-sdk-cost-calculator\";\n\nconst tracker = createTracker({\n  customPricing: {\n    \"my-model\": { inputPer1MTokens: 1, outputPer1MTokens: 2 },\n  },\n  onCost: (model, cost) => console.log(model, cost.totalCost),\n});\n\n// Methods\ntracker.onFinish(model, callback?, options?);  // Create onFinish callback\ntracker.add(model, usage, options?);           // Add usage, returns CostBreakdown\ntracker.getModel(model);                       // Get ModelCostSummary for a model\ntracker.getModels();                           // Get all tracked model names\ntracker.getAllCosts();                         // Get all ModelCostSummary[]\ntracker.getTotal();                            // Get total CostBreakdown\ntracker.getTotalRequestCount();                // Get total request count\ntracker.resetModel(model);                     // Reset specific model\ntracker.reset();                               // Reset all\n```\n\n### `createCostTracker(options)`\n\nTrack cumulative costs for a single model.\n\n```typescript\nimport { createCostTracker } from \"ai-sdk-cost-calculator\";\n\nconst tracker = createCostTracker({ model: \"gpt-4o\" });\n\ntracker.addUsage(result1.usage);\ntracker.addUsage(result2.usage);\n\nconsole.log(tracker.getTotalCost().totalCost);\ntracker.reset();\n```\n\n### `withCost(model, callback?, options?)`\n\nCreate an `onFinish` callback wrapper that adds cost calculation.\n\n```typescript\nimport { withCost } from \"ai-sdk-cost-calculator\";\n\nawait generateText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Hello!\",\n  onFinish: withCost(\"gpt-4o\", ({ cost, usage, text }) => {\n    console.log(`Cost: $${cost.totalCost}`);\n  }),\n});\n```\n\n| Parameter  | Type                      | Required | Description                          |\n| ---------- | ------------------------- | -------- | ------------------------------------ |\n| `model`    | `LanguageModel \\| string` | Yes      | Model ID or AI SDK model instance    |\n| `callback` | `function`                | No       | Called with result + cost breakdown  |\n| `options`  | `CostAwareOptions`        | No       | Custom pricing, web search, onCost   |\n\n### `getCost(model, usage, options?)`\n\nOne-shot cost calculation from AI SDK result.\n\n```typescript\nimport { getCost } from \"ai-sdk-cost-calculator\";\n\nconst result = await generateText({ model: openai(\"gpt-4o\"), prompt: \"Hello!\" });\nconst cost = getCost(\"gpt-4o\", result.usage);\n// or: getCost(openai(\"gpt-4o\"), result.usage)\n```\n\n| Parameter | Type                      | Required | Description                         |\n| --------- | ------------------------- | -------- | ----------------------------------- |\n| `model`   | `LanguageModel \\| string` | Yes      | Model ID or AI SDK model instance   |\n| `usage`   | `LanguageModelUsage`      | Yes      | Token usage from AI SDK             |\n| `options` | `CostAwareOptions`        | No       | Custom pricing, web search, onCost  |\n\n### `createCostAwareAI(options?)`\n\nCreate a cost-tracking helper for use across multiple AI SDK calls.\n\n```typescript\nimport { createCostAwareAI } from \"ai-sdk-cost-calculator\";\n\nconst ai = createCostAwareAI({\n  customPricing: { \"my-model\": { inputPer1MTokens: 1, outputPer1MTokens: 2 } },\n  onCost: (model, cost, usage) => console.log(`[${model}] $${cost.totalCost}`),\n});\n\n// Use with onFinish\nawait generateText({\n  model: openai(\"gpt-4o\"),\n  onFinish: ai.onFinish(\"gpt-4o\"),\n});\n\n// Or calculate directly\nconst cost = ai.calculate(\"gpt-4o\", result.usage);\n\n// Methods\nai.onFinish(model, callback?, options?);  // Create onFinish callback\nai.calculate(model, usage, options?);     // Calculate and track cost\nai.getModel(model);                       // Get CostBreakdown for a model\nai.getModels();                           // Get all tracked model names\nai.getTotal();                            // Get total CostBreakdown\nai.getRequestCount();                     // Get total request count\nai.reset();                               // Reset all tracking\n```\n\n### `getModelId(model)`\n\nExtract model ID from AI SDK model or string.\n\n```typescript\nimport { getModelId } from \"ai-sdk-cost-calculator\";\nimport { openai } from \"@ai-sdk/openai\";\n\ngetModelId(\"gpt-4o\");           // \"gpt-4o\"\ngetModelId(openai(\"gpt-4o\"));   // \"gpt-4o\"\n```\n\n### `formatCost(cost, decimals?)`\n\nFormat a cost value as a currency string.\n\n```typescript\nformatCost(0.0015);      // \"$0.001500\"\nformatCost(0.0015, 4);   // \"$0.0015\"\n```\n\n### `formatCostBreakdown(breakdown, decimals?)`\n\nFormat a full cost breakdown as a multi-line string.\n\n```typescript\nconst output = formatCostBreakdown(cost);\n// Input:        $0.002400\n// Cache Read:   $0.000060\n// Output:       $0.007500\n// Web Search:   $0.050000\n// Google Maps:  $0.007000\n// Total:        $0.066960\n```\n\n### `calculateStreamCost(streamResult, options)`\n\nCalculate cost from a streaming response.\n\n```typescript\nimport { streamText } from \"ai\";\nimport { calculateStreamCost, formatCost } from \"ai-sdk-cost-calculator\";\n\nconst stream = await streamText({\n  model: openai(\"gpt-4o\"),\n  prompt: \"Write a haiku\",\n});\n\nconst cost = await calculateStreamCost(stream, {\n  model: \"gpt-4o\",\n  onCost: (cost, usage) => {\n    console.log(`Stream completed: ${formatCost(cost.totalCost)}`);\n  },\n});\n```\n\n### `detectRequestsFromResult(result, options?)`\n\nDetect web search and Google Maps tool calls from an AI SDK result.\n\n```typescript\nimport { detectRequestsFromResult } from \"ai-sdk-cost-calculator\";\n\nconst result = await generateText({\n  model: google(\"gemini-2.0-flash\"),\n  prompt: \"Find restaurants\",\n  tools: { web_search: searchTool, places: placesTool },\n});\n\n// Pass `model` so Google Search grounding is billed per the model's family\n// (Gemini 3 = per query, Gemini 2.5/2.0/1.5 + Vertex = per grounded prompt).\nconst { webSearchRequests, googleMapsRequests } = detectRequestsFromResult(result, {\n  model: \"gemini-2.0-flash\",\n});\n\n// With custom tool names (added to defaults)\nconst detected = detectRequestsFromResult(result, {\n  model: \"gemini-2.0-flash\",\n  webSearchTools: [\"my_search\", \"custom_tavily\"],\n  googleMapsTools: [\"location_finder\"],\n});\n```\n\n| Parameter              | Type                  | Required | Description                                |\n| ---------------------- | --------------------- | -------- | ------------------------------------------ |\n| `result`               | `ResultWithToolCalls` | Yes      | AI SDK result with toolCalls/steps         |\n| `options.model`            | `LanguageModel \\| string` | No   | Model id — required for correct grounding billing |\n| `options.webSearchTools`   | `string[]`        | No       | Additional tool names to count as search   |\n| `options.googleMapsTools`  | `string[]`        | No       | Additional tool names to count as maps     |\n\n### `withDetectedRequests(result, options?)`\n\nConvenience wrapper that returns detected requests for spreading into `calculateCost`.\n\n```typescript\nimport { withDetectedRequests, calculateCost } from \"ai-sdk-cost-calculator\";\n\nconst cost = calculateCost({\n  model: \"gemini-2.0-flash\",\n  usage: result.usage,\n  ...withDetectedRequests(result, { model: \"gemini-2.0-flash\" }),\n});\n\n// With custom tool names\nconst cost2 = calculateCost({\n  model: \"gemini-2.0-flash\",\n  usage: result.usage,\n  ...withDetectedRequests(result, {\n    model: \"gemini-2.0-flash\",\n    webSearchTools: [\"my_search\"],\n  }),\n});\n```\n\n## Supported Models\n\n### OpenAI\n\n- GPT-6 Astra, Sol, Luna (including cache reads/writes and >272K long context pricing)\n- GPT-6.1 Sol ($2/$10 input/output, $0.10 cached input, $2.50 cache write;\n  >272K uses $4/$15, $0.20 cached input, $5 cache write per 1M tokens)\n- GPT-Live 1 (session duration billing)\n- GPT-5.6 Sol, Terra, Luna, Cyber; `gpt-5.6` and Daybreak aliases\n- GPT-5.5, GPT-5.4, GPT-5.2, GPT-5.1, GPT-5 and their registered variants\n- GPT Image 2.5 Sunburst / Flare, GPT Image 2 / 1.5 / 1 / 1 Mini, ChatGPT Image\n- GPT-4o, GPT-4o-mini\n- GPT-4.1, GPT-4.1-mini, GPT-4.1-nano\n- GPT-4 Turbo, GPT-4, GPT-4-32k\n- GPT-3.5 Turbo\n- o1, o1-mini, o1-pro, o1-preview\n- o3, o3-mini, o3-pro\n- o4-mini\n\n### Anthropic\n\n- Claude Fable 5.1 / 5, Mythos 5.1 / 5 (Fable 5.1 and Mythos 5.1 use the\n  0.025x cache-hit rate)\n- Claude Opus 5.5 (0.05x cache-hit rate), Opus 5, Opus 4.8, Sonnet 5\n- Claude Sonnet 5.5 ($2/$10 input/output, $0.20 cache read, $2.50 cache write;\n  full 1M context at standard rates)\n- Claude Haiku 5.5 ($0.10/$0.50 input/output; prompts over 100K tokens bill\n  $0.50/$2.50)\n- Claude Opus 4.5, Sonnet 4.5, Haiku 4.5\n- Claude Opus 4.1, Sonnet 4, Opus 4\n- Claude 3.5 Sonnet, 3.5 Haiku\n- Claude 3 Opus, 3 Sonnet, 3 Haiku\n- All dated variants (e.g., `claude-3-5-sonnet-20241022`)\n\n### Google Gemini\n\n- Gemini 3.8 Flash, 3.8 Live, 3.8 Live Extended Thinking\n- Gemini 3.8 Flash TTS / Flash-Lite TTS, including batch pricing\n- Gemini 3.5 Transcribe / Transcribe Live, Gemini Omni 1.1 Flash\n- Gemini 3 Pro, 3 Flash\n- Gemini 2.5 Pro, 2.5 Flash, 2.5 Flash-Lite\n- Gemini 2.0 Flash, 2.0 Flash-Lite\n- Gemini 1.5 Pro, 1.5 Flash, 1.5 Flash-8B\n\n### xAI Grok\n\n- Grok 4.7, 4.6, 4.5, 4.3, and 4.20\n- Grok Build 0.1\n- Grok Imagine Image 2.0 and Grok Voice Transcribe 2.0 / 1.0\n- Grok Voice Think Fast 2.0 (`grok-voice-latest`)\n- Grok 4, Grok 4-0709\n- Grok 4 Fast (reasoning/non-reasoning)\n- Grok 4.1 Fast (reasoning/non-reasoning)\n- Grok Code Fast\n- Grok 3, Grok 3-mini\n- Grok 2, Grok 2 Vision\n\nGrok 4.7 standard pricing is $2 input / $6 output / $0.50 cached input per 1M\ntokens. At **200,000 or more input tokens**, rates are $4 / $12 / $1 for the\nwhole request, including reasoning output. These are global endpoint rates;\nregional and priority premiums are not applied automatically. Grok 4.7 Fast\nis only available through Cursor and Grok Build, without a public xAI API model\nID. Sources: [API pricing](https://docs.x.ai/developers/pricing) and\n[release notes](https://docs.x.ai/developers/release-notes), verified 2026-09-22.\n\n### DeepSeek (15 models)\n\n- DeepSeek V4.1 Flash (`deepseek-flash`, `deepseek-v4.1-flash`, and the legacy\n  `deepseek-v4-flash` / `deepseek-v4-flash-vision-exp` names)\n- DeepSeek V4 Pro route (served and billed as V4.1 Flash since 2026-09-14)\n- DeepSeek Chat (V3, V3.2)\n- DeepSeek Reasoner (R1)\n- DeepSeek R1 Distill variants\n- DeepSeek Coder\n\nDeepSeek rates are the peak-hour prices (01:00-04:00 and 06:00-10:00 UTC,\nMonday-Friday). Off-peak requests are billed at 50% of these rates.\n\n### Qwen, GLM, and other providers\n\n- Qwen3.8 Max / Flash (including `qwen3.8-max-0902`), Qwen3.7 Max / Plus, and the Qwen3 family\n- Qwen3.8 2.4T-A95B / 27B, Omni Flash / Omni Flash Realtime\n- Qwen Audio 3.1 Realtime Plus and ASR Flash / Filetrans / Message / Streaming\n- `decision-model-preview` (currently free)\n- GLM-5.3, GLM-5.3-Flash / FlashX, GLM-OCR, and the GLM-5 / 4.x families\n- Mistral-hosted `zai-glm-5-3` (Mistral cache rates) and `labs-leanstral-1-5`\n- Mistral, Groq, Cerebras, Cohere, Together, Fireworks, Moonshot, OpenRouter\n\nQwen additions use the International/Singapore endpoint rates, verified\n2026-10-01 against [Model Studio pricing](https://www.alibabacloud.com/help/en/model-studio/model-pricing).\nOmni Realtime bills text and audio output separately. Qwen3.8 27B defaults\nto explicit caching ($0.05 read / $0.625 write per 1M); use `customPricing`\nwith a $0.10 cache-read rate for implicit caching. Qwen3.8 2.4T-A95B cache-hit\nrates are console-only, so cached requests require `customPricing` for an exact\ncost; the default falls back to the full input rate. See\n[cache billing](https://www.alibabacloud.com/help/en/model-studio/context-cache).\n\n### Perplexity (10 models)\n\n- Sonar, Sonar Small\n- Sonar Pro\n- Sonar Reasoning, Sonar Reasoning Pro\n- Sonar Deep Research\n\n### Recent multimodal models (verified 2026-09-22)\n\n- `gpt-live-1`: pass `usage: { sessionDurationSeconds: 90 }` to\n  `calculateRealtimeCost` for $0.075 in `sessionCost` ($0.05/minute, prorated\n  by seconds). Delegated backend model/tool usage is billed separately.\n  [OpenAI pricing](https://developers.openai.com/api/docs/pricing).\n- `grok-voice-think-fast-2.0` / `grok-voice-latest`: pass `inputAudioMinutes`,\n  `outputAudioMinutes`, and `inputTextMessages` in realtime `usage`.\n  Audio sent and received each costs $0.08/minute; billable text events cost\n  $0.004 each. Exclude audio and function-call-output events from the message\n  count. [xAI speech pricing](https://docs.x.ai/developers/models/speech-to-speech).\n- `grok-imagine-image-2.0`: use `imageGenerations`, `imageInputs` (reference\n  images), and `imageSize` such as `low-1K` or `medium-2K`. Default generation\n  is low/1K; with `imageInputs > 0`, the default is medium/1K, matching auto\n  quality for edits. Set `imageSize` for other served qualities/resolutions.\n  [xAI image model](https://docs.x.ai/developers/models/grok-imagine-image-2.0).\n- `grok-voice-transcribe-2.0` / `1.0`: `calculateTranscriptionCost` accepts\n  `durationInSeconds` and `mode: \"batch\"` (default REST) or `\"streaming\"`.\n  Prices are $0.10/hour and $0.20/hour respectively. [xAI pricing](https://docs.x.ai/developers/pricing).\n- `gemini-3.5-transcribe` / `gemini-3.5-transcribe-live`: pass `audioTokens`\n  and `textTokens` to `calculateTranscriptionCost`. Their advertised per-minute\n  costs are estimates; actual token usage determines the bill.\n- `gemini-omni-1.1-flash`: pass `videoOutputTokens` (included in\n  `usage.outputTokens`) to `calculateCost` for mixed text/video output.\n  `calculateVideoCost({ model, seconds })` estimates 720p video output only at\n  5,792 tokens/second; calculate input and text separately in that mode.\n  [Google pricing](https://ai.google.dev/gemini-api/docs/pricing).\n\nThe September audit also checked the current OpenAI, Anthropic, Kimi, Qwen,\nGLM, DeepSeek, Mistral, and Perplexity catalogs. Configurable agents such as\nAntigravity are priced using their underlying model, not a fixed agent rate.\n\n## Long Context Pricing\n\nSome models have tiered pricing based on input token count:\n\n| Model             | Threshold | Standard    | Long Context |\n| ----------------- | --------- | ----------- | ------------ |\n| GPT-6 Astra       | 272K      | $10/$50     | $20/$75      |\n| GPT-6 Sol         | 272K      | $2/$10      | $4/$15       |\n| GPT-6.1 Sol       | 272K      | $2/$10      | $4/$15       |\n| GPT-6 Luna        | 272K      | $0.10/$0.50 | $0.20/$0.75  |\n| Claude Sonnet 4.5 | 200K      | $3/$15      | $6/$22.50    |\n| Claude Haiku 5.5  | 100K      | $0.10/$0.50 | $0.50/$2.50  |\n| Gemini 2.5 Pro    | 200K      | $1.25/$10   | $2.50/$15    |\n| Gemini 1.5 Pro    | 128K      | $1.25/$5    | $2.50/$10    |\n| Grok 4 Fast       | 128K      | $0.20/$0.50 | $0.40/$1.00  |\n| Grok 4.7          | ≥200K     | $2/$6       | $4/$12       |\n\nThe calculator automatically applies the correct pricing tier based on input token count.\n\n## Custom Pricing\n\nOverride default pricing for any model:\n\n```typescript\nconst cost = calculateCost({\n  model: \"gpt-4o\",\n  usage: result.usage,\n  customPricing: {\n    inputPer1MTokens: 2.0,\n    outputPer1MTokens: 8.0,\n    cacheReadPer1MTokens: 1.0,\n    webSearchPer1kRequests: 15,\n    googleMapsPer1kRequests: 10,\n  },\n});\n```\n\n## TypeScript Types\n\n```typescript\nimport type {\n  // Core\n  CostBreakdown,\n  CalculateCostOptions,\n  ModelPricing,\n  ProviderPricing,\n  Provider,\n  // Single model tracker\n  CostTracker,\n  CreateCostTrackerOptions,\n  StreamCostOptions,\n  // Multi-model tracker\n  MultiModelCostTracker,\n  CreateMultiModelTrackerOptions,\n  ModelCostSummary,\n  AddUsageOptions,\n  // AI SDK integration\n  CostAwareAI,\n  CreateCostAwareAIOptions,\n  CostAwareOptions,\n  ResultWithCost,\n  FinishResultWithCost,\n  // Auto-detection\n  DetectOptions,\n  DetectedRequests,\n  ResultWithToolCalls,\n} from \"ai-sdk-cost-calculator\";\n```\n\n## Pricing Sources\n\nPricing data is sourced from official provider documentation:\n\n- [OpenAI API Pricing](https://developers.openai.com/api/docs/pricing)\n- [Anthropic Claude Pricing](https://www.anthropic.com/pricing)\n- [Google Gemini API Pricing](https://ai.google.dev/gemini-api/docs/pricing)\n- [xAI Grok API](https://docs.x.ai/docs/models)\n- [DeepSeek API Pricing](https://api-docs.deepseek.com/quick_start/pricing)\n- [Perplexity API Pricing](https://docs.perplexity.ai/getting-started/pricing)\n\n**Note**: Prices may change. Please verify current pricing with official sources for production use.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}