Per New York State's Online Pre-Licensing Course Pilot Policies, you must be at least 18 years old to take the course online.
If you are under the age of 18, you will have to take the course in a physical or virtual classroom setting.
(You still have to be at least 16 years old to take it in a classroom setting)
For more information on the different ways you take the Pre-Licensing course, go
HERE.