JSON, YAML or CSV: what a prompt costs
The same 100 rows cost up to 3.2 times more tokens depending on their format. Token-by-token splitting, six formats counted with four tokenizers, French versus English, the price of numbers and UUIDs, then 10 questions asked to a local model with each format.