---
title: "Generate the initial face reference photo for an avatar persona."
method: POST
path: "/api/v1/ideation/generate-face"
tags: ["Ideation"]
---

# Generate the initial face reference photo for an avatar persona.

`POST /api/v1/ideation/generate-face`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/ideation/generate-face`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Billed exactly like the SPA face path so no route hands out free vendor<br/>spend: a free account's first images use the free allowance (over the cap<br/>is a 402); a paid account is charged 1 image credit via the meter<br/>(reserved before the model call, settled on success, released on failure);<br/>admins bypass.

## Request body

- GenerateFaceRequest
  - `age` string
  - `avatar_id` integer, nullable
  - `description` string
  - `gender` string
  - `name` string
  - `origin` string
  - `outfit` string
  - `religion` string

## Response `200`

OK

- GenerateFaceResponse
  - `face_image` string
  - `image_url` string

## Other responses

- `402`: Payment Required
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
