Skip to main content

Prerequisites

Step 1: Get Your API Key

  1. Sign in to your GistMag Dashboard
  2. Navigate to the API Keys section
  3. Create a new API key
  4. Copy and securely store your API key
Keep your API key secure. Never commit it to version control or share it publicly.

Step 2: Generate Alt Text

Generate alt text for an image with a single API call:
curl -X POST https://api.gistmag.co.uk/generate \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/image.jpg",
    "api_key": "your_api_key_here",
    "mode": "short"
  }'
alt_text
string
The generated alt text description

Step 3: Convert Text to Speech

Convert text to speech:
curl -X POST https://api.gistmag.co.uk/tts \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello, this is a test of the text-to-speech API.",
    "language": "en",
    "api_key": "your_api_key_here"
  }'
The response will be an audio file (WAV format) that you can download or stream.

Next Steps