services / image-alt-text
visualoperational · 2730 ms
Image Alt Text Generator (AI)
Alt text for images, for web accessibility (WCAG 1.1.1, BFSG, European Accessibility Act) and SEO: send image_url or image_base64, get alt text under 125 characters that describes purpose and content, a longer description for complex images such as charts, whether the image is decorative (then alt=""), all readable text in the image, and a ready alt="..." attribute. Optional language (e.g. German) and context (where the image is used). The image is scaled to at most 800 x 800 px first, then described by Claude Haiku 5.5. Pairs with accessibility-check, which finds images without alt text.
Run free trial ↗3 free calls per day with the example input. Paid: $0.005 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| image_url | string | Public image URL (max 15 MB) |
| image_base64 | string | Base64 image instead of a URL |
| language | string | Language of the alt text, default English |
| context | string | Where the image is used, max 500 chars |
Output
| Field | Type | Description |
|---|---|---|
| alt_text | string | |
| html | string | |
| long_description | string | |
| decorative | boolean | |
| text_in_image | any | |
| image | object | |
| language | any | |
| model | string |
Example response (data)
{
"alt_text": "Panoramic view of forested mountain ridges with rocky cliffs under cumulus clouds, with a lake visible at the lower right",
"html": "alt=\"Panoramic view of forested mountain ridges with rocky cliffs under cumulus clouds, with a lake visible at the lower right\"",
"long_description": "A wide landscape photo of a steep, forested mountain with a flat rocky summit and exposed limestone cliffs at its top. Lower slopes show green meadows and scattered farm buildings, while snow-capped peaks rise in the distance on the right. A blue lake appears at the far lower right beneath a blue sky with white clouds.",
"decorative": false,
"text_in_image": null,
"image": {
"width": 800,
"height": 359,
"original": {
"width": 1280,
"height": 575,
"format": "jpeg",
"size_bytes": 221419
}
},
"language": null,
"model": "claude-haiku-5-5"
}