Working Python examples for the ThumbAPI generate endpoint.
# Python 3.9+ recommended.
pip install requests
export THUMBAPI_KEY="your_api_key_here"Get an API key at app.thumbapi.dev — free tier is 5 generations/month, no credit card required.
basic_generate.py— minimal POST request, save the WebP to disk.batch.py— batch-generate from a CSV with retry and a thread pool.
python basic_generate.py
python batch.py titles.csv