Pular para o conteúdo principal
Model logo

API do Kling O1 Edit

  • Edição de vídeo

Kling O1 Edit faz parte da família de modelos KlingVer todos os modelos Kling

Envie imagens/vídeos acima e digite @ no seu prompt para referenciá-los

Toque para enviarMP4, WEBM, MOV · Máx. 100 MB
Toque para enviarPNG, JPG, WEBP, GIF · Máx. 100 MB
Modo
Saída

Seu video gerado aparecerá aqui

Atualizado

What is the Kling O1 Edit API?

The Kling O1 Edit API is live on UnificAlly as kuaishou/kling-o1-video-edit, from $0.1134 per second of video. Kling O1 Edit is the video-to-video editing route under Kling O1. Pass a source video (up to 10 minutes from the playground) and a prompt describing the edit, and the model returns a new video of the same length. The reference bundle is up to 4 reference images (image_urls). Two video modes drive the result: Reference uses the source as a style or motion guide while the prompt steers the change; Transform reshapes the source more aggressively. keep_audio preserves the original soundtrack when sound continuity matters. Output renders at Std (720p) or Pro (1080p), in 16:9, 9:16, or 1:1. Pick O1 Edit over Kling 3.0 Omni Edit when the reference shape is purely image-based and you do not need video elements.

Kling O1 Edit API specs

Model IDkuaishou/kling-o1-video-edit
EndpointPOST https://api.unifically.com/v1/tasks
Request typesVideo edit in Reference mode or Transform mode
ResolutionStd (720p) or Pro (1080p)
Aspect ratio1:1, 9:16, 16:9
DurationLocked to the length of the source video
AudioSource audio kept when keep_audio is true
ReferencesUp to 4 reference images
Rate in Std mode$0.1134/sec
Rate in Pro mode$0.1512/sec

Billing is per second of video, with no subscription. The pricing page shows the live rates for the Kling O1 Edit API.

How to use the Kling O1 Edit API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/tasks with the model ID and an input object that holds the source video and the edit prompt.
  3. Read the task_id from the response, then check the task until it is finished, or pass a callback URL and wait for the result.
curl -X POST https://api.unifically.com/v1/tasks   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "kuaishou/kling-o1-video-edit",
    "input": {
      "prompt": "Transform into anime style",
      "video_url": "https://example.com/video.mp4",
      "video_mode": "reference",
      "mode": "pro"
    }
  }'

The response returns the task ID straight away:

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}

The finished task carries the video URL.

curl https://api.unifically.com/v1/tasks/{task_id}   -H "Authorization: Bearer YOUR_API_KEY"

Kling O1 Edit API parameters

ParameterTypeDefaultWhat it does
video_urlstringnoneSource video URL to edit. Required
promptstringnoneText prompt describing the edit. Required
video_modestringreferenceEdit mode: reference or transform
keep_audiobooleanfalseKeeps the original audio from the source video
modestringstdstd (720p) or pro (1080p)
aspect_ratiostring16:91:1, 9:16, or 16:9
image_urlsstring[]noneReference image URLs, 4 at most. Name them in the prompt as @Image1, @Image2
nsfw_checkbooleanfalseChecks the prompt and input images for NSFW content before generating. Off unless set to true

Duration is locked to the input video length and cannot be set. The Kling O1 Edit API documentation has the full reference.

Transform mode request with a reference image

Transform mode reshapes the source video. The reference image is named in the prompt as @Image1.

curl -X POST https://api.unifically.com/v1/tasks   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "kuaishou/kling-o1-video-edit",
    "input": {
      "prompt": "Replace the person with @Image1",
      "video_url": "https://example.com/video.mp4",
      "video_mode": "transform",
      "image_urls": ["https://example.com/person.jpg"],
      "mode": "pro"
    }
  }'

Key features of Kling O1 Edit

Four features cover what teams build with O1 Edit.

Edit a source video with a single prompt

