# JoggAI

> Generate avatar videos, synthesize speech, and browse JoggAI assets.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/jogg-ai

## Actions

### Create avatar video

Create talking avatar video.

**Inputs**

- Avatar type (`avatar_type`, number, required): Select a public or custom avatar. One of: `0` (Public avatar), `1` (Custom avatar).
- Avatar ID (`avatar_id`, number, required): ID from List public avatars or List custom avatars. At least 1.
- Type (`type`, text, required): Voice input type. One of: `script`, `audio`.
- Script (`script`, text): Text script for voice synthesis (required when type is "script")
- Audio url (`audio_url`, text): Audio file URL for voice input (required when type is "audio")
- Voice (`voice_id`, text, required): Voice ID for text-to-speech
- Aspect ratio (`aspect_ratio`, text, required): Aspect ratio of the output video. One of: `portrait`, `landscape`, `square`.
- Screen style (`screen_style`, number, required): Background style: * 1 - Full screen * 2 - Split screen * 3 - Picture in picture. One of: `1` (Full screen), `2` (Split screen), `3` (Picture in picture).
- Caption (`caption`, true/false): Enable or disable subtitles
- Video name (`video_name`, text): Custom name for the video

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "video_id": "example"
    },
    "msg": "example"
  }
}
```

### Create lip sync video

Create lip sync video task.

**Inputs**

- Video url (`video_url`, text, required): Source video URL
- Audio url (`audio_url`, text, required): Source audio URL
- Playback type (`playback_type`, text): Playback strategy when source video is shorter than audio. One of: `normal`, `normal_reverse` (Normal reverse), `normal_reverse_by_audio` (Normal reverse by audio). Default: `normal`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "status": "pending",
      "task_id": "example"
    },
    "msg": "example"
  }
}
```

### Get account

Get Current User Information.

**Inputs**: None.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "email": "example",
      "username": "example"
    },
    "msg": "example"
  }
}
```

### Get avatar video

Retrieve talking avatar video.

**Inputs**

- Id (`id`, text, required): Video ID from video creation endpoint

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "cover_url": "example",
      "created_at": 1,
      "status": "pending",
      "video_id": "example",
      "video_url": "example"
    },
    "msg": "example"
  }
}
```

### Get custom template

Get specific custom template details.

**Inputs**

- Id (`id`, number, required): Template ID. At least 1.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "aspect_ratio": 1,
      "cover_url": "example",
      "name": "example",
      "preview_url": "example",
      "template_id": 1,
      "variables": []
    },
    "msg": "example"
  }
}
```

### Get lip sync video

Get lip sync task by task ID.

**Inputs**

- Task ID (`task_id`, text, required): Lip sync task ID

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "completed_at": 1,
      "created_at": 1,
      "data": {
        "cover_url": "example",
        "duration_seconds": 1.0,
        "result_url": "example"
      },
      "error": {
        "message": "example"
      },
      "status": "pending",
      "task_id": "example"
    },
    "msg": "example"
  }
}
```

### Get remaining credits

Get Remaining Quota.

**Inputs**: None.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "remaining_quota": 1.0
    },
    "msg": "example"
  }
}
```

### Get speech task

Get speech task.

**Inputs**

- Task ID (`task_id`, text, required): Task ID returned by speech synthesis.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "duration_seconds": 1.0,
      "error_message": "example",
      "progress": 1,
      "status": "processing",
      "subtitle_url": "example",
      "task_id": "example",
      "url": "example"
    },
    "msg": "example"
  }
}
```

### Get template video

Get template video status and details.

**Inputs**

- Video ID (`video_id`, text, required): Video ID

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "completed_at": 1,
      "created_at": 1,
      "data": {
        "cover_url": "example",
        "deducted_credit": 1.0,
        "duration_seconds": 1.0,
        "url": "example",
        "video_name": "example"
      },
      "status": "pending",
      "video_id": "example"
    },
    "msg": "example"
  }
}
```

### List background music

List background music.

**Inputs**

- Page (`page`, number): Page number. At least 1. Default: `1`.
- Page size (`page_size`, number): Items per page. From 1 to 100. Default: `10`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "music": [],
      "pagination": {
        "page": 1,
        "page_size": 1,
        "total_items": 1,
        "total_pages": 1
      }
    },
    "msg": "example"
  }
}
```

### List custom avatars

Get Instant Avatar List.

**Inputs**

- Page (`page`, number): Page number for pagination. At least 1. Default: `1`.
- Page size (`page_size`, number): Number of items per page. From 1 to 100. Default: `10`.
- Name (`name`, text): Avatar name filter - search avatars by name
- Status (`status`, text): Status filter. One of: `processing`, `completed`, `failed`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "avatars": []
    },
    "msg": "example"
  }
}
```

### List custom templates

List user's custom templates.

**Inputs**

- Aspect ratio (`aspect_ratio`, text): Filter by aspect ratio. One of: `portrait`, `landscape`, `square`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "templates": []
    },
    "msg": "example"
  }
}
```

