Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Flask API that generates a one-sentence alt-text description for any image using Salesforce's BLIP model on Replicate.
Alt Image Generator is a Flask API template that generates a one-sentence alt-text description for any image using Salesforce's BLIP model hosted on Replicate.
Alt Image Generator is a Flask-based web API that accepts an image URL and returns an AI-generated alt text. It uses the BLIP model from Salesforce via the Replicate platform, and is designed as a deployable template with a Vercel one-click deployment button. The project is maintained by nutlope on GitHub (repository: nutlope/alt-text-generator) and also exists in a TypeScript version in the vercel/examples repository.
vercel dev after installing the Vercel CLI to start a local server at http://localhost:3000.curl http://localhost:3000/generate?imageUrl=https://dub.sh/confpic.Alt Image Generator is built for developers who need to generate alt text automatically, such as those building image-heavy applications that require accessibility tagging. It's also useful for content creators who manage large numbers of images and want to generate descriptions without manual effort. Web developers can use it as a reference implementation for integrating Replicate's image captioning models into their own projects.
The workflow is straightforward: the client sends an image URL to the /generate endpoint, the Flask app forwards the image to Replicate's BLIP model, and the model returns a textual description that is sent back to the client. To run it locally, clone the repo, add your Replicate API key to .env, install the Vercel CLI globally, and run vercel dev.
