Pick your integration
DiceBear runs as an HTTP API, as a library in seven languages, as a CLI, as a browser-based editor, and as a plugin for Figma. All of them render the same avatar for the same seed, so you can switch later without your avatars changing.
Can you point an <img> tag at a URL? Then the HTTP API is the shortest path. It's free for non-commercial use, needs no installation, and works from any language and platform. If you're unsure, start here.
Do you want avatars generated on your own infrastructure? Use a library. Your user data stays on your systems and there's no external request per avatar. Pick your language below.
Do you need image files rather than running code? The CLI exports batches to SVG, PNG, JPEG, and more. For a single avatar, say a default profile picture for your app, the Editor is the no-code way.
Designing before you build? DiceBear Studio, our plugin for Figma, fills the placeholders in your mockups and tells the developer which seed and URL render the same avatar in the app.
The libraries
| Language | Package(s) | Guide |
|---|---|---|
| JavaScript | @dicebear/core + @dicebear/styles | JS library |
| PHP | dicebear/core + dicebear/styles | PHP library |
| Python | dicebear-core + dicebear-styles | Python library |
| Rust | dicebear-core + dicebear-styles | Rust library |
| Go | dicebear/dicebear-go + dicebear/styles | Go library |
| Dart | dicebear_core + dicebear_styles | Dart library |
| C# | DiceBear.Core + DiceBear.Styles | C# library |
Frameworks build on these: guides exist for React, React Native, Vue, Svelte, Angular, Next.js, Nuxt, Flutter, Unity, and Godot.