In the field of fluid mechanics, traditional turbulence models such as those based on Reynolds-averaged Navier–Stokes (RANS) equations play a crucial role in solving numerous problems. However, their accuracy in complex scenarios is often limited due to inherent assumptions and approximations, as well as imprecise coefficients in the turbulence model equations. Addressing these challenges, our research introduces an innovative approach employing physics-informed neural networks (PINNs) to optimize the parameters of the standard k−ω turbulence model. PINNs integrate physical loss functions into the model, enabling the adaptation of all coefficients in the standard k−ω model as trainable parameters. This novel methodology significantly enhances the accuracy and efficiency of turbulent flow simulations, as demonstrated by our application to the flow over periodic hills. The two coefficients that have been modified considerably are σω and α, which correspond to the diffusion and production terms in the specific dissipation rate equation. The results indicate that the RANS simulation with PINNs coefficients (k−ω−PINNs simulation) improves the prediction of separation in the near-wall region and mitigates the overestimation of turbulent kinetic energy compared to the base RANS simulation. This research marks a significant advancement in turbulence modeling, showcasing the potential of PINNs in parameter identification and optimization in fluid mechanics.