DiceBear avatars
by dicebear.com
Image and photo
Added on October 31st, 2026
Checked and working on November 8th, 2026
Visit dicebear.com →
What it does
DiceBear generates avatar images from any text, such as a user name or ID, so every user gets a unique and consistent picture without uploading one. More than 30 styles are available, from initials and pixel art to illustrated faces and abstract shapes, each with options for colours and details. The HTTP API returns SVG, PNG, JPEG or WebP. Free and open source, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free and open source, no key needed.
- From the browser
- Yes (CORS)
- Formats
- XML
- Interface
- REST, HTTP-GET
- Provider
- dicebear.com
- Last checked
- Working on November 8th, 2026
More information: https://www.dicebear.com/how-to-use/http-api/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.dicebear.com/9.x/pixel-art/svg?seed=hello'
JavaScript
const response = await fetch("https://api.dicebear.com/9.x/pixel-art/svg?seed=hello");
const text = await response.text();
console.log(text);
Python
import requests
response = requests.get(
"https://api.dicebear.com/9.x/pixel-art/svg?seed=hello",
timeout=30,
)
print(response.text)
The JavaScript works in a web page as well as in Node.js 18 or newer.