{"head":{"title":"LLM API Cost Calculator: Compare Models | OceanLab","description":"Compare LLM API costs across Claude, OpenAI, Gemini, DeepSeek and more from your token volume and mix. Prices from official pages, each with a date.","canonical":"https://oceanlab.in/tools/llm-api-cost-calculator"},"tool":{"slug":"llm-api-cost-calculator","path":"/tools/llm-api-cost-calculator","name":"LLM API cost","h1":"LLM API cost calculator","lede":"Enter your monthly tokens and the input, cached and output mix, and compare what each model would cost.","category":"costs","categoryTitle":"Cost calculators","method":["Cost = tokens × (input share × input price + cached share × cached input price + output share × output price) ÷ 1,000,000.","Prices are standard pay-as-you-go rates for short context, read from each provider's own pricing page on the date shown. Cache write charges and batch discounts are not included.","The default mix of 37% input, 58% cached input and 5% output is an example from one production workload. Use your own split: the cheapest model can change with the mix alone."],"sources":[{"label":"Anthropic API pricing","url":"https://platform.claude.com/docs/en/about-claude/pricing","checkedAt":"2026-10-23"},{"label":"OpenAI API pricing","url":"https://developers.openai.com/api/docs/pricing","checkedAt":"2026-10-23"},{"label":"Google API pricing","url":"https://ai.google.dev/gemini-api/docs/pricing","checkedAt":"2026-10-23"},{"label":"DeepSeek API pricing","url":"https://api-docs.deepseek.com/quick_start/pricing","checkedAt":"2026-10-23"},{"label":"MiniMax API pricing","url":"https://platform.minimax.io/docs/pricing/overview","checkedAt":"2026-10-23"},{"label":"ECB euro reference exchange rates (22 Oct 2026)","url":"https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html","checkedAt":"2026-10-23"}],"faq":[{"question":"Why does the token mix matter so much?","answer":"Input, cached input and output are priced differently. A model with cheap output but expensive cache reads can win or lose on the mix alone, so the ranking can flip."},{"question":"Where do the prices come from?","answer":"Each row links to the provider's official pricing page and shows the date it was checked. They are standard, short-context rates."},{"question":"Are batch and off-peak discounts included?","answer":"Off-peak pricing is included for providers that publish it, when you switch it on. Batch discounts and cache write charges are not modelled."},{"question":"Is anything I enter sent anywhere?","answer":"No. The tool runs in your browser and there is no sign-up. Nothing leaves the page unless you choose to email your result to OceanLab."}],"updatedAt":"2026-10-25"},"related":[{"href":"/tools/ai-automation-roi","label":"AI automation ROI","detail":"Put in one task your team does by hand and see the monthly saving, the payback period and the net result over three years."},{"href":"/tools/software-maintenance-cost","label":"Software maintenance cost","detail":"See what a product costs to keep running each year after launch, and which line grows fastest."},{"href":"/tools/eu-ai-act-risk-checker","label":"EU AI Act risk checker","detail":"Answer a few questions about your AI system to see its likely risk tier, what you would have to do, and from when."}],"studies":[{"meta":{"slug":"sonde","industry":"ai","projectType":"AI evaluation dashboard","country":"fr","tags":["ai","enterprise","insurtech"],"compliances":["EU AI Act","GDPR (Article 9 health data)","DORA","HDS health data hosting","ACPR AI governance","OpenTelemetry GenAI conventions"],"cover":{"src":"/case-studies/sonde/01-home.png","width":1440,"height":1000}},"text":{"en":{"title":"Sonde - LLM Evaluation and Observability Platform with Release Gates","description":"Designed and built a clickable LLM evaluation and observability platform for the AI team of a French health mutual: redacted production traces span by span, release gates that block a prompt or model change when quality regresses, alerts with owners and ageing, and the monitoring record its risk and compliance teams can show a supervisor.","category":"AI & Automation / LLM Evaluation","client":"Mutuelle Serpolet"}}},{"meta":{"slug":"kaganek","industry":"ai","projectType":"RAG knowledge assistant","country":"pl","tags":["ai","enterprise"],"compliances":["GDPR","EU AI Act","ISO/IEC 27001","ISO/IEC 42001","Polish labour law"],"cover":{"src":"/case-studies/kaganek/01-home.png","width":1440,"height":1000}},"text":{"en":{"title":"Kaganek - RAG Knowledge Assistant with Citations and Permissions Intact","description":"Designed and built a clickable internal knowledge assistant for a Kraków consulting engineering firm: staff ask in Polish or English and get answers built only from the firm's own SharePoint, Confluence, Google Drive and file share documents, with every claim linked to its source passage and an honest \"I don't know\" when the sources are weak.","category":"AI Agents & Automation / Knowledge Assistant","client":"Modrzew Engineering"}}},{"meta":{"slug":"tekm","industry":"ai","projectType":"Workflow automation builder","country":"lt","tags":["ai","saas","enterprise"],"compliances":["GDPR","EU AI Act","EU Data Act","EU SCCs and EU-US DPF","SOC 2","OAuth 2.0 with PKCE","EU VAT (VIES)"],"cover":{"src":"/case-studies/tekm/01-home.png","width":1440,"height":1000}},"text":{"en":{"title":"Tekmė - No-Code Workflow Automation Builder with AI Steps","description":"Designed and built a clickable no-code automation builder for a Vilnius SaaS startup selling to EU operations teams: a node canvas with branches, error paths and AI steps that classify, extract, summarise or act as an agent, a cost estimate per run, and a run history where every step is recorded with personal data masked.","category":"AI Agents & Automation / Workflow Automation","client":"Vilkupis Labs"}}},{"meta":{"slug":"lektor","industry":"ai","projectType":"Code review agent","country":"ch","tags":["ai","enterprise","fintech"],"compliances":["Swiss Banking Act Art. 47","FINMA Circular 2023/1","FINMA Guidance 08/2024","revFADP","ArGV 3 Art. 26","OWASP Top 10","CWE"],"cover":{"src":"/case-studies/lektor/01-home.png","width":1440,"height":1000}},"text":{"en":{"title":"Lektor - AI Code Review Agent That Comments but Never Merges, Hosted Inside a Private Bank","description":"Designed and built a clickable AI code review agent for the engineering team of a Zurich private bank: it reviews every merge request on GitLab and GitHub Enterprise with models hosted in the bank's own tenancy, masks client data and secrets before any model sees the diff, posts inline findings with rule, CWE and suggested patch, and never approves or merges.","category":"AI Agents & Automation / Code Review Agent","client":"Brunnacher & Cie AG"}}}],"more":[{"href":"/case-studies/industry/ai","label":"AI agents & automation case studies","detail":"Every OceanLab product build in AI agents & automation."},{"href":"/case-studies","label":"All case studies","detail":"Every OceanLab product build."},{"href":"/embedded-engineers","label":"Embedded engineers","detail":"OceanLab engineers inside your team on a monthly retainer."}],"today":"2026-10-25"}