Integrate AltText.io into any application with our RESTful API. Generate alt text at scale with just a few lines of code.
Get up and running in minutes with our simple REST API.
Sign up for a free forever account and generate your API key from the dashboard. Get 25 credits every month.
Send a POST request with your image URL and get back perfect alt text in under 2 seconds.
Process images at scale with batch endpoints and webhooks for async processing.
All endpoints require authentication with your API key in the Authorization header.
/api/getmetadata
Generate alt text, titles, descriptions, and keywords for an image. Supports both SEO and stock photography modes.
image_url
URL of the image to process
mode
"seo" for SEO optimization or "stock" for Getty Images
keywords
Optional: Custom keywords to include (optional)
{
"status": "success",
"data": {
"title": "Professional business meeting in modern office",
"description": "Group of diverse professionals...",
"alt_text": "Business team collaborating around table",
"keywords": ["business", "meeting", "office", "teamwork"]
},
"credits_used": 1,
"credits_remaining": 24
}
/api/batch
Process multiple images in a single request. Perfect for bulk operations and data migrations.
images
Array of image URLs (max 50 per request)
mode
"seo" for SEO optimization or "stock" for Getty Images
webhook_url
Optional: URL to receive results when processing completes
Get started quickly with examples in popular programming languages.
const response = await fetch('https://alttext.io/api/getmetadata', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
image_url: 'https://example.com/image.jpg',
mode: 'seo'
})
});
const data = await response.json();
console.log(data.data.alt_text);
import requests
response = requests.post(
'https://alttext.io/api/getmetadata',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
'image_url': 'https://example.com/image.jpg',
'mode': 'seo'
}
)
data = response.json()
print(data['data']['alt_text'])
Get your API key and start generating perfect alt text programmatically.
25 free API calls every month • Free forever plan • Rate limit: 1000 requests/hour