Skip to content

Kling O1 Edit Video [Pro]

Integrate

Model id kling-video/o1/video-to-video/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/o1/video-to-video/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $1.68 1,680 API credits your files are measured before the run Run it on this page

Get API key
Kling · Video

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 2500

Ordered references use @Element1, @Element2, and so on for elements, and @Image1, @Image2, and so on for images.

•required video_url
Drop a file, or

URL pointing to a reference video in .mp4 or .mov format, no larger than 200MB. Both dimensions must fall between 720px and 2160px, with a frame rate of 24.0–60.0 FPS and a duration of 3–10 seconds (10.05 seconds at most). The timeout is 30.0 seconds.

Advanced images · enable_safety_checker · keep_audio · elements
image_urls
Drop a file, or

Images that guide style or appearance, addressed in the prompt using @Image1, @Image2, and so on. With video input, elements and reference images together cannot exceed 4 entries. Each file is limited to 50 MB, with width and height each at least 300 px and an aspect ratio from 0.40 to 2.50.

Characters or objects to include, addressed in the prompt using @Element1, @Element2, and so on. With video input, elements and reference images together cannot exceed 4 entries.

POST /run/kling-video/o1/video-to-video/edit?wait=20 quote → $1.68
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/o1/video-to-video/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Kling O1 Edit Video [Pro]

Edits an existing video using a text instruction of up to 2500 characters. The source must be a 3 to 10 second .mp4 or .mov, 720 to 2160px, max 200MB. Up to 4 reference images and elements combined can be supplied, and `keep_audio` optionally preserves the original audio. This is the Pro version.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Safety checks can be disabled only with account authorization; requests without authorization always undergo checking.
promptrequired
Typestring
≤ 2,500 characters
Ordered references use @Element1, @Element2, and so on for elements, and @Image1, @Image2, and so on for images.
video_urlrequired video
Typeurl · video
URL pointing to a reference video in .mp4 or .mov format, no larger than 200MB. Both dimensions must fall between 720px and 2160px, with a frame rate of 24.0–60.0 FPS and a duration of 3–10 seconds (10.05 seconds at most). The timeout is 30.0 seconds.
keep_audiooptional
Typeboolean
Defaultfalse
Controls whether the video's original audio is retained.
image_urlsoptional images
Typeurl[] · image
Images that guide style or appearance, addressed in the prompt using @Image1, @Image2, and so on. With video input, elements and reference images together cannot exceed 4 entries. Each file is limited to 50 MB, with width and height each at least 300 px and an aspect ratio from 0.40 to 2.50.
elementsoptional
Typeobject[]
Characters or objects to include, addressed in the prompt using @Element1, @Element2, and so on. With video input, elements and reference images together cannot exceed 4 entries.
elements[].frontal_image_urlrequired
Typeurl · image
Front-facing image providing the element's main view, limited to 50 MB. Width and height must each be at least 300 px, with an aspect ratio from 0.40 to 2.50. The timeout is 20 seconds.
elements[].reference_image_urlsoptional
Typeurl[] · image
Supply 1–3 additional reference images showing different angles. Each image must have an aspect ratio between 0.40 and 2.50, measure at least 300px in both dimensions, and be no larger than 50.0MB.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o1/video-to-video/edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1680,
    "usd": "1.68",
    "charged": 1680,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size}Video produced by the model.

More models: Video to Video

For AI agents: this page as Markdown is at https://doitong.com/developers/models/kling-video/o1/video-to-video/edit.md. All models and guides: https://doitong.com/developers/llms.txt