Flacco completed 21-of-33 passes with an interception and also ran for a score as the Ravens (7-2) established a new team record for most points scored in a game.
Torrey Smith led Baltimore's receiving corps with a pair of scoring receptions en route to 67 yards.
Dennis Pitta chipped in with five grabs for 67 yards and a score and Jacoby Jones added a 105-yard kickoff return for a score in the Ravens' second consecutive victory.
The Raiders (3-6), meanwhile, dropped their second in a row despite 368 aerial yards on 29-of-45 passing with two touchdowns and a pick-off from Carson Palmer.
Darrius Heyward-Bey and Denarius Moore each made a TD grab for Oakland.