Upon installing the official ISO, the OS will ask for a key.

Check the Official Software Download page to see if your product key still grants access to historical installers.

Microsoft officially provides ISO files for Windows 8.1, though they are tucked away in the developer/enterprise sections of their site. You do not need a key to download the ISO—only to activate the installation.