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.

Live avatar preview
avzx.vercel.app/octocat
default

Default usage

Generate an avatar using just a name. The gradient is deterministically generated from the name.

https://avzx.vercel.app/vercel
nameAny string to generate a unique avatar
optional

Custom text

Add initials or custom text overlay. Full names are automatically converted to initials.

https://avzx.vercel.app/john-doe?text=John Doe
nameBase name for gradient
textDisplayed 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=png
typesvg (default) or png
optional

Custom size

Specify the output dimensions in pixels. Default is 120px.

https://avzx.vercel.app/avatar?size=256
sizeSize in pixels (default: 120)
optional

Custom color

Override the auto-generated gradient with a specific hex color.

https://avzx.vercel.app/avatar?color=6366f1
colorHex color without #
optional

Emoji support

Add an emoji to your avatar for extra personality.

https://avzx.vercel.app/avatar?emoji=🚀&text=AB
emojiAny emoji character
textOptional text above emoji

All parameters

Every option the endpoint accepts. Unknown values return 400.

ParamValuesDefault
nameany string — path segment, required—
textany string, folded to initials—
size16 – 1024 (png caps at 512)120
typesvg | pngsvg
stylegradient | initials | identicon | rings | bauhaus | glyphgradient
palettevivid | pastel | earth | mono | neonvivid
shapecircle | square | squircle | hexagonsquare
roundedtrue | falsefalse
gradientlinear | radial | conic | meshlinear
patterndots | grid | stripes | noisenone
colorhex, without the #auto
emojiany emoji—