Skip to main content
POST
/
v1
/
generate-alt-text-api
Generate Alt Text
curl --request POST \
  --url https://api.altmagic.pro/v1/generate-alt-text-api \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "image_url": "<string>",
  "user_id": "jsmith@example.com",
  "blog_title": "<string>",
  "seo_keywords": "<string>",
  "language_code": "<string>"
}'
{
  "altText": "<string>",
  "CreditsAvailable": 123,
  "plan_type": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
image_url
string<uri>
required

Publicly accessible URL of the image to generate alt text for

user_id
string<email>
required

Unique identifier (email) for the user requesting the alt text

blog_title
string

Blog or article title to provide additional context

seo_keywords
string

Comma-separated keywords for SEO optimization

language_code
string

Language code (e.g., 'en', 'fr', 'es') for generated alt text. If not provided, defaults to English ('en'). See Language Support page for complete list of supported languages.

Response

Successful alt text generation

altText
string

The generated alt text

CreditsAvailable
integer

Remaining credits for the user after this request

plan_type
string

The user's subscription plan

I