Skip to main content
POST
Batch Generate Alt Text

Overview

Process multiple images efficiently in a single API call. This is ideal for bulk processing or when you need to generate alt text for multiple images at once.

Request Body

string
required
Your GistMag API key
array<object>
required
Array of image objects to process. Each object must contain at least image_url.
string
required
The URL of the image
string
default:"short"
The length of alt text for this specific image. Options: short, long, seo
string
Language code for this specific image (default: en)
string
Source identifier for tracking (web, api, extension, wordpress, shopify, batch)

Example Request

Response

array
Array of alt text responses for each image
string
The generated alt text based on the selected mode
string
Short version of alt text (if mode was short or all modes requested)
string
Long version of alt text (if mode was long or all modes requested)
string
SEO-optimized version of alt text (if mode was seo or all modes requested)
string
The original image URL
string
ISO timestamp of when the alt text was generated
number
Total number of images processed
number
Number of successfully processed images
number
Number of images that failed to process

Example Response

Rate Limits

Batch requests count as multiple individual requests for rate limiting purposes. Each image in the batch consumes one credit and counts toward your rate limit.
Batch processing is more efficient than making multiple individual requests, but still counts toward your usage limits.