Three men have been jailed over an attack on a "rival gang member" as he was arrested by police.
Their target - suspected of rape - was being escorted by officers on Skipton Road, Edgbaston, in January 2018.
As he was led to a police car, Samba Faal, 20, Roshane Daley, 26, and Amadou Sarr, 23, punched and kicked the man and hit him with a traffic cone.
The West Midlands force said they were part of the 23 Drillas Birmingham street gang.
They admitted affray and at Birmingham Crown Court were each sentenced to a year in prison.
Police said when the hooded men struck, officers drew their Tasers and hit radio alarms before the trio made off in a VW Golf that had been parked outside a tower block.
The force said other officers rushed to the scene and spotted the car pulling over nearby. It was searched and a balaclava and baseball bat were found, police said.
The rape suspect was released without charge.
Faal, of Holmefield Road, Coventry; Daley, of Marsh Close, Erdington, Birmingham; and Sarr, of Church Green, Handsworth, Birmingham, were jailed on Tuesday.
"Clearly the suspect in custody was the intended victim, but these three clearly showed no regard for the officers," said Chf Insp Phil Cape.
Follow BBC West Midlands on Facebook, on Twitter, and sign up for local news updates direct to your phone.