The AI used to match color between images works by analyzing the colors in a reference image and then applying similar color tones to the target photo. It uses machine learning algorithms to identify and match corresponding objects and areas, such as skies, buildings, or natural elements, ensuring a natural and cohesive transfer of colors.