How to create a media object from image URL programatically

Is there a specific provider you are using (that is currently storing the media).

Also going to poke @alexandrebodin @Pierre_Noel and @Convly to get their thoughts. As I understand it, you have existing media in a provider and simply need to add that information to the database without actually fetching the file and re-uploading it.