---
title: "Generate Avatar"
method: POST
path: "/image/v1/generate_avatar"
tags: ["Image Generation"]
---

# Generate Avatar

`POST /image/v1/generate_avatar`

Produces a personalized avatar image based on a textual description provided by the user.

It is ideal for creating unique profile pictures, characters for games,
or digital representations for various applications.

## Headers

- `X-Request-Id` string

## Request body

- AvatarRequestSchema
  - `prompt` string, required — Character description to generate avatar with.
  - `nsfw_policy` 'filter' | 'allow' — Policy for handling NSFW results. When NSFW images are filtered - an error with code 535 is returned.

## Response `200`

Successful Response

- AvatarResponseSchema
  - `image_b64` string, required — Generated avatar image as base64 string.

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-04** `079926482089` — 1 breaking
  - for the `header` request parameter `X-Request-Id`, default value was changed from `5218de25-1222-4f95-acfb-f2abdd1b6c38` to `2265f6e2-a960-47be-9785-7d36353796a8`

[Change history](https://skmtc.dev/exh/apis/ex-human/changes/image/v1/generate_avatar/post.md)

---

[API](https://skmtc.dev/exh/apis/ex-human.md) · [All operations](https://skmtc.dev/exh/apis/ex-human/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/exh/ex-human/revisions/cd3ee850caf2/schema)
