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

# Crun P Video Avatar API

> Generate talking-head videos from a single portrait image plus either a script or an audio clip. Upload a photo, give it words to say (or audio to lip-sync to), and get back a video of the person speaking.

## Overview

p-video-avatar is Pruna’s first avatar model. It’s optimized for speed and cost — the cheapest
avatar/lipsync option in this category — while still producing natural lip movements and facial expressions.

## Query Task Status

After submitting a task, use the unified query endpoint to check progress and retrieve results:

<Card title="Get Task Info" icon="magnifying-glass" href="/models/common/get-task-info">
  Learn how to query task status and retrieve generation results
</Card>

<Tip>
  For production use, we recommend using the `callback_url` parameter to receive automatic notifications when generation completes, rather than polling the status endpoint.
</Tip>

## Related Resources

<CardGroup cols={2}>
  <Card title="Models Overview" icon="store" href="/models/quickstart">
    Explore all available models
  </Card>

  <Card title="Common API" icon="gear" href="/common-api/get-account-credits">
    Check credits and account usage
  </Card>
</CardGroup>


## OpenAPI

````yaml models/prunaai/p-video-avatar.json post /api/v1/client/job/CreateTask
openapi: 3.0.0
info:
  title: Crun prunaai p-video-avatar API
  description: crun.ai Prunaai API Documentation
  version: 1.0.0
  contact:
    name: Technical Support
    email: support@crun.ai
servers:
  - url: https://api.crun.ai
    description: API Server
security:
  - ApiKeyAuth: []
paths:
  /api/v1/client/job/CreateTask:
    post:
      summary: prunaai p-video-avatar image to video generation
      operationId: prunaai/p-video-avatar
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - prunaai/p-video-avatar
                  description: |-
                    The model name to use for generation. Required field.

                    - Must be `prunaai/p-video-avatar` for this endpoint
                callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. Callback URL for receiving task completion
                    notifications.


                    - System will POST task status and results to this URL when
                    generation completes

                    - Callback payloads structure is consistent with the `data`
                    object returned by the task status query

                    - Your callback endpoint should accept POST requests with
                    JSON payload containing results

                    - It returns an HTTP 200 status code upon successful receipt
                  example: https://your-domain.com/api/callback
                input:
                  type: object
                  description: >-
                    Input parameters for the PrunaAI Video Avatar model. At
                    least one of `audio_url` and `text` should be provided.
                  properties:
                    image_url:
                      type: string
                      format: uri
                      description: >-
                        Input p-video-avatar image. Supports jpg, jpeg, png,
                        webp.
                      example: https://example.com/avatar.jpg
                    resolution:
                      type: string
                      description: 'Resolution of the video. '
                      enum:
                        - 720p
                        - 1080p
                      default: 720p
                      example: 720p
                    audio_url:
                      type: string
                      format: uri
                      nullable: true
                      description: >-
                        Optional uploaded audio to condition video generation.
                        If both audio and script are provided, uploaded audio is
                        used.
                      example: https://example.com/audio.mp3
                    voice:
                      type: string
                      nullable: true
                      description: Voice for generated speech.
                      enum:
                        - Zephyr (Female)
                        - Puck (Male)
                        - Charon (Male)
                        - Kore (Female)
                        - Fenrir (Male)
                        - Leda (Female)
                        - Orus (Male)
                        - Aoede (Female)
                        - Callirrhoe (Female)
                        - Autonoe (Female)
                        - Enceladus (Male)
                        - Iapetus (Male)
                        - Umbriel (Male)
                        - Algenib (Male)
                        - Despina (Female)
                        - Erinome (Female)
                        - Laomedeia (Female)
                        - Achernar (Female)
                        - Algieba (Male)
                        - Schedar (Male)
                        - Gacrux (Female)
                        - Pulcherrima (Female)
                        - Achird (Male)
                        - Zubenelgenubi (Male)
                        - Vindemiatrix (Female)
                        - Sadachbia (Male)
                        - Sadaltager (Male)
                        - Sulafat (Female)
                        - Alnilam (Male)
                        - Rasalgethi (Male)
                      example: Zephyr (Female)
                    voice_language:
                      type: string
                      description: Output language
                      enum:
                        - English (US)
                        - English (UK)
                        - Spanish
                        - French
                        - German
                        - Italian
                        - Portuguese (Brazil)
                        - Japanese
                        - Korean
                        - Hindi
                      default: English (US)
                      example: English (US)
                    text:
                      type: string
                      nullable: true
                      description: Text for the person to say when no audio is uploaded.
                      minLength: 1
                      maxLength: 5000
                      example: Hello everyone, welcome to our presentation.
                    voice_prompt:
                      type: string
                      nullable: true
                      description: Optional speaking style, tone, pacing, emotion.
                      minLength: 1
                      maxLength: 1000
                      example: Warm, friendly female narration voice.
                    video_prompt:
                      type: string
                      nullable: true
                      description: Optional prompt for the video.
                      minLength: 1
                      maxLength: 5000
                      example: >-
                        The avatar smiles naturally and speaks with subtle head
                        movements.
                    disable_safety_filter:
                      type: boolean
                      description: Disable safety filter for prompts and input image.
                      default: true
                      example: true
                  required:
                    - image_url
            example:
              model: prunaai/p-video-avatar
              input:
                image_url: https://example.com/avatar.jpg
                resolution: 1080p
                voice: Zephyr (Female)
                voice_language: English (US)
                text: Hello everyone, welcome to our presentation today.
                voice_prompt: Warm, professional female narration voice.
                video_prompt: >-
                  The avatar speaks naturally with subtle facial expressions and
                  smooth head movements.
                disable_safety_filter: true
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          task_id:
                            type: string
                            description: >-
                              Task ID, can be used with Get Task Details
                              endpoint to query task status
                            example: task_12345678
              example:
                code: 200
                message: success
                data:
                  task_id: task_12345678
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ApiResponse'
                  - type: object
                    properties:
                      errors:
                        type: array
                        description: Detailed validation error messages
                        items:
                          type: string
                        example:
                          - specific error field message
              example:
                code: 422
                message: Missing Params or Type Error
                errors:
                  - specific error field message
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    ApiResponse:
      type: object
      properties:
        code:
          type: integer
          enum:
            - 200
            - 401
            - 402
            - 404
            - 422
            - 429
            - 455
            - 500
            - 501
            - 505
          description: >-
            Response status code


            - **200**: Success - Request has been processed successfully

            - **401**: Unauthorized - Authentication credentials are missing or
            invalid

            - **402**: Insufficient Credits - Account does not have enough
            credits to perform the operation

            - **404**: Not Found - The requested resource or endpoint does not
            exist

            - **422**: Validation Error - The request parameters failed
            validation checks

            - **429**: Rate Limited - Request limit has been exceeded for this
            resource

            - **455**: Service Unavailable - System is currently undergoing
            maintenance

            - **500**: Server Error - An unexpected error occurred while
            processing the request

            - **501**: Generation Failed - Content generation task failed

            - **505**: Feature Disabled - The requested feature is currently
            disabled
        message:
          type: string
          description: Response message, error description when failed
          example: success
  responses:
    Error:
      description: Server Error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        All APIs require authentication via API Key.


        Get API Key:

        1. Visit [API Key Management Page](https://crun.ai/user-api-key) to get
        your API Key


        Usage:

        Add to request header:


        x-api-key: YOUR_API_KEY


        Note:

        - Keep your API Key secure and do not share it with others

        - If you suspect your API Key has been compromised, reset it immediately
        in the management page

````