Models
Transformer
The transformer is the neural network architecture behind essentially every current language model, built around a mechanism called attention.
Its defining property is that it processes an entire input in parallel rather than one token at a time, which is what made training on internet-scale data practical.
That parallelism applies to reading, not writing. Generation is still sequential — each output token requires a full pass — which is precisely why output tokens cost four to six times more than input tokens.
In practice
The architectural fact with a billing consequence: attention cost grows with the square of sequence length. That is why a prompt twice as long can take more than twice as long to process, why time to first token climbs with input size, and why prompt caching — which skips recomputing a prefix — saves latency as well as money.