President Trump said he would “personally vouch” for rapper A$AP Rocky’s “bail.”

The commander-in-chief said Saturday he made the promise in a phone call with Swedish Prime Minister Stefan Löfven. “Just had a very good call with @SwedishPM Stefan Löfven who assured me that American citizen A$AP Rocky will be treated fairly,” Trump tweeted. “Likewise, I assured him that A$AP was not a flight risk and offered to personally vouch for his bail, or an alternative.

“Our teams will be talking further, and we agreed to speak again in the next 48 hours!”

Löfven’s office stated, “It was a friendly and respectful phone call which lasted about 20 minutes.

“The Prime Minister made sure to point out … the government neither can nor will try to influence the judicial process.”

Sweden doesn’t actually have a bail system, according to experts.

“I assume that people think we have a bail system and he was denied bail,” Dennis Martinsson, a senior law lecturer at Stockholm University, told Time Magazine. “We don’t have that system, so the only option is detention.”

Rocky, a platinum-selling, Grammy-nominated artist whose real name is Rakim Mayers, has been in jail since July 5 while Swedish authorities investigate a fight he was allegedly involved in in Stockholm before appearing at a music festival.

It was not clear who else was involved, but videos published on social media appeared to show a person being violently thrown onto the ground by Rocky. A defense lawyer has said it was self-defense.

The president credited First Lady Melania Trump for his decision to get involved in Rocky’s case.

“Actually, the one who knew about A$AP Rocky was our first lady, right? She was telling me about — ‘Can you help A$AP Rocky?’” Trump said Friday.

Kim Kardashian and Kanye West also lobbied the White House to get Rocky freed.

A Swedish judge ruled Friday that Rocky and two members of his entourage will remain in jail until July 25.

With Post wires