Pass video_url and a prompt describing the edit. Output length follows input length, so the timeline stays put while the visual changes.

Reference and Transform video modes

Reference treats the source as a style or motion guide for the prompted change. Transform reshapes the source itself with a heavier restyle or retime.

Up to 4 image references

Pass image_urls (max 4) and reference them inline in the prompt as @image_1 through @image_4. Useful for steering wardrobe, environment, or colour treatment from a still.

Audio passthrough on demand

keep_audio defaults to off. Set it to true to preserve the source soundtrack in the output, which is what you want for ads going to multiple regions with the same VO.

What Kling O1 Edit is best for

  • Plate revisions

    Same-length edit passes without rebuilding timeline audio. Useful when the audio mix is final but visuals need a tweak.

  • Style swaps via image references

    Reference images steer wardrobe, environment, or colour treatment from a single still.

  • Light VFX via Transform mode

    Heavier restyle than a colour tweak when the brief calls for it.

  • Localization with audio preserved

    Visual changes (signage, props, environment) while keeping the original soundtrack intact.

  • Client alternate cuts

    Same source, different prompts for client review without re-shooting or NLE work.

  • Image-only reference pipelines

    Predictable image_urls shape keeps the reference contract simple in production code.

Kling O1 Edit variants

Two output tracks plus two edit modes. Pick by resolution and by how aggressive the edit needs to be.

Std

The 720p output mode. Good for editorial passes, alternate-cut review, and client-facing iteration where the cut is not the delivery yet.

Pro

The 1080p output mode. Use it when the edit is the delivery cut and 1080p is the contract.

Reference mode

Treats the source video as a style or motion guide for the prompted change. Good for edits that should preserve the original feel: costume swap, lighting shift, signage replacement, environment tweak.

Transform mode

Reshapes the supplied video more aggressively. Heavier restyle, retime, or scene-level rework. Use it when the edit is a meaningful departure from the source plate.

Kling O1 Edit use cases

Swap a costume in a finished spot by passing the source video, the wardrobe reference as @image_1, and a Transform-mode prompt that names the change. Localize a global ad for a new region by keeping audio passthrough on while reprompting the visible signage and street furniture in the background. Build three alternate cuts for client review by holding the source constant and varying only the edit prompt and reference image. Apply a light VFX colour and look pass to a trailer by switching to Transform mode without rebuilding the timeline. For outfit swaps from a single product photo, also test the HappyHorse 1.0 Video Edit API, which takes up to five reference images and keeps the source framing.

Perguntas frequentes

Perguntas frequentes sobre Kling O1 Edit

It is the video-to-video editing route under Kling O1. Pass a source video and a prompt describing the edit; the model returns a new video of the same length. Up to 4 reference images condition the change. Two video modes (Reference, Transform) and an optional keep_audio toggle round out the controls.

Signing up opens the API keys page, where the key for the Authorization: Bearer header is created. Edits go to https://api.unifically.com/v1/tasks as kuaishou/kling-o1-video-edit, and the first one needs a source video URL plus an edit prompt.

Include video_url and prompt in the input, both required, then choose video_mode (reference or transform), mode (std or pro), aspect_ratio and up to 4 image_urls referenced as @Image1, @Image2. Duration follows the source clip and cannot be set. The edit runs as a task, so poll its task_id or use a callback URL to collect the video URL.

Generate creates a fresh video from a prompt and references. Edit always starts from your source video and applies the described change. Use Generate when you have nothing yet; use Edit when you have a video that needs revision.

Both reshape an input video with the same Reference and Transform mode choice. Omni Edit adds an elements parameter that supports both image and video element types. O1 Edit only takes image_urls. Pick O1 Edit when the reference shape is purely image-based.

Source video uploads up to 10 minutes per the playground constraint. Output duration is locked to the input video length and cannot be set manually.

Use @image_1, @image_2, @image_3, @image_4 for entries in the image_urls array. Reference them inline in the prompt string.