How to politely stop talking to a guy

So there is this guy who follows me on Insta. He’s pretty nice. We talk here and there mainly about life and all that. Lately he’s been messaging me more and asked if it’s ok to flirt lol I said sure cause I’m single anyway, but we live in different countries so nothing can really come of it anyway and he knows that. However, it’s becoming to the point where he doesn’t want to “flirt” it’s more like straight up sexting. And I’m honestly not into that, with him anyway. I’ve been kind of “ghosting” him in a way and not messaging him back as much and just saying I fell asleep cause I don’t want to message him back after he says things.

How can I tell him I don’t want to do this anymore but in a polite way?