MIAMI (AP) — Grammy-winning OutKast rapper Big Boi has reached a deal on drug charges that allows him to avoid jail time.

Big Boi appeared in a Miami courtroom Thursday as prosecutors outlined the deal that includes three months of drug testing, community service and $2,000 in donations to charities. The 36-year-old rapper’s real name is Antwan Patton.

WATCH BIG BOI BEAT JAIL TIME ON DRUG CASE
[NBCVIDEO source=”MIAMIMEDIA” video=”http://www.nbcmiami.com/news/local/Big-Boi-Avoids-Jail-With-Deal-on-Miami-Drug-Charges-131799863.html” w=”576″ h=”324″]

View more videos at: http://nbcmiami.com.

He was arrested getting off a cruise ship in August when a K-9 dog alerted to drugs Big Boi was carrying. The substances included ecstasy, a cigarette roller with marijuana residue and the ecstasy ingredient MDMA.

Big Boi had faced two felony drug charges. Prosecutors say if he remains drug-free after three months of testing, those charges will be dismissed.

The Atlanta-based group OutKast has won six Grammys and made six platinum-plus albums, including “Speakerboxxx/The Love Below.”

Copyright 2011 The Associated Press.