---
type: "post"
id: "a-habr-article-by-sopranodev-sets-out-a-74e414"
slug: "a-habr-article-by-sopranodev-sets-out-a-74e414"
title: "A Habr article by SopranoDev sets out a method for estimating the actual cost of an LLM API call rather than"
description: "A Habr article by SopranoDev sets out a method for estimating the actual cost of an LLM API call rather than multiplying a headline per-token price by an expected volume."
retrieval_nugget: "A Habr article by SopranoDev sets out a method for estimating the actual cost of an LLM API call rather than multiplying a headline per-token price by an expected volume."
published_at: "2026-10-25"
updated_at: "2026-10-25"
record_date: "2026-10-25"
date_kind: "published_at"
topics: ["anthropic","gemini"]
entities: ["OpenAI","Anthropic","Google","Gemini","OpenAI Chat Completions","OpenAI Responses","Anthropic Messages","Gemini generateContent"]
related_patterns: ["agent-economics-moves-to-completed-work"]
novelty_label: "new_angle"
what_changed: "Раскрывает практический способ считать фактическую стоимость вызова: учитывать кэш, reasoning-токены и длину контекста, а не только цену за токен."
prior_refs: ["memory:07d60fec-099d-8e94-acb8-3db6b8af6758","memory:531e8012-0674-8e8d-afd1-6394fe02b7db","memory:34ab0d0b-4f37-8573-a113-0588c51367eb"]
source_url: "https://habr.com/ru/articles/1098318?amp%3Butm_medium=rss&amp%3Butm_source=habrahabr"
source_urls: ["https://habr.com/ru/articles/1098318?amp%3Butm_medium=rss&amp%3Butm_source=habrahabr"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:a-habr-article-by-sopranodev-sets-out-a-74e414"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/a-habr-article-by-sopranodev-sets-out-a-74e414/","markdown":"https://newruntime.com/posts/a-habr-article-by-sopranodev-sets-out-a-74e414.md","json":"https://newruntime.com/posts/a-habr-article-by-sopranodev-sets-out-a-74e414.json"}
---

# A Habr article by SopranoDev sets out a method for estimating the actual cost of an LLM API call rather than

## Retrieval answer

A Habr article by SopranoDev sets out a method for estimating the actual cost of an LLM API call rather than multiplying a headline per-token price by an expected volume.

A Habr article by SopranoDev sets out a method for estimating the actual cost of an LLM API call rather than multiplying a headline per-token price by an expected volume.

Its formula separates uncached input, cached-input reads, cache writes, visible output, and reasoning tokens. The article says output is commonly priced four to eight times above input across the current offerings it reviewed from OpenAI, Anthropic, and Google. It also notes that cache-read discounts and cache-write prices can differ by provider and cache duration.

The piece compares usage fields across OpenAI Chat Completions and Responses, Anthropic Messages, and Gemini generateContent. For OpenAI and Gemini, cached tokens are included in the reported input total; Anthropic reports the post-cache input tail separately. It says reasoning tokens are included in output for OpenAI and Anthropic, while Gemini thought tokens must be added to candidate output tokens for a comparable calculation.

The source does not provide a universal bill estimate, benchmark a particular workload, or establish that one provider is cheaper. Its stated prices and conditions were checked on 18 October 2026 and may change.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Anthropic](https://newruntime.com/topics/anthropic.md): Explore the anthropic topic hub.
- topic hub: [Gemini](https://newruntime.com/topics/gemini.md): Explore the gemini topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
