# LLM cost calculator

> Estimate model cost using prices you enter.

[Open tool](https://www.toolcabana.com/ca/llm-cost) · [IA i indicacions](https://www.toolcabana.com/ca/category/ai-and-prompt-tools)

Tool ID: llm-cost. Requested language: ca. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

LLM cost calculator estimates API spend from token counts and per-million-token prices you enter. Set input and output tokens per request, input and output prices, the number of requests and a currency label, and get the cost per request, the total, and the separate input and output shares. Cached tokens, batch discounts, reasoning tokens and other fees are not modeled.

## Supported tasks (en)

Estimate model cost using prices you enter.

## Steps (en)

1. Enter the requested values in the settings panel.
2. Adjust the basic settings, then open Advanced mode for export and fine-tuning options. Custom settings stay active when the panel is closed.
3. Run llm cost calculator, review the output, then use the available copy or download controls.

## Settings

- Input tokens per request (en; key: inputTokens; type: number); minimum: 0
- Output tokens per request (en; key: outputTokens; type: number); minimum: 0
- Input price per 1 million tokens (en; key: inputPrice; type: number); minimum: 0
- Output price per 1 million tokens (en; key: outputPrice; type: number); minimum: 0
- Number of requests (en; key: requests; type: number); minimum: 1
- Currency label (en; key: currency; type: text)

## Limitations (en)

Use finite numbers, valid dates and the ranges shown by each control. Invalid values produce an error without a downloadable result.

## Example input

```text
Explain a complex topic using a concrete example and three practical steps.
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How do I calculate the cost of an LLM API call?

Cost per request is input tokens times the input price plus output tokens times the output price, divided by 1,000,000. The calculator does this, shows the per-request figure to six decimals, and multiplies by the number of requests for the total.

### Does the LLM cost calculator include current model prices?

No. It uses only the prices you type, with placeholder defaults of 1 per million input tokens and 4 per million output tokens. Copy current rates from your provider's pricing page, since prices change and differ by model.

### Can I show the LLM cost in euros or another currency?

Yes. The Currency label field, USD by default, is appended to the per-request and total figures. It is only a label and no exchange-rate conversion happens, so enter prices already expressed in that currency.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Use finite numbers, valid dates and the ranges shown by each control. Invalid values produce an error without a downloadable result.

## Related tools

- [LLM token counter](https://www.toolcabana.com/ca/token-counter)
- [Prompt comparison checklist](https://www.toolcabana.com/ca/prompt-checker)
