Apparatus, methods, and other embodiments associated with a key duplication machine are described. In one embodiment, an assembly for duplicating a master key includes an optical imaging device, a logic, a clamping assembly, and a cutting member. The optical imaging device is capable of capturing an optical image of at least a portion of the master key. The logic is capable of determining a key pattern of the master key from the optical image of the master key. The clamping assembly is capable of clamping a key blank and the cutting member is capable of cutting a key pattern into said key blank.