Natthee who arrived the scene from Bangkok at about 4.30pm said their demand to improve quality of food and water would also be met.
Natthee's promises drew applauds from about 400 inmates who later dispersed to their cells. The negotiation was made as the inmates wrote their demands on a piece of paper and handed over to Natthee who waited outside the prison's compound.
Their demands included that the prison authorities would not take any legal action on the inmates who joined in the revolt and that a committee will be set up to investigate the guards who allegedly beat the prisoners.
Meanwhile an inmate told reporters that the prison's guards usually kept for their own the food from relatives of the inmates. "Guards liked to beat us when they were not pleased with us," he said.
The revolt took place at about 8 am and the inmates, who were armed with knives, iron bars and sticks, took control of the prison at 9 am.
The prison, located in Mamuay Pray village of Tambon Nasai in Muang district, houses about 400 male inmates who are about 18 to 22 years old.
The inmates, who cover the face with cloth and hat, gathered at the third-layer gate and shouted demand for the transfer of the three guards.
They also threw stones at prison guards, who were evacuated to be outside.
The inmates stopped throwing stones when seeing reporters nearby. They raised their hands and cheered to sign victory for photographers to take pictures.
The inmates then raised signs with words demanding transfer of three guards - Sakol Jongsiri, Jamras Mukda, and Thanom Mangsathorn.
The inmates also =set fire on a Sala inside the prison's compound and threatened that they would burn all buildings if Natthee refused to talk to them.
The inmates demolished the Sala before setting fire.
They were heard shouting while watching the fire that they would more buildings if Natthee did not come to see them within five minutes.