API Documentation

Integrate our powerful AI services into your applications

Authentication

A1D API uses API keys to authenticate requests. You need to include your API key in the Authorization header of every request.

Getting Your API Key

To get your API key:

  1. Log in to your A1D account
  2. Go to the API section in your dashboard
  3. Click "Generate API Key"

🔒 Keep your API key secure and never share it publicly.

Using Your API Key

Add your API key to the Authorization header:

Authorization: KEY your_api_key_here

Example Request

curl --location --request POST 'https://api.a1d.ai/api/image-upscaler' \
--header 'Authorization: KEY your_api_key_here' \
--header 'Content-Type: application/json' \
--data-raw '{
  "imageUrl": "https://example.com/image.jpg",
  "scale": 2,
  "source": "api"
}'

Security Best Practices

  • Store your API key securely and never expose it in client-side code
  • Use environment variables to manage your API keys
  • Rotate your API keys periodically for enhanced security
  • Each API key should only be used for one integration

Authentication Errors

If your API key is invalid or missing, you'll receive a 401 Unauthorized response:

{
  "error": "Unauthorized",
  "message": "Invalid or missing API key"
}