Free plan

Avatar maker

Create a profile picture from a name, with no photo needed
POST
/v1/images/avatar

About this tool

Makes a profile picture from a name or any word you type. You can pick the style (letters on a colour, a block pattern, a gradient or a pixel pattern), the shape (circle, rounded or square), the size and the colours. The same name always gives the same picture. This tool needs no file.
For example, you type Anna Brown to get the letters AB on a coloured circle for a user who has no photo.

How to use it

  1. Choose this tool.
  2. Type a name, or any word, in the name box.
  3. Choose the style, the shape and the colours you like.
  4. Press Generate.
  5. Download your picture.

What you get back

You get a new profile picture file (PNG, JPEG, WebP, AVIF or SVG, as you chose) that you can download.
GOOD TO KNOW
Takes no file. Counts as one image.
TEST IT LIVE

Try Avatar maker in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/avatar
Tool ID
images.avatar
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/avatar" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'name=Ada Lovelace' \
  -F 'seed=user-4711' \
  -F 'style=initials'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.avatar({
    "name": "Ada Lovelace",
    "seed": "user-4711",
    "style": "initials"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->avatar([
    'name' => 'Ada Lovelace',
    'seed' => 'user-4711',
    'style' => 'initials',
]);
echo $result->requestId;
FAQ

Frequently asked questions

A profile picture from a name or any seed: initials on a colour, an identicon pattern, a gradient or a pixel pattern. The same seed always gives the same picture.

Avatar maker works from text and settings, so no file is needed. Every input is optional.

Avatar maker is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/avatar with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.