If AI has access to your child's photos, your privacy settings aren't strict enough. Don't post pics of your fucking children online, you fucking shitheads.
For the record, I'm willing to bet Apple and Google are training various AI models using photos on your phone, without your consent (or consent burried deep in a ToS.)
Didya really think Apple cared 'bout people having CSAM on their phones/icloud? (it does make an amazing excuse to scan every photograph you've ever taken or downloaded, though. any one who balks is immediately now protecting pedophiles. Apple, Google, they're corporations. their ethics are dictated by the bottom line.) (they've since gone to on-device options that attempt to block or intervene if a child sends or receives things that are inappropriate, and offering to point them to an adult.)
I was born well before cellphone cameras were a thing, and there are plenty of pictures of me as a child that are well out of the hands of Apple and Google. They still make cameras. If your child's privacy is a concern for you (and it should be) just grab a real camera and do it the old fashioned way. Every aspect of our lives doesn't need to be passed through the cloud.