---
title: Kling Avatar
url: https://runapi.ai/docs/api/kling/avatar.md
canonical: https://runapi.ai/docs/api/kling/avatar
locale: en
---

# Kling Avatar

## Overview

Create an asynchronous text-to-video task with a supported model. Use the returned task ID to retrieve its state, or provide callback_url for terminal delivery.

### Quick start

1. Create an API key and set it as RUNAPI_API_KEY.
2. Choose a supported model and send a POST request whose body matches that model's schema.
3. Store the returned task ID, then poll until a terminal state or handle the terminal callback.

## Endpoint

POST /api/v1/kling/ai_avatar

Base URL: https://runapi.ai

API version: v1

Authentication: Authorization: Bearer YOUR_API_TOKEN

## Supported models

Open a model page for current pricing, rate limits, and commercial-usage details.

- [kling-ai-avatar-pro](/models/kling/ai-avatar-pro)
- [kling-ai-avatar-standard](/models/kling/ai-avatar-standard)
- [kling-ai-avatar-v1-pro](/models/kling/ai-avatar-v1-pro)
- [kling-v1-avatar-standard](/models/kling/v1-avatar-standard)

## Request schema

Fields and allowed values depend on the selected model. When supplied, callback_url receives a terminal task delivery.

### kling-ai-avatar-pro

```json
{
  "callback_url": {
    "description": "Webhook URL for async notifications.",
    "type": "string"
  },
  "model": {
    "description": "Model slug.",
    "required": true,
    "type": "string"
  },
  "prompt": {
    "description": "Description of the avatar.",
    "required": true,
    "type": "string"
  },
  "source_audio_url": {
    "description": "Audio URL for lip sync.",
    "required": true,
    "type": "string"
  },
  "source_image_url": {
    "description": "Face image URL.",
    "required": true,
    "type": "string"
  }
}
```

### kling-ai-avatar-standard

```json
{
  "callback_url": {
    "description": "Webhook URL for async notifications.",
    "type": "string"
  },
  "model": {
    "description": "Model slug.",
    "required": true,
    "type": "string"
  },
  "prompt": {
    "description": "Description of the avatar.",
    "required": true,
    "type": "string"
  },
  "source_audio_url": {
    "description": "Audio URL for lip sync.",
    "required": true,
    "type": "string"
  },
  "source_image_url": {
    "description": "Face image URL.",
    "required": true,
    "type": "string"
  }
}
```

### kling-ai-avatar-v1-pro

```json
{
  "callback_url": {
    "description": "Webhook URL for async notifications.",
    "type": "string"
  },
  "model": {
    "description": "Model slug.",
    "required": true,
    "type": "string"
  },
  "prompt": {
    "description": "Description of the avatar.",
    "required": true,
    "type": "string"
  },
  "source_audio_url": {
    "description": "Audio URL for lip sync.",
    "required": true,
    "type": "string"
  },
  "source_image_url": {
    "description": "Face image URL.",
    "required": true,
    "type": "string"
  }
}
```

### kling-v1-avatar-standard

```json
{
  "callback_url": {
    "description": "Webhook URL for async notifications.",
    "type": "string"
  },
  "model": {
    "description": "Model slug.",
    "required": true,
    "type": "string"
  },
  "prompt": {
    "description": "Description of the avatar.",
    "required": true,
    "type": "string"
  },
  "source_audio_url": {
    "description": "Audio URL for lip sync.",
    "required": true,
    "type": "string"
  },
  "source_image_url": {
    "description": "Face image URL.",
    "required": true,
    "type": "string"
  }
}
```

## Create acceptance

HTTP 202 - POST /api/v1/kling/ai_avatar

```json
{
  "billing": {
    "refund": null,
    "reservation": null,
    "settlement": null
  },
  "id": "tsk_reference_demo",
  "status": "processing"
}
```

## Polling processing

HTTP 200 - GET /api/v1/kling/ai_avatar/:id

```json
{
  "billing": {
    "refund": null,
    "reservation": null,
    "settlement": null
  },
  "id": "tsk_reference_demo",
  "status": "processing"
}
```

## Polling completed

HTTP 200 - GET /api/v1/kling/ai_avatar/:id

```json
{
  "billing": {
    "refund": null,
    "reservation": null,
    "settlement": null
  },
  "id": "tsk_reference_demo",
  "status": "completed",
  "videos": [
    {
      "url": "https://file.runapi.ai/reference-video.mp4"
    }
  ]
}
```

## Polling failed

HTTP 200 - GET /api/v1/kling/ai_avatar/:id

```json
{
  "billing": {
    "refund": null,
    "reservation": null,
    "settlement": null
  },
  "error": "Task processing failed.",
  "id": "tsk_reference_demo",
  "status": "failed"
}
```

## Customer callback: completed

HTTP 200 - POST callback_url

```json
{
  "billing": {
    "refund": null,
    "reservation": null,
    "settlement": null
  },
  "id": "tsk_reference_demo",
  "status": "completed",
  "videos": [
    {
      "url": "https://file.runapi.ai/reference-video.mp4"
    }
  ]
}
```

## Customer callback: failed

HTTP 200 - POST callback_url

```json
{
  "billing": {
    "refund": null,
    "reservation": null,
    "settlement": null
  },
  "error": {
    "code": "generation_failed",
    "message": "Task processing failed."
  },
  "id": "tsk_reference_demo",
  "status": "failed"
}
```

## Errors

HTTP 400

```json
{
  "error": {
    "code": "invalid_request",
    "message": "A required request field is missing."
  }
}
```

## Generated Code Samples

Use cURL directly, or install an SDK for your language. Each sample submits the validated request shown in this reference.

### curl

```curl
curl -X POST https://runapi.ai/api/v1/kling/ai_avatar \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"model":"kling-ai-avatar-pro","source_image_url":"https://file.runapi.ai/portrait.png","source_audio_url":"https://file.runapi.ai/narration.mp3","prompt":"A clear and friendly presenter."}'
```

## Related Guides

- [Authentication](/docs/guides/authentication)
- [Task API quickstart](/docs/guides/task-api/quickstart)
