If a company wishes to hold back the student for a longer time than permitted under OPT, the student is required to upgrade from an F1 visa to an H1B visa. A cap-gap extension permits students to stay in the US at the time of upgrading from F-1 OPT or OPT STEM to H-1B status.