Using a 820 nm-thick high-quality Ge0.97Sn0.03 alloy film grown on Si(001) by molecular beam epitaxy, GeSn p-i-n photodectectors have been fabricated. The detectors have relatively high responsivities, such as 0.52 A/W, 0.23 A/W, and 0.12 A/W at 1310 nm, 1540 nm, and 1640 nm, respectively, under a 1 V reverse bias. With a broad detection spectrum (800-1800 nm) covering the whole telecommunication windows and compatibility with conventional complementary metal-oxide-semiconductors (CMOS) technology, the GeSn devices are attractive for applications in both optical communications and optical interconnects.