User Profile Picture (Avatar) Generator API

This API lets you generate a profile picture using the /api/avatar endpoint.

You can provide an email, name, and size to customize the generated image.

API Endpoint

[GET] https://classyprofile.com/api/avatar?email={email}&name={name}&size={size}

Parameters

  • email: (required) The email address to be used for generating a unique hash¹.
  • name: (optional) The name from which initials will be extracted².
  • size: (optional) The size of the SVG, which must be between 20 and 140 pixels. The default is 80 pixels.

Notes

  1. The hash is not used for image generation but for selecting the color scheme and shape.
    • User email cannot be reverse-engineered using the avatar.
  2. If the name is provided, the avatar will use the name instead of the email for the avatar prefix.

Features

  • Consistent Image: Generates a color scheme and shape based on the email hash.
  • Customizable Size: Choose the size of the image between 20 and 140 pixels.

Terms

  • This service is provided for free.
  • We are not responsible for how the API and images are used.

Try it Out