With this foil baked recipe, a 7 to 8 ounce salmon fillet that's about 1 1/2 inches thick, takes about 22 minutes to bake at 400°F in an air fryer. The cook time will vary depending on the thickness of the fillet and your air fryer or oven.