Boko Haram Giwa barracks attack: Nigerian army 'killed hundreds'
Quoting eye-witnesses, it said that after the raid in the north-eastern city of Maiduguri, detainees who had escaped were rounded up and killed.
The army has not yet commented on the allegations but has denied previous reports of abuses.
The conflict has killed some 1,500 people this year, according to Amnesty.
Half of those killed were civilians, the organisation said.
One eyewitness told Amnesty that a self-defence group known as civilian JTF captured some of the hundreds of detainees who had escaped.
"I saw the soldiers asking the people to lie on the ground," the witness said.
"There was a small argument between the soldiers and the civilian JTF. The soldiers made some calls and a few minutes later they started shooting the people on the ground. I counted 198 people killed at that checkpoint."
Captured Boko Haram suspects are often detained in Giwa barracks, and human rights groups say hundreds have died or been subjected to torture there - allegations always denied by the military.
Boko Haram has since released its own video of the attack on Giwa, showing crowds of people walking out of the barracks.
Amnesty says all parties are violating international law and wants the United Nations to help investigate potential war crimes and crimes against humanity.
"The scale of atrocities carried out by Boko Haram is truly shocking, creating a climate of fear and insecurity," said Amnesty's Netsanet Belay.
"But this cannot be used to justify the brutality of the response that is clearly being meted out by the Nigerian security forces."
It said more than three million people are facing a humanitarian crisis.
Boko Haram was launched in Maiduguri in 2009, with the aim of setting up an Islamic state.
A state of emergency was declared in three north-eastern states last year to help the military crush the insurgency.
However, the militants have stepped up attacks in recent months.
Comments