> ## Documentation Index
> Fetch the complete documentation index at: https://docs.headwaters.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Save Face Avatar

> Generate a portrait of this face and keep it as the face's avatar.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/faces/{face_id}/avatar
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/faces/{face_id}/avatar:
    post:
      tags:
        - Faces
      summary: Save Face Avatar
      description: Generate a portrait of this face and keep it as the face's avatar.
      operationId: save_face_avatar_v1_faces__face_id__avatar_post
      parameters:
        - name: face_id
          in: path
          required: true
          schema:
            type: string
            title: Face Id
        - name: seed
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 999999999
                minimum: 0
              - type: 'null'
            description: Fix the seed to reproduce a particular avatar.
            title: Seed
          description: Fix the seed to reproduce a particular avatar.
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FaceAvatarSaveResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FaceAvatarSaveResponse:
      properties:
        version:
          type: integer
          title: Version
        stale:
          type: boolean
          title: Stale
          default: false
        etag:
          type: string
          title: Etag
        rows:
          type: integer
          title: Rows
        cols:
          type: integer
          title: Cols
        bytes:
          type: integer
          title: Bytes
        seed:
          anyOf:
            - type: integer
            - type: 'null'
          title: Seed
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        alias:
          type: string
          title: Alias
        url:
          type: string
          title: Url
        current_url:
          type: string
          title: Current Url
        amount_charged_usd:
          type: number
          title: Amount Charged Usd
      type: object
      required:
        - version
        - etag
        - rows
        - cols
        - bytes
        - alias
        - url
        - current_url
        - amount_charged_usd
      title: FaceAvatarSaveResponse
      description: The version just written, and where to fetch it.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.