Bỏ qua đến nội dung

Kling O1 Reference Video to Video [Standard]

Tích hợp

Id mô hình kling-video/o1/standard/video-to-video/reference
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/kling-video/o1/standard/video-to-video/reference?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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Yêu cầu này: 0,63 $ 630 tín dụng API Chạy trên trang này

Lấy khóa API

Được tạo trên Doitong

Các tác phẩm công khai được cộng đồng Doitong tạo bằng Kling O1. Tái sử dụng một lời nhắc chỉ với một lần nhấp.

Tác phẩm công khai được hiển thị: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Video

Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while speaking, with realistic facial expressions and synchronized lip movements, as if she is promoting something to the viewer. She maintains eye contact with the camera, smiles slightly, and uses subtle...

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her ey... Video

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her eyes and cheeks, as if the blurry image on the screen is changing. Her eyes move slightly as she studies the screen, and she takes one slow, tense breath. Behind her, shadows of the snowstorm move...

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. I... Video

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. Its huge dark leathery wings beat twice with slow, heavy strokes, sending snow swirling off the cliff in big clouds. Then it folds its wings and settles on the rock, the giant elk still held in its...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jeng... Video

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jenga tower. As the block comes out, the tower naturally loses balance and realistically collapses onto the table. Frustrated, he angrily sweeps all the fallen wooden blocks off the table with both hands....

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold ... Video

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold rock, a huge orange-white heat shape hidden inside a rock crevice, two small bright amber spots glowing like eyes, faint noise grain. Cinematic videorealistic, ultra detailed, 16:9, volumetric light,...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Tạo một yêu cầu

Các điều khiển được tạo từ lược đồ mô hình. Mã và giá sẽ cập nhật khi bạn thay đổi chúng.

•bắt buộc 88 / 2500

Các tham chiếu theo thứ tự sử dụng @Element1, @Element2, v.v. cho các phần tử và @Image1, @Image2, v.v. cho hình ảnh.

•bắt buộc video_url
Thả tệp hoặc

URL trỏ đến video tham chiếu ở định dạng .mp4 hoặc .mov, không lớn hơn 200MB. Cả hai kích thước phải từ 720px đến 2160px, tốc độ khung hình 24.0–60.0 FPS và thời lượng 3–10 giây (tối đa 10.05 giây). Thời gian chờ là 30.0 giây.

duration 5 s

Độ dài video tính bằng giây.

aspect_ratio mặc định auto

Tỷ lệ chiều rộng trên chiều cao của các khung hình trong video được tạo. Chọn 'auto' để tự động chọn tỷ lệ gần nhất với video đầu vào.

Nâng cao images · enable_safety_checker · keep_audio · elements
image_urls
Thả tệp hoặc

Hình ảnh định hướng phong cách hoặc diện mạo, được tham chiếu trong lời nhắc bằng @Image1, @Image2, v.v. Khi có đầu vào video, tổng số phần tử và hình ảnh tham chiếu không được quá 4 mục. Mỗi tệp tối đa 50 MB, chiều rộng và chiều cao mỗi chiều ít nhất 300 px, với tỷ lệ khung hình từ 0.40 đến 2.50.

Nhân vật hoặc vật thể cần đưa vào, được tham chiếu trong lời nhắc bằng @Element1, @Element2, v.v. Khi có đầu vào video, tổng số phần tử và hình ảnh tham chiếu không được quá 4 mục.

POST /run/kling-video/o1/standard/video-to-video/reference?wait=20 báo giá → 0,63 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/kling-video/o1/standard/video-to-video/reference?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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Chạy yêu cầu này

Key của bạn vẫn nằm trong trình duyệt này: key chỉ được gửi đến Doitong API và chỉ được lưu trong localStorage nếu bạn chọn Ghi nhớ. Nhận khóa API

Giới thiệu về Kling O1 Reference Video to Video [Standard]

Sử dụng clip tham chiếu trong `video_url` (mp4 hoặc mov, 3 đến 10 giây, 720 đến 2160 px, tối đa 200MB) và `prompt` để tạo cảnh quay mới. Có thể thêm tổng cộng tối đa 4 `elements` và ảnh tham chiếu `image_urls`. `keep_audio` giữ lại âm thanh gốc. Tỷ lệ khung hình mặc định là auto, khớp với đầu vào, và thời lượng từ 3 đến 10 giây.

