Add WCAG Alt Text to Every Image with One API Call
If your site has images without alt text, you have two problems: Screen readers can't describe them to visually impaired users You might get sued -- ADA lawsuits over web accessibility hit record n...

Source: DEV Community
If your site has images without alt text, you have two problems: Screen readers can't describe them to visually impaired users You might get sued -- ADA lawsuits over web accessibility hit record numbers in 2025 Manually writing alt text for hundreds of images is tedious. So I built an API that does it with one call per image. The API Send an image URL, get WCAG 2.1 compliant alt text back: import requests response = requests.post( "https://origrid-alt-text.p.rapidapi.com/v1/alt/generate", headers={ "X-RapidAPI-Key": "YOUR_KEY", "Content-Type": "application/json" }, json={"image_url": "https://picsum.photos/id/42/800/600"} ) print(response.json()) Response: { "alt_text": "Two teal coffee cups on saucers and a smartphone on a rustic wooden table in a cafe", "alt_text_length": 84, "wcag_compliant": true } That's it. No complex setup, no image upload, no training. Send a URL, get alt text. What makes it WCAG compliant The API follows WCAG 2.1 Success Criterion 1.1.1: Max 125 characters --