lingo.dev run --estimate prices a run before it happens. The Lingo.dev CLI computes the same change-delta as a real run, prices it through your localization engine, prints a per-locale cost breakdown, and exits. Nothing is translated, written, or billed.
Estimating a run#
npx lingo.dev@latest run --estimateThe CLI prints a per-locale breakdown and a total:
[Estimate]
✔ Delta computed for 3 task(s)
› es: ~$0.04 (12,300 chars, ~3,075 tokens)
› de: ~$0.04 (12,300 chars, ~3,075 tokens)
› fr: ~$0.04 (12,300 chars, ~3,075 tokens)
✔ Estimated cost: ~$0.12 (estimate, not a quote — nothing was translated)By default, only pending content - the change-delta against i18n.lock - is priced. An empty delta prints $0.00 - nothing needs translation.
Full-project estimate#
Add --force to price every string, regardless of what is already translated:
npx lingo.dev@latest run --estimate --forceThis mirrors a run --force retranslation, so the estimate covers the whole project rather than just the delta.
Estimate vs. a real run#
run --estimate | run | |
|---|---|---|
| Computes the delta | Yes | Yes |
| Translates content | No | Yes |
| Writes target files | No | Yes |
| Billed | No | Yes |
Output fields#
| Field | Description |
|---|---|
chars | Translatable source characters in the delta for that locale. |
tokens | Estimated output tokens, derived from a chars-to-tokens heuristic. |
cost | Approximate cost for that locale. Summed into the total. |
Estimates are approximate, not a quote - actual cost depends on the model and the real token count. --estimate requires the Lingo.dev provider and cannot be combined with --watch or --frozen.
