---
title: "DeerAPI Kling Text to Video"
method: POST
path: "/kling/v1/videos/text2video"
---

# DeerAPI Kling Text to Video

`POST /kling/v1/videos/text2video`

Use this field according to the endpoint schema.

## Headers

- `Content-Type` string

## Request body

- object
  - `prompt` string, required — Use this field according to the endpoint schema.
  - `negative_prompt` string — Use this field according to the endpoint schema.
  - `aspect_ratio` string — Use this field according to the endpoint schema.
  - `callback_url` string — Use this field according to the endpoint schema.
  - `model_name` string — Use this field according to the endpoint schema.
  - `cfg_scale` number — Use this field according to the endpoint schema.
  - `mode` 'std' | 'pro' — Use this field according to the endpoint schema.
  - `duration` string — Use this field according to the endpoint schema.
  - `camera_control` object — Use this field according to the endpoint schema.
    - `type` 'simple' | 'down_back' | 'forward_up' | 'right_turn_forward' | 'left_turn_forward'
    - `config` object — Use this field according to the endpoint schema.
      - `horizontal` integer — Use this field according to the endpoint schema.
      - `vertical` integer — Use this field according to the endpoint schema.
      - `pan` integer — Use this field according to the endpoint schema.
      - `tilt` integer — Use this field according to the endpoint schema.
      - `roll` integer — Use this field according to the endpoint schema.
      - `zoom` integer — 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_status_msg` string, required
    - `task_info` object, required
      - `external_task_id` string, required
    - `task_result` object, required
      - `videos` object, required
        - `id` string, required
        - `url` string, required
        - `duration` string, required
    - `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.net/deerapi/apis/text-to-audio-api.md) · [All operations](https://skmtc.net/deerapi/apis/text-to-audio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deerapi/text-to-audio-api/revisions/b6265ced74a1/schema)
