Sort:  

A very valid question. Thinking as a programer :)

I would guess that API is certainly there. Where it has public calls is another question. It might have.

You can create your gifs on the fly straight by composing the url. As you can create QR codes for example:

wget -O251.png "http://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=251&chld=L|0"