API Reference
Generate unique avatars with a simple URL. The name is the path; every query parameter is optional.
Playground
Combine the options and copy the URL that produces what you see.
avzx.vercel.app/octocatdefault
Default usage
Generate an avatar using just a name. The gradient is deterministically generated from the name.
https://avzx.vercel.app/vercelnameAny string to generate a unique avataroptional
Custom text
Add initials or custom text overlay. Full names are automatically converted to initials.
https://avzx.vercel.app/john-doe?text=John DoenameBase name for gradienttextDisplayed text (auto-converts to JD)optional
Output format
Choose between SVG (default, scalable) or PNG format for your avatar.
https://avzx.vercel.app/avatar?type=pngtypesvg (default) or pngoptional
Custom size
Specify the output dimensions in pixels. Default is 120px.
https://avzx.vercel.app/avatar?size=256sizeSize in pixels (default: 120)optional
Custom color
Override the auto-generated gradient with a specific hex color.
https://avzx.vercel.app/avatar?color=6366f1colorHex color without #optional
Emoji support
Add an emoji to your avatar for extra personality.
https://avzx.vercel.app/avatar?emoji=🚀&text=ABemojiAny emoji charactertextOptional text above emojiAll parameters
Every option the endpoint accepts. Unknown values return 400.