I work in the field. Generally, jobs that include AI development generally require advanced degrees and the vast majority require a PhD with peer reviewed publications in major conferences. You will be fighting an uphill battle if you don't have an advanced degree in mathematics or computer science. You also need to know calculus, linear algebra and statistics to understand how modern machine learning models work.
In short, while online courses can be perfectly effective, unless they're through an accredited higher education institution, I don't think it will help you compete with other applicants who have 8+ years of schooling and published papers.
That being said, Georgia Tech and the City University of New York both offer master's degrees in data science via remote master's programs where the courses happen after work hours and are meant to be completed while working full-time.