You need to get whatever matches the type of motor you will use.
Your router motor is a universal motor, there are speed controllers made for these. Cannot use a VFD for this.
VFD are typically for 3 phase ac motors. If your spindle is going to use this type of motor then yes, a vfd can be used to control speed.