A Billings man downloaded thousands of child pornography videos and images with rape victims as young as infants, prosecutors allege.