International Journal of Science and Society (IJSOC)
Vol 8 No 4 (2026): International Journal of Science and Society (IJSOC)

Optimizing Deepseek Chat API Costs Based on Log Pattern Analysis using Business Intelligence and CRISP-DM

Della Anissa Putri Widodo (Universitas Singaperbangsa Karawang, Indonesia)
Nono Heryana (Universitas Singaperbangsa Karawang, Indonesia)
Azhari Ali Ridha (Universitas Singaperbangsa Karawang, Indonesia)



Article Info

Publish Date
09 Oct 2026

Abstract

This study aims to analyze token usage and cost patterns of the DeepSeek Chat API and formulate cost optimization strategies based on historical log data. The study employs a Business Intelligence approach with the CRISP-DM framework through descriptive and diagnostic analysis of usage data from July 9 to November 30, 2025. The analysis covers token usage, cost, cost per token, usage patterns over time, correlation, and context caching. The results show a total usage of 81,612,706 tokens with a total cost of USD 11.212044 and an average daily usage of 562,846.25 tokens. The aggregate cost per million tokens was USD 0.137381, while the Pearson correlation between token usage and cost was 0.791494. Context caching analysis showed a cache hit rate of 83.97% and a cache miss rate of 16.03%. Based on the analysis, usage patterns with relatively higher costs can be identified to support token volume monitoring and the utilization of context caching as part of cost optimization strategies. The results are presented through a Business Intelligence dashboard as a tool for monitoring and evaluating DeepSeek Chat API usage.

Copyrights © 2026






Journal Info

Abbrev

ijsoc

Publisher

Subject

Materials Science & Nanotechnology Social Sciences

Description

International Journal of Science and Society (IJSOC) is open access and peer-reviewed journal with e-ISSN (2715-8780), IJSOC is an international journal devoted to the study of science and technology in a social context. It focuses on the way in which advances in science and technology influence ...