Add Alt Text to an Image with an LLM and Cursor
Using Cursor, we can easily get a first pass at creating alt text for an image using a language model.
It’s quite straightforward using a multi-modal model/prompt.
For this example, we’ll use claude-3-5-sonnet-20241022
.
Here’s what it generates.
The first half is pretty good.
I settled on:
A diagram showing multiple conversation branches exploring different approaches to adding caching to a Python application
Using the same approach, I generated alt text for the images in this post as well.
I could see models being helpful accessibility aids for sites that haven’t yet made efforts to make their content broadly accessible.
Recommended
Cursor Introduction
Cursor is VS Code with Cmd+K that opens a text box that can do text generation based on a prompt. When I created this post, I first typed insert hugo...
Making Your Vision Real with Models
Using models for various different purposes daily has been a satisfying endeavor for me because they can be used as tools to help make your vision...
Developing a Mental Model for using Models
I had an interesting realization today while doing a demo building a web app with Cursor. I was debugging an issue with an MCP server, trying to...