# Kling v3 Motion-Control Video Generation

> Video Generation

Submit an asynchronous motion-control task.

## Endpoint

`POST https://api.modelverse.cn/v1/tasks/submit`

## Request Body

## Responses

- **200** — Task submitted successfully.
- **default** — Error response.

## OpenAPI Definition

```json
{
  "openapi": "3.1.0",
  "x-language": "en-US",
  "info": {
    "title": "ModelVerse Kling/v3 Motion Control Video Task API",
    "version": "1.0.0",
    "description": "Kling v3 motion-control API. All Kling v3 generation modes use the unified\n`kling-v3` model ID; set `parameters.kling_v3_type` to `motion_control`.\nThis mode generates a video from a reference image and motion video.\n"
  },
  "servers": [
    {
      "url": "https://api.modelverse.cn",
      "description": "ModelVerse API endpoint documented for this model."
    }
  ],
  "tags": [
    {
      "name": "Kling/v3 Motion Control",
      "description": "Asynchronous motion-control video task operations."
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/tasks/submit": {
      "post": {
        "tags": [
          "Kling/v3 Motion Control"
        ],
        "operationId": "submitKlingV3MotionControlTask",
        "summary": "Kling v3 Motion-Control Video Generation",
        "description": "Submit an asynchronous motion-control task.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KlingV3MotionControlSubmitRequest"
              },
              "example": {
                "model": "kling-v3",
                "input": {
                  "img_url": "https://example.com/character.jpg",
                  "video_url": "https://example.com/motion_reference.mp4",
                  "prompt": "A person dancing gracefully"
                },
                "parameters": {
                  "kling_v3_type": "motion_control",
                  "duration": 5,
                  "aspect_ratio": "16:9",
                  "character_orientation": "image",
                  "mode": "std"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task submitted successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskSubmitResponse"
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tasks/status": {
      "get": {
        "tags": [
          "Kling/v3 Motion Control"
        ],
        "operationId": "getKlingV3MotionControlTaskStatus",
        "summary": "Kling v3 Motion-Control Task Status",
        "description": "Query the status and result URLs for a motion-control task.",
        "parameters": [
          {
            "name": "task_id",
            "in": "query",
            "required": true,
            "description": "Asynchronous task identifier returned by submit.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Task status response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key"
      }
    },
    "schemas": {
      "KlingV3MotionControlSubmitRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "input",
          "parameters"
        ],
        "properties": {
          "model": {
            "type": "string",
            "const": "kling-v3"
          },
          "input": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "img_url",
              "video_url"
            ],
            "properties": {
              "img_url": {
                "type": "string",
                "minLength": 1,
                "description": "Reference image URL or raw Base64 image. JPG and PNG are\nsupported; max 10 MB; width and height 300–65536 px; aspect\nratio 1:2.5–2.5:1.\n"
              },
              "video_url": {
                "type": "string",
                "format": "uri",
                "description": "Reference MP4 or MOV video URL. Max 100 MB; dimensions\n340–3850 px; at least 3 seconds; landscape max 30 seconds,\nportrait max 10 seconds.\n"
              },
              "prompt": {
                "type": "string",
                "maxLength": 2500
              }
            }
          },
          "parameters": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kling_v3_type",
              "character_orientation",
              "mode"
            ],
            "properties": {
              "kling_v3_type": {
                "type": "string",
                "const": "motion_control",
                "description": "Selects the Kling v3 motion-control generation mode."
              },
              "character_orientation": {
                "type": "string",
                "enum": [
                  "image",
                  "video"
                ],
                "description": "Whether the character faces like the image or video reference."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "std",
                  "pro"
                ]
              },
              "duration": {
                "type": "integer",
                "enum": [
                  5,
                  10
                ],
                "default": 5
              },
              "aspect_ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ],
                "default": "16:9"
              },
              "keep_original_sound": {
                "type": "string",
                "enum": [
                  "yes",
                  "no"
                ],
                "default": "yes"
              },
              "watermark_enabled": {
                "type": "boolean"
              },
              "external_task_id": {
                "type": "string",
                "description": "Client task ID used for querying; must be unique per user."
              }
            }
          }
        }
      },
      "TaskSubmitResponse": {
        "type": "object",
        "required": [
          "output",
          "request_id"
        ],
        "properties": {
          "output": {
            "type": "object",
            "required": [
              "task_id"
            ],
            "properties": {
              "task_id": {
                "type": "string"
              }
            }
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "TaskStatusResponse": {
        "type": "object",
        "required": [
          "output",
          "request_id"
        ],
        "properties": {
          "output": {
            "type": "object",
            "required": [
              "task_id",
              "task_status"
            ],
            "properties": {
              "task_id": {
                "type": "string"
              },
              "task_status": {
                "type": "string",
                "enum": [
                  "Pending",
                  "Running",
                  "Success",
                  "Failure"
                ]
              },
              "urls": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "submit_time": {
                "type": "integer",
                "format": "int64"
              },
              "finish_time": {
                "type": "integer",
                "format": "int64"
              },
              "error_message": {
                "type": "string"
              }
            }
          },
          "usage": {
            "type": "object",
            "properties": {
              "duration": {
                "type": "integer"
              }
            }
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "message": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "request_id": {
            "type": "string"
          }
        }
      }
    }
  }
}
```
