What are input and output tokens, and why are they priced differently?
BeginnerConceptLLM fundamentals
Answer
Input tokens are what you send (prompt, history, documents); output tokens are what the model generates. Output tokens are usually several times more expensive because they are produced one at a time and need more compute. Long system prompts and big retrieved contexts quietly drive input cost, while verbose answers drive output cost.