At the beginning, all players have the 4 lowest difficulties unlocked automatically. Other difficulties can be unlocked one time for rubies, or permanently by completing achievements. The highest difficulty (archmaster) cannot be unlocked permanently, it can only be unlocked one time for rubies.
Once you have chosen a difficulty, it cannot be changed during an ongoing event.