Place the onion and garlic in a food processor and pulse until roughly chopped.
Add the parsley, cilantro, spices, and pulse to combine all the flavors.
Add the rinsed and drained chickpeas to the processor and pulse 2-3 times for a rough chop.
Fold in your choice of flour and pulse a few more times until just combined.
Transfer the mixture to a bowl, cover it, and refrigerate for 2 hours or freeze for 25 minutes.
Once chilled, fold in the baking powder and shape into 12 balls using a cookie scoop.
Spray the air fryer basket with olive oil spray, place the falafel inside, and spray the tops.
Air fry at 350°F for 15 minutes, flipping halfway through.
Preheat the oven to 375°F, arrange the falafel on a baking sheet, spray with oil, and bake for 20-25 minutes, flipping midway.