User-9502429716400076078 gives a good answer for a top-flight researcher with a PhD in an in-demand specialty. Amounts like this are drawing the best people out of/away from academia. Kind of hard to argue with being able to do exactly what you want and get paid 40 times what you would be in academia, without the politics.
Realize that most people who are doing research in AI/ML are not making this kind of money. A strong researcher/engineer in industry might be making $250–500k, inclusive of stock & other direct compensation, and this is in an expensive market, like Silicon Valley or Seattle. That same person would make $150–200 in academia if they were tenure-line faculty at an R1. Salaries for PhD-holding CS faculty at other types of institutions can easily be in the $50,000 range.
If you are thinking about work as someone without a grad degree, the range isn’t huge. Software developers in general make more money. The biggest incomes come from startups that go public or get bought, but most startups fail, so that’s a high-risk, high (potential) reward situation. Beyond that, market forces dictate salaries, and while Silicon Valley salaries (like San Francisco, NYC, and Seattle) are high, so is cost of living. The best thing you can do is work for a well-paying employer in an inexpensive market.