Skip to content

Kling O1 First Frame Last Frame to Video [Pro]

Integrate

Model id kling-video/o1/image-to-video
# 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/image-to-video?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

This request: $0.56 560 API credits 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

Frame references: @Image1 identifies the starting frame, while @Image2 identifies the ending frame.

•required start_image_url
Drop a file, or

Image that supplies the video's opening frame, 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.

duration 5 s

Video length measured in seconds.

Advanced end_image · enable_safety_checker
end_image_url
Drop a file, or

Image that supplies the video's final frame, limited to 50 MB. Width and height must each be at least 300 px, with an aspect ratio from 0.40 to 2.50.

POST /run/kling-video/o1/image-to-video?wait=20 quote → $0.56
# 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/image-to-video?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 First Frame Last Frame to Video [Pro]

Animates a transition between a required start image (`start_image_url`) and an optional end image (`end_image_url`), guided by a prompt of up to 2500 characters. In the prompt, @Image1 refers to the start frame and @Image2 to the end frame. `duration` can be set from 3 to 10 seconds in one-second steps. This is the Pro version of the model.

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
Frame references: @Image1 identifies the starting frame, while @Image2 identifies the ending frame.
start_image_urlrequired image
Typeurl · image
Image that supplies the video's opening frame, 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.
end_image_urloptional end_image
Typeurl · image
Image that supplies the video's final frame, limited to 50 MB. Width and height must each be at least 300 px, with an aspect ratio from 0.40 to 2.50.
durationoptional
Typeenum
Default5
345678910
Video length measured in seconds.
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/image-to-video",
  "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": 560,
    "usd": "0.56",
    "charged": 560,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "start_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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: Image to Video

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