Menu

What an LLM API call really costs: the formula and four levers that move the bill
📰

What an LLM API call really costs: the formula and four levers that move the bill

DEV Community: api·Createchz·5 days ago
#v6BVNAwA
#devtoapi#devto#dev#cost#tokens
Reading 0:00
15s threshold

Prices are quoted per million tokens, but the bill depends on how many tokens you send, how many you get back, and which pricing rules apply. Figures below were checked against the providers' own pages on 13 November 2026.

The formula

cost = input_tokens / 1e6 * input_price + output_tokens / 1e6 * output_price , times requests per day, times 30. A support bot sending 1,500 input and 400 output tokens, 1,000 times a day, on Claude Sonnet 5.5 ($2 in, $10 out per million) costs $210.00 a month ; GPT-6.1 Sol lists the same prices ( Anthropic pricing , OpenAI pricing ). You can reproduce it in an LLM API cost calculator .

Lever 1: output costs more

Across 65 models in our price table, output is 1.0x to 10.0x the input price, with a median of 5.0x.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.