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

# Start Build

> Build a face's style from the material you uploaded to it.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/style/builds
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/style/builds:
    post:
      tags:
        - Style
      summary: Start Build
      description: Build a face's style from the material you uploaded to it.
      operationId: start_build_v1_style_builds_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuildRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildJobResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BuildRequest:
      properties:
        self_face:
          type: string
          title: Self Face
        model:
          type: string
          title: Model
          default: gpt-6-luna
        oauth_only:
          type: boolean
          title: Oauth Only
          default: false
        sources:
          items:
            $ref: '#/components/schemas/SourceRef'
          type: array
          title: Sources
        compile:
          type: boolean
          title: Compile
          default: true
      type: object
      required:
        - self_face
        - sources
      title: BuildRequest
      description: Build a face's style from material you have uploaded to it.
    BuildJobResponse:
      properties:
        job_id:
          type: string
          title: Job Id
        status:
          type: string
          title: Status
      type: object
      required:
        - job_id
        - status
      title: BuildJobResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SourceRef:
      properties:
        id:
          type: string
          title: Id
        medium:
          anyOf:
            - type: string
            - type: 'null'
          title: Medium
        source_type:
          type: string
          title: Source Type
          description: '`thread` (the default) or `document`.'
          default: thread
      type: object
      required:
        - id
      title: SourceRef
      description: >-
        One thread or document to build from, with the MEDIUM of writing it
        contains.
    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.