Skip to main content
POST
Generate Alt Text (ATG)

Overview

Generate alt text for a single image using the ATG endpoint. This endpoint provides the same functionality as /generate but uses a different route for compatibility with existing integrations.

Request Body

string
required
The URL of the image to generate alt text for
string
required
Your GistMag API key
string
default:"short"
The length of alt text to generate. Options: short, long, seo

Example Request

cURL

Python

Response

The response format is identical to the /generate endpoint.
string
The generated alt text description
number
Confidence score (0-1) of the generated alt text
number
Number of credits consumed for this request

Example Response

This endpoint is maintained for backward compatibility. New integrations should use /generate.