llm-api-optimization
Installation
SKILL.md
LLM API optimisation
Verified 2026-07-29. Prices, multipliers and TTLs move constantly and differ per provider — every number below is a shape to reason with, and must be re-checked against current provider documentation before it goes in a budget.
1. The cost stack, in order of leverage
| Lever | Typical saving | Effort |
|---|---|---|
| Prompt caching | Up to ~90% on the repeated portion | Low — often a few lines |
| Batch processing | ~50% on both input and output | Low, if latency permits |
| Context engineering | 40–60% | Medium — ongoing discipline |
| Payload format | 20–50% on structured payloads | Low |
| Model routing | Large, task-dependent | Medium |