Avataaars
This avatar style is a remix of: Avataaars by Pablo Stanley, licensed under Free for personal and commercial use .
LICENSE
While our code is MIT licensed, the design of this avatar style is licensed under Free for personal and commercial use. See details for more information.
Usage
Use this URL to request this avatar style via our HTTP API.
https://api.dicebear.com/9.x/avataaars/svg
You can use the URL directly as image source.
See HTTP-API docs for more information.
First install the required packages via npm:
npm install @dicebear/core @dicebear/collection --save
Then you can create this avatar as follows:
import { createAvatar } from '@dicebear/core';
import { avataaars } from '@dicebear/collection';
const avatar = createAvatar(avataaars, {
// ... options
});
const svg = avatar.toString();
See JS-Library docs for more information.
First install the CLI package via npm:
npm install --global dicebear
Then you can create this avatar as follows:
dicebear avataaars
See CLI docs for more information.
Options
seed
TypestringThe seed determines the initial value for the built-in PRNG. With the PRNG you can create the same avatar over and over again based.
FelixAnekahttps://api.dicebear.com/9.x/avataaars/svg?seed=Felix
createAvatar(avataaars, {
seed: "Felix"
});dicebear avataaars --seed "Felix"
flip
Typebooleanfalsetruefalsehttps://api.dicebear.com/9.x/avataaars/svg?flip=false
createAvatar(avataaars, {
flip: false
});dicebear avataaars --flip false
rotate
TypeintegerMinimum 0Maximum 3600901802700https://api.dicebear.com/9.x/avataaars/svg?rotate=0
createAvatar(avataaars, {
rotate: 0
});dicebear avataaars --rotate 0
scale
TypeintegerMinimum 0Maximum 20050100200100https://api.dicebear.com/9.x/avataaars/svg?scale=50
createAvatar(avataaars, {
scale: 50
});dicebear avataaars --scale 50
radius
TypeintegerMinimum 0Maximum 50010203040500https://api.dicebear.com/9.x/avataaars/svg?radius=0
createAvatar(avataaars, {
radius: 0
});dicebear avataaars --radius 0
size
TypeintegerMinimum 13248648096https://api.dicebear.com/9.x/avataaars/svg?size=32
createAvatar(avataaars, {
size: 32
});dicebear avataaars --size 32
backgroundColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$b6e3f4c0aeded1d4f9ffd5dcffdfbf65c9ffhttps://api.dicebear.com/9.x/avataaars/svg?backgroundColor=b6e3f4,c0aede,d1d4f9
createAvatar(avataaars, {
backgroundColor: ["b6e3f4","c0aede","d1d4f9"]
});dicebear avataaars --backgroundColor "b6e3f4" "c0aede" "d1d4f9"
backgroundType
TypearraygradientLinearsolidsolidhttps://api.dicebear.com/9.x/avataaars/svg?backgroundType=gradientLinear,solid
createAvatar(avataaars, {
backgroundType: ["gradientLinear","solid"]
});dicebear avataaars --backgroundType "gradientLinear" "solid"
backgroundRotation
Typearray Specify an array of two numbers for this option. The PRNG will generate a number between the two values, which will be used as the rotation degree. The rotation is only visible if backgroundType is set to ['gradientLinear'].
0360https://api.dicebear.com/9.x/avataaars/svg?backgroundRotation=0,360
createAvatar(avataaars, {
backgroundRotation: [0,360]
});dicebear avataaars --backgroundRotation 0 360
translateX
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/avataaars/svg?translateX=-50
createAvatar(avataaars, {
translateX: -50
});dicebear avataaars --translateX -50
translateY
TypeintegerMinimum -100Maximum 100-50-25025500https://api.dicebear.com/9.x/avataaars/svg?translateY=-50
createAvatar(avataaars, {
translateY: -50
});dicebear avataaars --translateY -50
clip
Typebooleantruehttps://api.dicebear.com/9.x/avataaars/svg?clip=true
createAvatar(avataaars, {
clip: true
});dicebear avataaars --clip true
randomizeIds
TypebooleanThis option randomize the IDs in the generated SVG / XML. This can be useful for example if the avatars are included directly in the HTML and you want to avoid ID collisions.
falsehttps://api.dicebear.com/9.x/avataaars/svg?randomizeIds=false
createAvatar(avataaars, {
randomizeIds: false
});dicebear avataaars --randomizeIds false
accessories
Typearrayeyepatchkurtprescription01prescription02roundsunglasseswayfarerseyepatchkurtprescription01prescription02roundsunglasseswayfarershttps://api.dicebear.com/9.x/avataaars/svg?accessories=eyepatch,kurt,prescription01
createAvatar(avataaars, {
accessories: ["eyepatch","kurt","prescription01"]
});dicebear avataaars --accessories "eyepatch" "kurt" "prescription01"
accessoriesColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$3c4f5c65c9ff262e335199e425557c929598a7ffc4b1e2ffe6e6e6ff5c5cff488effafb9ffdeb5ffffb1ffffffhttps://api.dicebear.com/9.x/avataaars/svg?accessoriesColor=3c4f5c,65c9ff,262e33
createAvatar(avataaars, {
accessoriesColor: ["3c4f5c","65c9ff","262e33"]
});dicebear avataaars --accessoriesColor "3c4f5c" "65c9ff" "262e33"
accessoriesProbability
TypeintegerMinimum 0Maximum 100010010https://api.dicebear.com/9.x/avataaars/svg?accessoriesProbability=0
createAvatar(avataaars, {
accessoriesProbability: 0
});dicebear avataaars --accessoriesProbability 0
base
Typearraydefaultdefaulthttps://api.dicebear.com/9.x/avataaars/svg?base=default
createAvatar(avataaars, {
base: ["default"]
});dicebear avataaars --base "default"
clothesColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$3c4f5c65c9ff262e335199e425557c929598a7ffc4b1e2ffe6e6e6ff5c5cff488effafb9ffffb1ffffffhttps://api.dicebear.com/9.x/avataaars/svg?clothesColor=3c4f5c,65c9ff,262e33
createAvatar(avataaars, {
clothesColor: ["3c4f5c","65c9ff","262e33"]
});dicebear avataaars --clothesColor "3c4f5c" "65c9ff" "262e33"
clothing
TypearrayblazerAndShirtblazerAndSweatercollarAndSweatergraphicShirthoodieoverallshirtCrewNeckshirtScoopNeckshirtVNeckblazerAndShirtblazerAndSweatercollarAndSweatergraphicShirthoodieoverallshirtCrewNeckshirtScoopNeckshirtVNeckhttps://api.dicebear.com/9.x/avataaars/svg?clothing=blazerAndShirt,blazerAndSweater,collarAndSweater
createAvatar(avataaars, {
clothing: ["blazerAndShirt","blazerAndSweater","collarAndSweater"]
});dicebear avataaars --clothing "blazerAndShirt" "blazerAndSweater" "collarAndSweater"
clothingGraphic
TypearraybatbearcumbiadeerdiamondholapizzaresistskullskullOutlinebatbearcumbiadeerdiamondholapizzaresistskullskullOutlinehttps://api.dicebear.com/9.x/avataaars/svg?clothingGraphic=bat,bear,cumbia
createAvatar(avataaars, {
clothingGraphic: ["bat","bear","cumbia"]
});dicebear avataaars --clothingGraphic "bat" "bear" "cumbia"
eyebrows
TypearrayangryangryNaturaldefaultdefaultNaturalflatNaturalfrownNaturalraisedExcitedraisedExcitedNaturalsadConcernedsadConcernedNaturalunibrowNaturalupDownupDownNaturalangryangryNaturaldefaultdefaultNaturalflatNaturalfrownNaturalraisedExcitedraisedExcitedNaturalsadConcernedsadConcernedNaturalunibrowNaturalupDownupDownNaturalhttps://api.dicebear.com/9.x/avataaars/svg?eyebrows=angry,angryNatural,default
createAvatar(avataaars, {
eyebrows: ["angry","angryNatural","default"]
});dicebear avataaars --eyebrows "angry" "angryNatural" "default"
eyes
TypearrayclosedcrydefaulteyeRollhappyheartssidesquintsurprisedwinkwinkWackyxDizzyclosedcrydefaulteyeRollhappyheartssidesquintsurprisedwinkwinkWackyxDizzyhttps://api.dicebear.com/9.x/avataaars/svg?eyes=closed,cry,default
createAvatar(avataaars, {
eyes: ["closed","cry","default"]
});dicebear avataaars --eyes "closed" "cry" "default"
facialHair
TypearraybeardLightbeardMajesticbeardMediummoustacheFancymoustacheMagnumbeardLightbeardMajesticbeardMediummoustacheFancymoustacheMagnumhttps://api.dicebear.com/9.x/avataaars/svg?facialHair=beardLight,beardMajestic,beardMedium
createAvatar(avataaars, {
facialHair: ["beardLight","beardMajestic","beardMedium"]
});dicebear avataaars --facialHair "beardLight" "beardMajestic" "beardMedium"
facialHairColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$2c1b184a312c724133a55728b58143c93305d6b370e8e1e1ecdcbff59797https://api.dicebear.com/9.x/avataaars/svg?facialHairColor=2c1b18,4a312c,724133
createAvatar(avataaars, {
facialHairColor: ["2c1b18","4a312c","724133"]
});dicebear avataaars --facialHairColor "2c1b18" "4a312c" "724133"
facialHairProbability
TypeintegerMinimum 0Maximum 100010010https://api.dicebear.com/9.x/avataaars/svg?facialHairProbability=0
createAvatar(avataaars, {
facialHairProbability: 0
});dicebear avataaars --facialHairProbability 0
hairColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$2c1b184a312c724133a55728b58143c93305d6b370e8e1e1ecdcbff59797https://api.dicebear.com/9.x/avataaars/svg?hairColor=2c1b18,4a312c,724133
createAvatar(avataaars, {
hairColor: ["2c1b18","4a312c","724133"]
});dicebear avataaars --hairColor "2c1b18" "4a312c" "724133"
hatColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$3c4f5c65c9ff262e335199e425557c929598a7ffc4b1e2ffe6e6e6ff5c5cff488effafb9ffdeb5ffffb1ffffffhttps://api.dicebear.com/9.x/avataaars/svg?hatColor=3c4f5c,65c9ff,262e33
createAvatar(avataaars, {
hatColor: ["3c4f5c","65c9ff","262e33"]
});dicebear avataaars --hatColor "3c4f5c" "65c9ff" "262e33"
mouth
TypearrayconcerneddefaultdisbeliefeatinggrimacesadscreamOpenserioussmiletonguetwinklevomitconcerneddefaultdisbeliefeatinggrimacesadscreamOpenserioussmiletonguetwinklevomithttps://api.dicebear.com/9.x/avataaars/svg?mouth=concerned,default,disbelief
createAvatar(avataaars, {
mouth: ["concerned","default","disbelief"]
});dicebear avataaars --mouth "concerned" "default" "disbelief"
nose
Typearraydefaultdefaulthttps://api.dicebear.com/9.x/avataaars/svg?nose=default
createAvatar(avataaars, {
nose: ["default"]
});dicebear avataaars --nose "default"
skinColor
TypearrayItem Pattern ^(transparent|[a-fA-F0-9]{6})$614335ae5d29d08b5bedb98af8d25cfd9841ffdbb4https://api.dicebear.com/9.x/avataaars/svg?skinColor=614335,ae5d29,d08b5b
createAvatar(avataaars, {
skinColor: ["614335","ae5d29","d08b5b"]
});dicebear avataaars --skinColor "614335" "ae5d29" "d08b5b"
style
Typearraycircledefaultdefaulthttps://api.dicebear.com/9.x/avataaars/svg?style=circle,default
createAvatar(avataaars, {
style: ["circle","default"]
});dicebear avataaars --style "circle" "default"
top
TypearraybigHairbobbuncurlycurvydreadsdreads01dreads02fridafrizzlefrofroBandhathijablongButNotTooLongmiaWallaceshaggyshaggyMulletshavedSidesshortCurlyshortFlatshortRoundshortWavedsidesstraight01straight02straightAndStrandtheCaesartheCaesarAndSidePartturbanwinterHat1winterHat02winterHat03winterHat04bigHairbobbuncurlycurvydreadsdreads01dreads02fridafrizzlefrofroBandhathijablongButNotTooLongmiaWallaceshaggyshaggyMulletshavedSidesshortCurlyshortFlatshortRoundshortWavedsidesstraight01straight02straightAndStrandtheCaesartheCaesarAndSidePartturbanwinterHat1winterHat02winterHat03winterHat04https://api.dicebear.com/9.x/avataaars/svg?top=bigHair,bob,bun
createAvatar(avataaars, {
top: ["bigHair","bob","bun"]
});dicebear avataaars --top "bigHair" "bob" "bun"
topProbability
TypeintegerMinimum 0Maximum 1000100100https://api.dicebear.com/9.x/avataaars/svg?topProbability=0
createAvatar(avataaars, {
topProbability: 0
});dicebear avataaars --topProbability 0
Details
| Naming | |
|---|---|
| Collection Import | import { avataaars } from '@dicebear/collection'; |
| Package Import | import * as style from '@dicebear/avataaars'; |
| CLI | dicebear avataaars |
| HTTP-API | https://api.dicebear.com/9.x/avataaars/svg |
| JSON Schema | https://api.dicebear.com/9.x/avataaars/schema.json |
| Source | |
|---|---|
| Title | Avataaars |
| Creator | Pablo Stanley |
| Website | https://twitter.com/pablostanley |
| License | Free for personal and commercial use |
| Source | https://avataaars.com/ |