Captionbot is a simple API wrapper for https://www.captionbot.ai/
You can install captionbot using pip:
$ pip install captionbot
To use, simply do:
>>> from captionbot import CaptionBot
>>> c = CaptionBot()
>>> c.url_caption('your image url here')
>>> c.file_caption('your local image filename here')