Prep the air fryer: Preheat to 320°F (160°C) for 3–5 minutes. Line a muffin tin that fits your air fryer basket or use sturdy silicone muffin cups.
Lightly grease the cups.
Mix dry ingredients: In a large bowl, whisk flour, sugar, baking powder, baking soda, cinnamon, nutmeg, ginger, and salt until well combined.
Mix wet ingredients: In a separate bowl, whisk the eggs, oil, yogurt, and vanilla until smooth.
Combine: Pour the wet mixture into the dry ingredients. Stir gently with a spatula until just combined. The batter will be thick—don’t overmix.
Fold in carrots and add-ins: Stir in the grated carrots and any optional nuts or raisins.
Fold until evenly distributed.
Fill cups: Divide the batter evenly among 8–10 muffin cups, filling them about 3/4 full. Smooth the tops slightly with a spoon.
Air fry: Place the muffins in a single layer in the basket. Air fry at 320°F (160°C) for 12–16 minutes, or until the tops are set and a toothpick comes out with just a few moist crumbs.
Work in batches if needed.
Cool: Let muffins cool in the cups for 5 minutes, then transfer to a rack. Cool completely if you plan to glaze.
Optional glaze: Beat cream cheese, powdered sugar, milk, vanilla, and a pinch of salt until smooth. Spread or drizzle over cooled muffins.