Lebron James and his Miami Heat teammates kept up the heat after their NBA championship win, partying until 6 a.m. yesterday.

After their victory over the Oklahoma City Thunder, King James and his court headed to LIV nightclub inside the Fontainebleau in Miami.

LeBron — wearing a T-shirt bearing his own face — and his teammates celebrated in extravagant style with “countless bottles of Champagne” including a 15-liter, $75,000 jug of Ace of Spades, posh cigars and 10 bottles of Enrique Iglesias’ Atlantico Rum.

Witnesses tell us Dwyane Wade and girlfriend Gabrielle Union kissed throughout the night, while Chris Bosh was joined by his wife, Adrienne. And even LeBron’s overjoyed mom, Gloria, partied with the team until 4 a.m.

One spy told us, “Dwayne and LeBron got on the microphone and thanked the Miami fans for all the support.”

Team owner Mickey Arison and his wife sat alongside LIV owner David Grutman and the players, who wore their championship caps. “Everyone was celebrating and congratulating each other well into the morning,” an attendee said. “The team requested ‘Gotta Have It’ by Jay-Z and Kanye West. They all went wild when it came on, rapping to the lyrics.” At one point LeBron grabbed the mike and rapped along to 2 Chainz’s single “Riot.”

Heat president Pat Riley — who had started the celebration with a postgame party on the Heat’s practice court — opted for a lower-key but just as jubilant bash at Myles Chefetz’s Prime 112 Steakhouse.

Arriving at the restaurant at almost 3 a.m., Riley was greeted by fellow diners with cheers and applause. He dined in the private wine room with his wife, two other couples and Blaine Trump and her husband.

We’re told superstitious Riley had turned down Champagne from well-wishers after playoff wins, explaining he’d “only drink Champagne after winning the championship.” He finally got to enjoy a celebratory bottle of Cristal with his dinner.