A recent analysis reveals that markdown formatting, commonly used by LLMs, can significantly increase costs for API users, especially for short responses. While markdown syntax tokens are a small fraction of long outputs, they constitute a substantial portion of short answers, with table separators being particularly costly. The study suggests that explicitly instructing models via the system prompt to reply in plain text when markdown is not rendered can lead to cost savings, as the input tokens for this instruction are cheaper than the output tokens saved. AI
IMPACT Users can reduce API costs by instructing LLMs to output plain text for non-rendering interfaces.
RANK_REASON Analysis of LLM output formatting costs, not a direct release or industry-shaping event.
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →