# Measure text

Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment.

Use for deterministic document sizing and basic QA. Counts UTF-16 units, Unicode code points, UTF-8 bytes, whitespace, logical lines, blank-line-separated paragraphs, and word-like spans. Words use Unicode letters/numbers with internal apostrophes; this is not linguistic segmentation, token counting, or a readability score. Empty text has zero lines; a final newline adds an empty line.

Release: 0.29.0. Built: 2026-10-06T15:38:00Z.

## Choose for
- Measure deterministic Unicode and byte sizes with basic word-like counts.

## Outside this profile
- Model token counts, language-specific segmentation, or readability scoring.

Proposed nominal USD 0.003 per successful call; payer fees excluded. No verified runtime availability.

- [Exact release contract](/reference/services/text-metrics.json)
- [Input schema](/reference/schemas/text-metrics.input.json)
- [Output schema](/reference/schemas/text-metrics.output.json)
- [Fixed example](/reference/examples/text-metrics.json)
- [Complete HTML reference](/discover/tools/text-metrics)
