How to Secure API Key - Image Source?

I am using Google’s streetview to show an image on one of my pages. I have to use an API key to do this, so I don’t want to expose it to the front end.

How can I hide my API key if it is embedded in the image source? I can generate the image source in my back end, but when I send it back to the front innevitably it is in there.

I have to be missing something basic here?

$w("#image1).src = https://maps.googleapis.com/maps/api/streetview?size=600x300&location=46.414382,10.013988&heading=151.78&pitch=-0.76&key=YOUR_API_KEY&signature=YOUR_SIGNATURE

Hi David,
Check out this article:

Roi.