Before acting as pilot in command of a high-performance airplane, 14 CFR 61.31(e) requires that you have:
The endorsement is not type-specific. Once you hold a high-performance endorsement, it applies to all high-performance airplanes for which you are otherwise rated and current — you do not need a fresh endorsement to move from a Cessna 182 to a Bonanza. (Good judgment still calls for transition training in an unfamiliar airframe, but the regulation is satisfied once.)
You do not need the 61.31(e) endorsement if, before August 4, 1997, you logged PIC time in a high-performance airplane — those pilots are grandfathered. The training is also waived in certain contexts where you are receiving training toward a higher certificate or rating that already requires it.
The rule requires both ground and flight training, found proficient by the instructor. There is no minimum number of hours specified in the regulation — proficiency is the standard, and the instructor decides when you have met it.
The instructor uses the standard wording from FAA AC 61-65 (the "Certification: Pilots and Flight Instructors" advisory circular), citing 61.31(e), and signs with their CFI number and expiration date.