Export map image in svg from coordinates

I have a website made with a CMS (Drupal). I want to export an image from my CMS having the map coordinates. Is there a way to connect to OpenStreetMap to download the image by communicating?