Prompting techniques and their token cost: system prompts, few-shot, chain-of-thought and injection
This story is from 2026-11-14. It is preserved in the archive; the latest stories are on the live feed.
Every word in a prompt is billed, so each technique has a token cost. Here is what the vendors and papers say, with counts I measured using OpenAI's o200k_base tokenizer. System prompts are billed on every request My 225-word support-bot prompt is 275 tokens. At 1,000 requests a day that is 8.25M i…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-14 00:17 · DEV Community — AI
Prompting techniques and their token cost: system prompts, few-shot, chain-of-thought and injection