Licensing

ArtistAPhoto is a commercial SDK with a free trial mode.

Trial Mode (No License)

Without a license key, the SDK operates in trial mode:

FeatureTrial Mode
All editing featuresAvailable
Preview (toCanvas)No watermark
Export (toBlob, toDataURL, download)With watermark

Activating Your License

import { ArtistAPhoto, LicenseError } from 'artistasdk';

async function activateLicense() {
  try {
    const licenseInfo = await ArtistAPhoto.setLicenseKey('YOUR-LICENSE-KEY');
    console.log('License activated!', licenseInfo);
  } catch (error) {
    if (error instanceof LicenseError) {
      console.error('License error:', error.code, error.message);
    }
  }
}

License Methods

MethodDescription
setLicenseKey(key)Activate a license key
isLicenseValid()Check if license is valid
getLicenseInfo()Get license details
clearLicense()Deactivate license (returns to trial)
refreshLicense()Force re-validation