A detective was suspended last week without pay for using another cop’s body cam to record an over half-minute video of his privates, according to an internal NYPD document obtained by The Post.

Detective Specialist Raymond Williams, 44, of Bedford-Stuyvesant’s 79th Precinct, allegedly grabbed Officer Michael Devonish’s unattended cam and recorded a 32-second clip of his exposed testicles. The filming happened inside the precinct’s Special Operations Office on Oct. 2, according to the paperwork.

Devonish, who sources said was in the bathroom at the time of the lewd film session, saw the X-rated footage on his camera the next day, but didn’t inform his superiors as required, according to the document.

It wasn’t until Nov. 20 that a civilian employee came across the crude clip and notified her supervisor, who told the department’s Internal Affairs Bureau.

Williams, who has been with the NYPD for 10 years after a stint with FedEx, was suspended Friday following a departmental hearing.