Tham số

Gửi tên chuẩn hoặc tên gốc, không gửi cả hai. Tên chuẩn

TênKiểu Mặc địnhĐược phép Mô tả
enable_safety_checkertùy chọn
Kiểuboolean
Mặc địnhtrue
Chỉ có thể tắt kiểm tra an toàn khi tài khoản được ủy quyền; các yêu cầu không có quyền ủy quyền luôn được kiểm tra.
promptbắt buộc
Kiểustring
≤ 2.500 ký tự
Các tham chiếu theo thứ tự sử dụng @Element1, @Element2, v.v. cho các phần tử và @Image1, @Image2, v.v. cho hình ảnh.
video_urlbắt buộc video
Kiểuurl · video
URL trỏ đến video tham chiếu ở định dạng .mp4 hoặc .mov, không lớn hơn 200MB. Cả hai kích thước phải từ 720px đến 2160px, tốc độ khung hình 24.0–60.0 FPS và thời lượng 3–10 giây (tối đa 10.05 giây). Thời gian chờ là 30.0 giây.
keep_audiotùy chọn
Kiểuboolean
Mặc địnhfalse
Kiểm soát việc giữ lại âm thanh gốc của video.
image_urlstùy chọn images
Kiểuurl[] · image
Hình ảnh định hướng phong cách hoặc diện mạo, được tham chiếu trong lời nhắc bằng @Image1, @Image2, v.v. Khi có đầu vào video, tổng số phần tử và hình ảnh tham chiếu không được quá 4 mục. Mỗi tệp tối đa 50 MB, chiều rộng và chiều cao mỗi chiều ít nhất 300 px, với tỷ lệ khung hình từ 0.40 đến 2.50.
elementstùy chọn
Kiểuobject[]
Nhân vật hoặc vật thể cần đưa vào, được tham chiếu trong lời nhắc bằng @Element1, @Element2, v.v. Khi có đầu vào video, tổng số phần tử và hình ảnh tham chiếu không được quá 4 mục.
elements[].frontal_image_urlbắt buộc
Kiểuurl · image
Hình ảnh chính diện cung cấp góc nhìn chính của phần tử, giới hạn 50 MB. Chiều rộng và chiều cao mỗi chiều ít nhất 300 px, với tỷ lệ khung hình từ 0.40 đến 2.50. Thời gian chờ là 20 giây.
elements[].reference_image_urlstùy chọn
Kiểuurl[] · image
Cung cấp 1–3 hình ảnh tham chiếu bổ sung ở các góc khác nhau. Mỗi hình ảnh phải có tỷ lệ khung hình từ 0.40 đến 2.50, kích thước ít nhất 300px ở cả hai chiều và không lớn hơn 50.0MB.
aspect_ratiotùy chọn
Kiểuenum
Mặc địnhauto
auto16:99:161:1
Tỷ lệ chiều rộng trên chiều cao của các khung hình trong video được tạo. Chọn 'auto' để tự động chọn tỷ lệ gần nhất với video đầu vào.
durationtùy chọn
Kiểuenum
Mặc định5
345678910
Độ dài video tính bằng giây.
bắt buộc Tên chuẩn, cũng được chấp nhận

Các tham số tệp nhận URL https:// công khai, URI data: tối đa 10 MB hoặc file_url của một tệp tải lên. Tệp

Đầu ra

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o1/standard/video-to-video/reference",
  "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": 630,
    "usd": "0.63",
    "charged": 630,
    "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://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tệp của bạn, lựa chọn của bạnMỗi outputs[].url là một bản sao trên bộ lưu trữ của chúng tôi: được giữ vĩnh viễn (tính phí theo GB-tháng) hoặc 7 ngày miễn phí, theo cài đặt tài khoản hoặc ?storage=.
Cùng một cấu trúc trên mọi mô hìnhtype, url, content_type, width, height và duration cho hình ảnh, video và âm thanh. output là đối tượng kết quả riêng của mô hình.
Các trường đầu ra
video
object {url, content_type, file_name, file_size}Video do mô hình tạo ra.

Thêm mô hình: Video sang video

Dành cho tác nhân AI: trang này ở dạng Markdown tại https://doitong.com/vi/developers/models/kling-video/o1/standard/video-to-video/reference.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt