Prior work has suggested relationships between prenatal intake of certain nutrients and autism. We examined a broad set of prenatal nutrients and foods using a Bayesian modeling approach. Participants were drawn from the Early Autism Risks Longitudinal Investigation (n = 127), a cohort following women with a child with autism through a subsequent pregnancy. Participants were also drawn from the Nurses’ Health Study II (NHSII, n = 713), a cohort of United States female nurses, for comparison analyses. In both studies, information on prospectively reported prenatal diet was drawn from food frequency questionnaires, and child autism-related traits were measured by the Social Responsiveness Scale (SRS). Bayesian kernel machine regression was used to examine the combined effects of several nutrients with neurodevelopmental relevance, including polyunsaturated fatty acids (PUFAs), iron, zinc, vitamin D, folate, and other methyl donors, and separately, key food sources of these, in association with child SRS scores in crude and adjusted models. In adjusted analyses, the overall mixture effects of nutrients in Early Autism Risks Longitudinal Investigation and foods in both cohorts on SRS scores were not observed, though there was some suggestion of decreasing SRS scores with increasing overall nutrient mixture in NHSII. No associations were observed with folate within the context of this mixture, but holding other nutrients fixed, n-6 PUFAs were associated with lower SRS scores in NHSII. In both cohorts, lower SRS scores were observed with higher intake of some groupings of vegetables, though for differing types of vegetables across cohorts, and some vegetable groups were associated with higher SRS scores in NHSII. Our work extends prior research and suggests the need to further consider prenatal dietary factors from a combined effects perspective. In addition, findings here point to potential differences in nutrient associations based on a family history of autism, which suggests the need to consider gene interactions in future work.