Whether you cook salmon in the air fryer or the oven, you must avoid overcooking it. To know if the salmon is done, I inspect it with a fork to see if it flakes easily. It's also semi-translucent on the inside. Cook it until the interior is somewhat opaque, but not for too long! It should not become overly dry.