API for generating avatars with Apple Color Emoji.
- vercel/og for server generated images
- Open Color for colors
- apple-emoji-linux for emoji png
- ui-avatars for inspiration
https://ui-avatar-emoji.vercel.app/api/avatar
Default: 👻
https://ui-avatar-emoji.vercel.app/api/avatar?emoji=😀
Default: d0ebff
HEX color code without '#'
https://ui-avatar-emoji.vercel.app/api/avatar?background=c3fae8
Random color
https://ui-avatar-emoji.vercel.app/api/avatar?background=random
Default: 0
https://ui-avatar-emoji.vercel.app/api/avatar?rounded=15
For circle
https://ui-avatar-emoji.vercel.app/api/avatar?rounded=true
Default: 64
https://ui-avatar-emoji.vercel.app/api/avatar?size=128
Size is restricted to min 32
and max 256
.
- Smaller than
min
will return32
. - Larger than
max
will return256
.