### List custom voices

Get User Timbre List.

**Inputs**

- Language (`language`, text): Filter by language

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "total": 1,
      "voices": []
    },
    "msg": "example"
  }
}
```

### List photo avatars

Get Photo Avatar List.

**Inputs**

- Page (`page`, number): Page number for pagination. At least 1. Default: `1`.
- Page size (`page_size`, number): Number of items per page. From 1 to 100. Default: `10`.
- Name (`name`, text): Avatar name filter
- Status (`status`, text): Status filter. One of: `processing`, `completed`, `failed`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "avatars": []
    },
    "msg": "example"
  }
}
```

### List public avatars

Get Public Avatar List.

**Inputs**

- Page (`page`, number): Page number for pagination. At least 1. Default: `1`.
- Page size (`page_size`, number): Number of items per page. From 1 to 100. Default: `10`.
- Aspect ratio (`aspect_ratio`, text): Filter by aspect ratio. One of: `portrait`, `landscape`, `square`.
- Style (`style`, text): Filter by avatar style. One of: `professional`, `social`.
- Gender (`gender`, text): Filter by avatar gender. One of: `female`, `male`.
- Age (`age`, text): Filter by age group. One of: `adult`, `senior`, `young_adult` (Young adult).
- Scene (`scene`, text): Filter by scene type. One of: `lifestyle`, `outdoors`, `business`, `studio`, `health_fitness` (Health fitness), `education`, `news`.
- Ethnicity (`ethnicity`, text): Filter by ethnicity. One of: `european`, `african`, `south_asian` (South asian), `east_asian` (East asian), `middle_eastern` (Middle eastern), `south_american` (South american), `north_american` (North american).

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "avatars": []
    },
    "msg": "example"
  }
}
```

### List template videos

List template videos.

**Inputs**

- Page (`page`, number): page. At least 1. Default: `1`.
- Page size (`page_size`, number): page size. From 1 to 100. Default: `10`.
- Status (`status`, number): Filter by status. One of: `3`, `4`, `5`.
- Sort by (`sort_by`, text): sort by. Default: `created_at`.
- Sort order (`sort_order`, text): sort order. One of: `asc`, `desc`. Default: `desc`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "data": [],
      "pagination": {
        "page": 1,
        "page_size": 1,
        "total_items": 1,
        "total_pages": 1
      }
    },
    "msg": "example"
  }
}
```

### List translation languages

List Target Languages.

**Inputs**: None.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "languages": []
    },
    "msg": "example"
  }
}
```

### List visual styles

List visual styles.

**Inputs**

- Aspect ratio (`aspect_ratio`, text): Filter by aspect ratio. One of: `portrait`, `landscape`, `square`.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "visual_styles": []
    },
    "msg": "example"
  }
}
```

### List voices

Get Timbre List.

**Inputs**

- Page (`page`, number): Page number for pagination. At least 1. Default: `1`.
- Page size (`page_size`, number): Number of items per page. From 1 to 100. Default: `10`.
- Gender (`gender`, text): Filter by gender. One of: `female`, `male`.
- Language (`language`, text): Filter by language
- Age (`age`, text): Filter by age group. One of: `young`, `middle_aged` (Middle aged), `old`.
- Use case (`use_case`, text): Filter by use case

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "has_more": false,
      "voices": []
    },
    "msg": "example"
  }
}
```

### Synthesize speech

Synthesize speech.

**Inputs**

- Text (`text`, text, required): Text to synthesize.
- Voice (`voice_id`, text, required): Public voice or an authorized custom voice ID.
- Model ID (`model_id`, text): ElevenLabs-only speech model. Omit to use eleven_flash_v2_5 for ElevenLabs voices and retain the voice provider's existing behavior otherwise. Explicit values for other providers, empty strings, null, and unsupported model IDs are rejected. One of: `eleven_flash_v2_5` (Eleven flash v2 5), `eleven_v4_turbo` (Eleven v4 turbo). Default: `eleven_flash_v2_5`.
- Idempotency key (`idempotency_key`, text): Stable key for retries of this request. Use a new key for a different model or text.

**Outputs**

- `data` (object): The response from JoggAI.

**Example output**

```json
{
  "data": {
    "code": 1,
    "data": {
      "duration_seconds": 1.0,
      "error_message": "example",
      "progress": 1,
      "status": "processing",
      "subtitle_url": "example",
      "task_id": "example",
      "url": "example"
    },
    "msg": "example"
  }
}
```
