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

# Generate Trinity Face



## OpenAPI

````yaml https://api.simli.ai/openapi.yaml post /faces/trinity
openapi: 3.1.0
info:
  title: Simli
  version: 1.0.0
servers:
  - url: https://api.simli.ai/
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /faces/trinity:
    post:
      summary: Generate Trinity Face
      operationId: enqueueGSAGeneration_faces_gs_create_post
      parameters:
        - name: target-ratio
          in: header
          required: false
          description: >-
            The TARGET-RATIO header returned by POST /faces/trinity/preprocess,
            passed back together with the image that call returned. Its presence
            means the image is already framed, so it is used as-is. Omit it when
            posting an image that has not been through preprocess: the image is
            then framed here first, which adds roughly 25 seconds, and the ratio
            is measured rather than taken from you. Preprocess with the same
            gsVersion as this call: the two frame the image differently.
          schema:
            type: number
            format: float
            title: Target Ratio
        - name: gsVersion
          in: query
          required: false
          description: >-
            The avatar generation to make. GSA_2.0 (the default) makes a
            Trinity-2 face and runs on your Trinity-2 generations: one is used
            when the face is built (a failed build uses none), and each
            generation still queued or building holds one meanwhile. One
            account's GSA_2.0 generations start at least 10 minutes apart; a
            request inside that window is accepted at once and held in the
            queue, and the response's dispatch_after says until when. GSA_1.0
            makes a Trinity-1 face and takes one of your plan's face slots; it
            is only available to accounts created before October 26, 2026.
          schema:
            allOf:
              - $ref: '#/components/schemas/TrinityVersion'
            default: GSA_2.0
        - name: face_name
          in: query
          required: false
          schema:
            type: string
            default: untitled_avatar
            title: Face Name
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_enqueueGSAGeneration_faces_gs_create_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: >-
                      The generation's place in the queue, and how long it is
                      held, if it is.
                  face_id:
                    type: string
                    description: >-
                      The new face's ID. Poll GET
                      /faces/trinity/generation_status with it.
                  dispatch_after:
                    type: integer
                    description: >-
                      GSA_2.0 only, when the generation is held by the 10
                      minutes between one account's GSA_2.0 generations: the
                      Unix time (seconds) it may start. Absent otherwise.
                  warnings:
                    type: array
                    items:
                      type: string
                required:
                  - message
                  - face_id
                  - warnings
        '403':
          description: >-
            Out of avatars for this gsVersion: with GSA_2.0, you have no
            Trinity-2 generations left; with GSA_1.0, every face slot of your
            plan is taken. Also returned for GSA_1.0 on an account created on or
            after October 26, 2026, which can only make GSA_2.0 faces.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TrinityVersion:
      type: string
      description: >-
        The avatar generation: GSA_2.0 makes a Trinity-2 face, GSA_1.0 a
        Trinity-1 face (accounts created before October 26, 2026 only).
      enum:
        - GSA_1.0
        - GSA_2.0
      title: GSVersion
    Body_enqueueGSAGeneration_faces_gs_create_post:
      properties:
        image:
          type: string
          format: binary
          title: Image
      type: object
      required:
        - image
      title: Body_enqueueGSAGeneration_faces_gs_create_post
    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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-simli-api-key

````

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