A compact x-ray particle image velocimetry (PIV) system employing a medical x-ray tube as a light source was developed to measure quantitative velocity field information of opaque flows. The x-ray PIV system consists of a medical x-ray tube, an x-ray charge coupled device camera, a programmable shutter for a pulse-type x ray, and a synchronization device. Through performance tests, the feasibility of the developed x-ray PIV system as a flow measuring device was verified. To check the feasibility of the developed system, we tested a tube flow at two different mean velocities of 1 and 2 mm/s. The x-ray absorption of tracer particles must be quite different from that of working fluid to have a good contrast in x-ray images. All experiments were performed under atmospheric pressure condition. This system is unique and useful for investigating various opaque flows or flows inside opaque conduits.