The background
Alt text describes an image on a page. It’s important because it makes images more accessible to people and search engines, even when they can’t be shown.
It increases a search engine’s understanding of your content which can help with organic rankings. Particularly so with image SEO.
Your alt text should describe the image clearly, be concise, and, if appropriate, include a keyword or a synonym of that keyword.
But sometimes, describing an image can take longer than we’d like it to. Especially if you’re not feeling very creative and you need to work a keyword into the description.
You can use the vision capability – which allows the model to understand and analyse images – to generate good quality alt text efficiently.
How to do it
The video shows an example using some images that showcase our PR services on our fintech PR page. We generate some alt text for one of them to show you how it’s done.
Step one
Select your LLM/model. For this use case, choose a model with ‘vision’ capability, such as Claude 3.5 Sonnet.
Step two
Upload your image via your chat.
Step three
Add your prompt.
In this case, we just need a simple, straightforward prompt, that covers the bases of what you need the output to be.
Prompt one
Please write some descriptive and concise alt text for this image.
If you have more specific instructions for your alt text simply include them in your prompt. For example, if you want to also include a keyword adjust your prompt to something like this.
Prompt two
Please write some brief, descriptive and concise alt text for this image. Include – as naturally as possible – either the keyword ‘B2B PR services’, or a synonym of it.
Step four
The model will generate ready-to-use, well-formatted alt text.
Example output for prompt one:
Black text reading ‘media training’, centred on a light pink background.
Example output for prompt two:
Black text reading ‘media training’, on a bright pink background. A key component of B2B PR services.
Looking for more AI use case inspiration for your marketing? Find them here.
Interested in access to the best AI models in one secure place? Get in touch.
Written by Tom Pallot, Head of Marketing at Definition.