While the broad point that no, OpenAI and Anthropic are not losing money on inference, is almost certainly correct, the model itself is quite incomplete.
If you actually want to know, I recommend Inference economics of language models from Epoch AI, which is probably the best public model as of 2025-06.