The crime clan was headed by Arben Dumani, a former child refugee who fled with his family from war-torn Kosovo.
The gang helped bring about their own downfall by taking mobile phone photos of themselves snorting the Class A drug, which they had laid out to spell their names.
Dumani, 23, and right-hand man Albert Memia, 25, were told they were involved in a drug- dealing enterprise on a "virtually industrial scale".
Judge Michael O'Grady, QC, said: "This operation that you two were an integral part of was exceptional in its planning, sophistication and scope.
"You were responsible for physically setting up a drug- processing plant and responsible for processing and intending to distribute Class A drugs."
Dumani was jailed for 12 years after he was convicted of being concerned in the supply of cocaine after a trial at the High Court in Glasgow. Memia was sentenced to 10 years after he pled guilty to the same charge.
Couriers Fabion Ponari, 23, and Gjeorgj Pjetri, 28, were jailed for five years and three-and-a- half years respectively.
The crime network – from Albania and Kosovo – operated from a safe house in Kinning Park, Glasgow.
A jury heard Dumani and Memia were involved in a high- level and large-scale drugs operation between May 3 and 30 last year.
Prosecutors said the pair were linked to serious organised crime with cocaine intended for users in communities across Scotland.
Officers from the Scottish Crime and Drug Enforcement Agency spent weeks last May tracking the gang as part of Operation Eclipse.
Mercedes-driving Dumani and Memia were regularly spotted visiting the unoccupied flat in the city's Milnpark Gardens.
It was there high-purity cocaine was mixed with a bulking agent to increase supply and maximise profits.
The duo, along with a third man, were also seen carrying a hydraulic press – used to help package the drugs – into the property.
Prosecutor Andrew Miller said Dumani and Memia were aware of police investigative techniques and used latex gloves in a bid to limit DNA being left behind.
On May 30, detectives – who also bugged the safe house – removed three large blocks of cocaine from a kitchen cupboard.
Dumani later dropped off Memia, who quickly discovered the drugs were gone.
The court heard how a panic-stricken Memia immediately called his friend telling him: "Hello Luli, come here quickly – everything is lost."
Police soon moved in and arrested the pair. Courier Ponari was stopped the same day at the door of Dumani's home in Balornock, Glasgow. He had been planning to deliver £235,000 of cocaine that had been stuffed inside a case. Pjetri was also detained after he had earlier been spotted taking part in a drugs handover at the city's Springfield Quay.
The court was told a Blackberry phone was found in Dumani's Mercedes when he was snared.
One photo stored on the handset showed Memia snorting cocaine that had been arranged to spell out his nickname "Diti".
Pjetri was also snapped sniffing up the drug, while Dumani was seen with a wad of £100 notes.
Dumani denied during the trial he was involved in drug dealing and said he was the victim of a series of "inexplicable shocks".
He claimed he owned the Blackberry when the photo of him was taken – but had later given the phone to Memia.
Dumani also said he never entered the Milnpark Gardens flat, claiming he sat on the doorstep whenever Memia went in.
Advocate depute Mr Miller, in his closing speech to the jury, said: "If that is indeed true, then he is clearly one of the most gullible, naive, unworldly and unlucky people you will ever meet." Dumani's QC, Edward Targowski, said the conviction had a devastating effect on the dealer and his family.
Dumani was just 10 when he and his relatives escaped the horrors of their Kosovan homeland for a new life in Glasgow.
In 1999, it was reported he and six other child refugees started their first day at their new school in the city's west end.
A child Dumani, speaking through an interpreter, said of his first school experience: "It was good. We played football and met a lot of new friends.
"I drew pictures of houses and I am learning the days of the week in English. It was interesting and I was happy."
He left school at 15 and embarked on a four-year joinery apprenticeship.