Kernel machine regression is a nonparametric regression method widely applied in biomedical and environmental health research. It employs a kernel function to measure the similarities between sample pairs, effectively identifying significant exposures and assessing their nonlinear impacts on outcomes. This article introduces an enhanced framework, the generalized Bayesian kernel machine regression. In comparison to traditional kernel machine regression, generalized Bayesian kernel machine regression provides substantial flexibility to accommodate a broader array of outcome variables, ranging from continuous to binary and count data. Simulations show generalized Bayesian kernel machine regression can successfully identify the nonlinear relationships between independent variables and outcomes of various types. In the real data analysis, we applied generalized Bayesian kernel machine regression to uncover cytosine phosphate guanine sites linked to health-related conditions such as asthma and smoking. The results identify crucial cytosine phosphate guanine sites and provide insights into their complex, nonlinear relationships with outcome variables.