Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

UI Avatars by Lasse Rafn

API that generates avatar images with initials from names, returned as SVG or PNG.

Avatars and placeholders AI generator

Price
Free
Free API with no limiting or login
Commercial use
Yes
MIT License
Credit the author
Not needed
No credit needed
Agent access
Public API
no key needed

Rules for your agent

- UI Avatars (Avatars and placeholders). API that generates avatar images with initials from names, returned as SVG or PNG. Price: free; commercial use OK; no credit needed.
  Connect: API docs https://ui-avatars.com. Limits: No limiting or login stated; size between 16 and 512 px.
  Rule: Keep the MIT copyright and license notice if you copy or distribute the UI Avatars code.
  Rule: Call the API at https://ui-avatars.com/api/ with name, size, background and color parameters; no key is needed.
  Rule: Request 1.5x or 2x sizes for high-DPI screens while keeping the img tag at its original size.
  Rule: The licence page covers the code only; the site states no terms for generated images, so check before relying on them.
  License: https://github.com/LasseRafn/ui-avatars/blob/HEAD/LICENSE (checked 2026-10-10; details: https://agentgid.com/assets/ui-avatars/)

Paste it into your prompt or AGENTS.md. It is built from the license and API terms below.

License

LicenseMIT License
Commercial useCommercial use OK
CreditNo credit needed
Inside your app or gameCan ship inside your app
AI trainingNot stated
Bots and bulk downloadsNot stated
Rules
  • Keep the MIT copyright and license notice if you copy or distribute the UI Avatars code.
  • Call the API at https://ui-avatars.com/api/ with name, size, background and color parameters; no key is needed.
  • Request 1.5x or 2x sizes for high-DPI screens while keeping the img tag at its original size.
  • The licence page covers the code only; the site states no terms for generated images, so check before relying on them.

Connect it to an agent

MCP serverNone found
APIAPI docs · no key
LimitsNo limiting or login stated; size between 16 and 512 px
GitHubLasseRafn/ui-avatars

Pricing

FreeFree API with no limiting or login
Paid from—
Usage price—
Good to knowAdded automatically: 1,197 GitHub stars; MCP servers in the official MCP Registry connect to it. License read from the official pages.

Sources

Read on Oct 10, 2026: ui-avatars.com, ui-avatars.com/pricing, github.com/LasseRafn/ui-avatars/blob/HEAD/LICENSE, github.com/LasseRafn/ui-avatars.

Not legal advice. Check the license page before you ship.

Alternatives to UI Avatars

All avatars and placeholders

Pick for your agentSourcePriceLicense Agent access
DiceBear
Avatar generator with 61 styles via a free HTTP API, JS library and CLI; self-hostable.
Free Commercial: conditions Credit varies API
Boring Avatars
MIT React library that generates SVG avatars, plus a separate paid avatar service.
Free tier Commercial OK No credit npm