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

# Create Lip Sync Video Task

> Submit a video URL and an audio URL to create a lip sync task.
Use the returned task ID to poll for processing status and results.


Submit a source video URL and a source audio URL to create a lip sync video task.

## Example Usage

```bash theme={null}
curl --request POST \
  --url 'https://api.jogg.ai/v2/create_lip_sync_video' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "video_url": "https://res.jogg.ai/source-video.mp4",
    "audio_url": "https://res.jogg.ai/source-audio.wav",
    "playback_type": "normal"
  }'
```

## Related Guides

<CardGroup cols={2}>
  <Card title="Get Lip Sync Task Status" href="/api-reference/v2/Video/GetLipSyncVideo">
    Check task processing status and results
  </Card>
</CardGroup>


## OpenAPI

````yaml POST /v2/create_lip_sync_video
openapi: 3.0.1
info:
  title: JoggAI OpenAPI v2
  description: >
    JoggAI OpenAPI v2 provides a comprehensive suite of endpoints for creating
    and managing AI-powered video content.


    ## Authentication

    All API requests require authentication using an API key provided in the
    `x-api-key` header.


    ## Base URL

    Production: https://api.jogg.ai/v2


    ## Rate Limiting

    API calls are subject to rate limiting based on your subscription plan.


    ## Error Handling

    All endpoints return standard HTTP status codes along with detailed error
    messages in the response body.
  version: 2.0.0
  license:
    name: MIT
servers:
  - url: https://api.jogg.ai
    description: Production server
security:
  - apiKeyAuth: []
tags:
  - name: Video
    description: Video creation and management operations
  - name: Avatar
    description: Avatar management and creation operations
  - name: Voice
    description: Voice and timbre management operations
  - name: Asset
    description: Asset management including music, scripts, and uploads
  - name: Template
    description: Template management operations
  - name: Product
    description: Product management operations
  - name: User
    description: User account operations
  - name: Webhook
    description: Webhook endpoint management for event notifications
paths:
  /v2/create_lip_sync_video:
    post:
      tags:
        - Video
      summary: Create lip sync video task
      description: |
        Submit a video URL and an audio URL to create a lip sync task.
        Use the returned task ID to poll for processing status and results.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - video_url
                - audio_url
              properties:
                video_url:
                  type: string
                  format: uri
                  description: Source video URL
                  example: https://res.jogg.ai/source-video.mp4
                audio_url:
                  type: string
                  format: uri
                  description: Source audio URL
                  example: https://res.jogg.ai/source-audio.wav
                playback_type:
                  type: string
                  description: Playback strategy when source video is shorter than audio
                  enum:
                    - normal
                    - normal_reverse
                    - normal_reverse_by_audio
                  default: normal
                  example: normal
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          task_id:
                            type: string
                            description: Lip sync task ID
                            example: 3d5c6930-d0da-4f7b-826e-cd1530f6734f
                          status:
                            type: string
                            description: Initial task status
                            enum:
                              - pending
                              - processing
                              - success
                              - failed
                            example: pending
components:
  schemas:
    BaseResponse:
      type: object
      required:
        - code
        - msg
      properties:
        code:
          type: integer
          description: |
            Business status code:
            * 0 - Success
            * 10104 - Record not found
            * 10105 - Invalid API key
            * 18020 - Insufficient credit
            * 18025 - No permission to call APIs
            * 40000 - Parameter error
            * 50000 - System error
          example: 0
        msg:
          type: string
          description: Response message
          example: Success
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Obtain your key from the JoggAI dashboard.

````