Cut each onion in half and finely slice them.
In a large bowl, mix together the onions, fresh cilantro, turmeric powder, green chilies, chili powder, crushed garlic, salt, and ground coriander. Add the gram flour and stir until combined.
Using one hand, pour in the water little by little while using a fork in the other hand to gradually mix everything into a thick, lump-free batter. The onions should be the main component. If the mixture feels too dry, feel free to add a splash more water, keeping the batter thick enough to hold the onions together.
Heat the oil over medium-high heat until hot enough for frying. Shape small portions of the mixture with your hands or drop forkfuls of batter into the oil, making sure not to crowd the pan. Deep-fry in batches, flipping as needed, until the bhajis are golden brown and cooked through.
Remove with a slotted spoon, drain on paper towels, and serve warm.