Skip to content

Kling 2.6 motion-control ​

Endpoint ​

POST /videos/generations

Full URL: https://modelfold.ai/v1/videos/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Input parameters for the generation task

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be kling-2.6/motion-control for this endpoint Default:"kling-2.6/motion-control"。 Allowed values:kling-2.6/motion-control。 Example:kling-2.6/motion-control。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. A text description of the desired output. Maximum length is 2500 characters. (Max length: 2500 characters) maxLength: 2000. Example:The cartoon character is dancing.。
input_urlsarray&lt;string&gt;YesAn array containing a single image URL. The photo must clearly show the subject's head, shoulders, and torso. (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/jpg; Max size: 10.0MB,size needs to be greater than 300px, aspect ratio 2:5 to 5:2.) maxItems: 1.
video_urlsarray&lt;string&gt;YesAn array containing a single video URL. The duration must be between 3 to 30 seconds, and the video must clearly show the subject's head, shoulders, and torso. (File URL after upload, not file content; Accepted types: video/mp4, video/quicktime; Max size: 100.0MB) maxItems: 1.
character_orientationstringYesRequired. Generate the orientation of the characters in the video. 'image': same orientation as the person in the picture (max 10s video). 'video': consistent with the orientation of the characters in the video (max 30s video). Allowed values:image / video。 Example:video。
modestringYesRequired. Output resolution: "720p" or "1080p". Allowed values:720p / 1080p。 Example:720p。

Request Example ​

bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-2.6/motion-control",
  "input_urls": [
    "https://example.com/reference.png"
  ],
  "video_urls": [
    "https://example.com/reference.mp4"
  ],
  "character_orientation": "video",
  "mode": "720p",
  "prompt": "The cartoon character is dancing."
}'
json
{
  "model": "kling-2.6/motion-control",
  "input_urls": [
    "https://example.com/reference.png"
  ],
  "video_urls": [
    "https://example.com/reference.mp4"
  ],
  "character_orientation": "video",
  "mode": "720p",
  "prompt": "The cartoon character is dancing."
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.mp4"
    }
  ],
  "usage": {}
}

ModelFold — one API for all the best AI models.