Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.alttextlab.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

All API requests must include your API key in the x-api-key header. All requests must use HTTPS. See API key for instructions on creating and managing your keys.
x-api-key: YOUR_API_KEY

Examples

curl -X POST https://app.alttextlab.com/api/v1/alt-text/generate \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"imageUrl": "https://example.com/image.jpg"}'
Replace YOUR_API_KEY with your actual API key from dashboard settings.

Authentication errors

StatusMeaning
401 UnauthorizedAPI key is missing or does not exist.

Security

  • Store your API key in an environment variable — never hardcode it in source files
  • Never expose it in client-side or frontend code
  • Do not commit it to source control
  • If a key is compromised, delete it immediately and generate a new one