The US star was fined for training, abuse of the racket and verbal abuse when he accused referee Carlos Ramos of being "a thief" during the stormy end of Saturday.
Williams was outraged by the training violation, although coach Patrick Mouratoglou, sitting in his box, admitted that he was training when he moved his hands.
That violation led to a $ 4,000 fine, while a second violation for racquet abuse, after he broke his racket after dropping his serve in the fifth game of the second set, cost him $ 3,000.
The second violation also cost him a point in the game, sparking his new verbal attack on Ramos, a violation of the code that entailed a $ 10,000 fine.
The violation of her third match code also cost her a game, putting Osaka on the verge of what would be a 6-2, 6-4 victory that made her the first Japanese player to win a Grand Slam title.