Credit policies for clean and renewable energy businesses play a crucial role in supporting carbon neutrality efforts to combat climate change. Clustering the credit capacity of these companies to prioritize lending is essential given the limited capital available. Support Vector Machine (SVM) and Artificial Neural Network (ANN) are two robust machine learning algorithms for addressing complex clustering problems. Additionally, hyperparameter selection within these models is effectively enhanced through the support of a robust heuristic optimization algorithm, Particle Swarm Optimization (PSO). To leverage the strength of these advanced machine learning techniques, this paper aims to develop SVM and ANN models, optimized with the PSO, for the clustering problem of green credit capacity in the renewable energy industry. The results show low Mean Square Error (MSE) values for both models, indicating high clustering accuracy. The credit capabilities of wind energy, clean fuel, and biomass pellet companies are illustrated in quadrant charts, providing stakeholders with a clear view to adjust their credit strategies. This helps ensure the efficient operation of banking green credit policies.