AI Token Optimizer
AI Token Optimizer analyzes and optimizes text before it is sent to an LLM. It removes unnecessary whitespace, normalizes repeated characters and Unicode, expands contractions, and detects profanity. Choose whether detected profanity should be redacted, removed completely for greater token savings, or left unchanged. Every optimization response includes before-and-after character counts,…
AI Token Optimizer endpoints
| Method | Endpoint | Description |
|---|---|---|
| v1 | ||
| POST |
analyzeText /v1/analyze |
Identifies repeated characters, excess whitespace, contractions, and profane words before optimization. Use `estimated_waste_percent` with your model's input-token price to… |
| POST |
optimizeText /v1/optimize |
Returns optimized text and its estimated reduction percentage. Set `profanity_action` to: - `redact`: replace profanity with asterisks. - `remove`: remove profanity for maximum… |
AI Token Optimizer pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | 5 / minute |
|
| PRO | $9 / month | 20 / minute |
|