---
title: "DeerAPI Kling Avatar Task"
method: POST
path: "/kling/v1/videos/avatar/image2video"
---

# DeerAPI Kling Avatar Task

`POST /kling/v1/videos/avatar/image2video`

## Request

- Base URL: `https://api.deerapi.com`
- URL: `https://api.deerapi.com/kling/v1/videos/avatar/image2video`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/deerapi/apis/text-to-audio-api/docs/kling/v1/videos/avatar/image2video/post.ts> (a function with typed inputs; its response is checked against the schema)

Use this field according to the endpoint schema.

## Headers

- `Content-Type` string

## Request body

- object
  - `image` string, required: Use this field according to the endpoint schema.
  - `audio_id` string: Use this field according to the endpoint schema.
  - `prompt` string, required: Use this field according to the endpoint schema.
  - `mode` string: Use this field according to the endpoint schema.
  - `sound_file` string: Use this field according to the endpoint schema.
  - `callback_url` string: Use this field according to the endpoint schema.
  - `external_task_id` string: Use this field according to the endpoint schema.

## Response `200`

Use this field according to the endpoint schema.

- object
  - `code` integer, required: Use this field according to the endpoint schema.
  - `message` string, required: Use this field according to the endpoint schema.
  - `request_id` string, required: Use this field according to the endpoint schema.
  - `data` object, required
    - `task_id` string, required: Use this field according to the endpoint schema.
    - `task_status` string, required: Use this field according to the endpoint schema.
    - `task_info` object, required
      - `external_task_id` string: Use this field according to the endpoint schema.
    - `created_at` integer, required: Use this field according to the endpoint schema.
    - `updated_at` integer, required: Use this field according to the endpoint schema.

---

[API](https://skmtc.dev/deerapi/apis/text-to-audio-api.md) - [All operations](https://skmtc.dev/deerapi/apis/text-to-audio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deerapi/apis/text-to-audio-api/revisions/b6265ced74a1?raw)
