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

# Create Instant Avatar

> Upload a photo and create a Quick Start (image-mode) avatar.

Accepts multipart form data with a 'photo' file (JPEG, PNG, WebP) plus
the gate-1 consent payload: ``consent_attestation`` (must be true) and
``subject_is_minor`` (must be false — minors hard-stop). Optional
``voice_id`` (catalog voice name) and ``default_prompt`` (default script)
are stored on the avatar config. The request IP and a UTC timestamp are
captured server-side into the team's consent_log. No HeyGen creation call —
the photo IS the render input.



## OpenAPI

````yaml /openapi.json post /api/v1/teams/{team_id}/avatar/instant
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/teams/{team_id}/avatar/instant:
    post:
      tags:
        - Teams
      summary: Create Instant Avatar
      description: >-
        Upload a photo and create a Quick Start (image-mode) avatar.


        Accepts multipart form data with a 'photo' file (JPEG, PNG, WebP) plus

        the gate-1 consent payload: ``consent_attestation`` (must be true) and

        ``subject_is_minor`` (must be false — minors hard-stop). Optional

        ``voice_id`` (catalog voice name) and ``default_prompt`` (default
        script)

        are stored on the avatar config. The request IP and a UTC timestamp are

        captured server-side into the team's consent_log. No HeyGen creation
        call —

        the photo IS the render input.
      operationId: create_instant_avatar_api_v1_teams__team_id__avatar_instant_post
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_create_instant_avatar_api_v1_teams__team_id__avatar_instant_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_create_instant_avatar_api_v1_teams__team_id__avatar_instant_post:
      properties:
        photo:
          type: string
          contentMediaType: application/octet-stream
          title: Photo
        consent_attestation:
          type: boolean
          title: Consent Attestation
        subject_is_minor:
          type: boolean
          title: Subject Is Minor
        voice_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Id
        default_prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Prompt
      type: object
      required:
        - photo
        - consent_attestation
        - subject_is_minor
      title: Body_create_instant_avatar_api_v1_teams__team_id__avatar_instant_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:
    HTTPBearer:
      type: http
      scheme: bearer

````