Documentation Index
Fetch the complete documentation index at: https://docs.gistmag.co.uk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Generate accurate, descriptive alt text for a single image using advanced AI models.
Request Body
The URL of the image to generate alt text for
The length of alt text to generate. Options: short, long, seo
Example Request
curl -X POST https://api.gistmag.co.uk/generate \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/sunset.jpg",
"api_key": "your_api_key_here",
"mode": "short"
}'
Response
The generated alt text description
Confidence score (0-1) of the generated alt text
Number of credits consumed for this request
Example Response
{
"alt_text": "A beautiful sunset over the ocean with orange and pink hues",
"confidence": 0.95,
"credits_used": 1
}
Error Responses
Common Errors
400 Bad Request: Invalid image URL or missing required parameters
401 Unauthorized: Invalid or missing API key
429 Too Many Requests: Rate limit exceeded
500 Internal Server Error: Server error processing the request