# Token Cost - 400+개 LLM의 토큰당 비용 계산하기

> Clean Markdown view of GeekNews topic #15421. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=15421](https://news.hada.io/topic?id=15421)
- GeekNews Markdown: [https://news.hada.io/topic/15421.md](https://news.hada.io/topic/15421.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2024-06-20T09:31:01+09:00
- Updated: 2024-06-20T09:31:01+09:00
- Original source: [github.com/AgentOps-AI](https://github.com/AgentOps-AI/tokencost)
- Points: 14
- Comments: 0

## Summary

최신 LLM API 사용 비용을 정확히 계산할 수 있도록, 각 LLM 제공사의 최신 모델과 가격을 추적하여 비용 효율적인 선택을 도와줍니다. 간단한 함수 하나로 자신의 시스템에 쉽게 연동할 수 있는 방법도 제공합니다.

## Topic Body

- 프롬프트 및 완성답변의 예상 비용을 계산하여 주요 LLM API를 사용하는 데 드는 비용을 계산  
- 각 LLM 제공사들의 최신 모델과 가격을 트래킹   
- 프롬프트 전송전 토큰수와 생성한 답변의 토큰수를 측정해서 각각 LLM들의 토큰비용으로 총액을 계산   
- 자신의 LLM 연동 시스템에 1개 함수만으로 붙여서 이용 가능

## Comments



_No public comments on this page._
