Generate a customized avatar with a URL for free!
You can easily create avatars using the API. Here are a few examples:
To generate a customized avatar, use the following URL format:
https://az-avatar.vercel.app/api/avatar?text=<text>&textColor=<textcolor>&fontSize=<fontsize>&bgColor=<bgcolor>&height=<height>&width=<width>
-
text: The text displayed on the avatar. For example,"R".- Usage:
?text=R
- Usage:
-
textColor: The color of the text in hexadecimal format (e.g.,"#ffffff"for white).- Usage:
?textColor=#ffffff
- Usage:
-
fontSize: The size of the text in pixels (e.g.,"40"for 40px).- Usage:
?fontSize=40
- Usage:
-
bgColor: The background color of the avatar in hexadecimal format (e.g.,"#0000ff"for blue).- Usage:
?bgColor=#0000ff
- Usage:
-
height: The height of the avatar in pixels (e.g.,"100"for 100px).- Usage:
?height=100
- Usage:
-
width: The width of the avatar in pixels (e.g.,"100"for 100px).- Usage:
?width=100
- Usage:
For demonstration, the URL for generating an avatar might look like this:
https://az-avatar.vercel.app/api/avatar?text=ChatGPT&textColor=ffffff&fontSize=40&bgColor=0000ff&height=100&width=100
- Replace
az-avatar: Make sure to replaceaz-avatarwith your hosted domain or use as it is. - Formatting: This
README.mduses Markdown to provide a clear and structured overview of how to use the avatar generation API, including examples and usage instructions.