A male prostitute will stand trial in Victoria accused of risking the infection of two people with HIV.

The Melbourne Magistrates Court was told Adam Randall, 36, of Reservoir, did not divulge he had the virus, even when asked.

Prosecutors alleged one of his victims was a 13-year-old boy who was persistently abused for nearly four years.

The court heard while Randall is a sex worker, the charges relate to private relationships he had formed.

Randall will face the County Court on eight charges, including reckless conduct endangering serious injury and making child pornography.

He has pleaded not guilty to all charges.