Image Generation

Generate Avatar

Changed on

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.

post/image/v1/generate_avatar

Request

  • Base URL
    https://api.exh.ai
  • URL
    https://api.exh.ai/image/v1/generate_avatar
  • Auth
    HTTP bearer

Headers

X-Request-Idstring

Request body

promptstring 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.

Example request

{
  "prompt": "cyber woman with pink hair and tattoos"
}

Response

Successful Response

image_b64string required

Generated avatar image as base64 string.

Changes

    • breaking

      for the header request parameter X-Request-Id, default value was changed from 6656aadf-eedf-4952-9342-9d794762ffd1 to 4962d1e8-41e3-4e38-9afb-ae7f9a8af9ed

    • breaking

      for the header request parameter X-Request-Id, default value was changed from 329e7d9a-f1f4-4c14-b361-d5e6c9308947 to 6656aadf-eedf-4952-9342-9d794762ffd1