You're setting an HTML attribute. The key should instead be included in the src URL according to the link you posted.
Straight from their example:
Notice the location of "YOUR_API_KEY" in the URL. Your best bet when dealing with APIs like this is to look for examples and follow them as closely as you can, trying to understand them. Then modify them to suit your needs.