# UI Avatars — card for AI agents

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

Category: Avatars and placeholders · maker Lasse Rafn · checked 2026-10-10

## Price
- Price: Free
- Free tier: Free API with no limiting or login

## License
MIT License — https://github.com/LasseRafn/ui-avatars/blob/HEAD/LICENSE

- commercial: **yes** (Commercial use OK)
  > to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- attribution: **no** (No credit needed)
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- in app: **yes** (Can ship inside your app)
  > to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- bots: **allowed**
  > no limiting or login
  (https://ui-avatars.com)

## Rules to follow
- 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.

## How an agent gets files
- GET https://ui-avatars.com/api/?name=John+Doe&size=64&format=svg (also background, color, rounded, bold, length, font-size, uppercase). (sign-in: none)
- Formats: svg, png
- Not allowed: The MIT license covers the code; the site states no terms for the generated images.
- Not allowed: Size is 16 to 512 px.
- Not allowed: Keep the MIT copyright and license notice if you copy the code.

## How to connect
- Public API
- API docs: https://ui-avatars.com
- API limits: No limiting or login stated; size between 16 and 512 px
- Repository: https://github.com/LasseRafn/ui-avatars
- Website: https://ui-avatars.com

## Notes
Added automatically: 1,197 GitHub stars; MCP servers in the official MCP Registry connect to it. License read from the official pages.

## Lines to paste into your prompt or AGENTS.md

```
- 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.
  Get files: GET https://ui-avatars.com/api/?name=John+Doe&size=64&format=svg (also background, color, rounded, bold, length, font-size, uppercase) (svg, png).
  Not allowed: The MIT license covers the code; the site states no terms for the generated images.
  Not allowed: Size is 16 to 512 px.
  Not allowed: Keep the MIT copyright and license notice if you copy the code.
  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/)
```

## Links
- AgentGid page: https://agentgid.com/assets/ui-avatars/
- Is it free for commercial use? https://agentgid.com/assets/ui-avatars/commercial-use/
- Source: https://ui-avatars.com
- Source: https://ui-avatars.com/pricing
- Source: https://github.com/LasseRafn/ui-avatars/blob/HEAD/LICENSE
- Source: https://github.com/LasseRafn/ui-avatars

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
