cost-estimate
Estimate the USD cost of a prompt before sending it to Claude. Uses a heuristic (chars/4) with a ±30% range to return estimated input/output tokens and cost.
Instructions
Estima custo USD de um prompt ANTES de mandar para Claude. Heurística chars/4 com range ±30% (sem tokenizer real na v1.37.0 — debt em SKILL.md). Retorna estimated_input_tokens, estimated_output_tokens, estimated_usd, estimated_usd_range:[low,high], disclaimer. Triggers: "quanto vai custar", "estimativa de prompt", "estimate cost", "price this prompt".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Texto do prompt a estimar. | |
| model | No | Modelo alvo. Default: claude-sonnet-4-5. | |
| output_ratio | No | Multiplicador input → output esperado. Default: 3. | |
| chars_per_token | No | Override heurística. Default: 4. |