Bỏ qua đến nội dung

LongCat Video · Image to Video · 720p

Tích hợp

Id mô hình longcat-video/image-to-video/720p
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/longcat-video/image-to-video/720p?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Các tệp như ví dụ: 0,216 $ 216 tín dụng API · ≈ 23,18 ₽ tệp của bạn được đo trước khi chạy Chạy trên trang này

Lấy khóa API
Meituan · Video

Kết quả đầu tiên của bạn sẽ xuất hiện ở đây

Tạo một yêu cầu bên dưới và chạy bằng khóa API của bạn. Đầu ra được sao chép vào bộ lưu trữ của chúng tôi, giữ vĩnh viễn hoặc 7 ngày miễn phí.

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.

mặc định First-person view fro...

Lời nhắc định hướng việc tạo sinh video.

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

URL hình ảnh nguồn để tạo sinh video.

mặc định 162

Số khung hình của đầu ra được tạo sinh.

Nâng cao negative_prompt · video_output_type · video_quality · video_write_mode · acceleration · num_inference_steps · num_refine_inference_steps · guidance_scale · fps · seed · enable_prompt_expansion · enable_safety_checker
mặc định Bright tones, overexp...

Lời nhắc phủ định dùng khi tạo video.

video_output_type mặc định X264 (.mp4)

Loại đầu ra của video kết quả.

video_quality mặc định high

Mức chất lượng của video kết quả.

video_write_mode mặc định balanced

Chế độ ghi của video kết quả.

acceleration mặc định regular

Mức tăng tốc áp dụng trong quá trình tạo sinh video.

mặc định 40

Số bước suy luận được thực hiện trong quá trình tạo sinh video.

mặc định 40

Số bước suy luận được thực hiện trong quá trình tinh chỉnh.

mặc định 4

Guidance scale áp dụng khi tạo video.

mặc định 30

Tốc độ khung hình của video đầu ra.

Giá trị seed khởi tạo quá trình tạo số ngẫu nhiên.

POST /run/longcat-video/image-to-video/720p?wait=20 báo giá → 0,216 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/longcat-video/image-to-video/720p?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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://api.doitong.ru/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ề LongCat Video · Image to Video · 720p

Tạo chuyển động cho hình ảnh đầu vào thành video dài, với giai đoạn tinh chỉnh thứ hai được điều khiển bởi `num_refine_inference_steps` (8 đến 50). `num_frames` nằm trong khoảng từ 17 đến 961 (mặc định 162), tốc độ khung hình mặc định là 30. Mô hình cũng chấp nhận lời nhắc, lời nhắc phủ định và `guidance_scale` (1 đến 10). Định dạng đầu ra gồm mp4, webm, ProRes mov và GIF.

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ả
image_urlbắt buộc image
Kiểuurl · image
URL hình ảnh nguồn để tạo sinh video.
prompttùy chọn
Kiểustring
Mặc địnhFirst-person view from the cockpit of a Formula 1 car. The driver's gloved hands firmly grip the intricate, carbon-fiber steering wheel adorned with numerous colorful buttons and a vibrant digital display showing race data. Beyond the windshield, a sun-drenched racetrack stretches ahead, lined with cheering spectators in the grandstands. Several rival cars are visible in the distance, creating a dynamic sense of competition. The sky above is a clear, brilliant blue, reflecting the exhilarating atmosphere of a high-speed race. high resolution 4k
Lời nhắc định hướng việc tạo sinh video.
negative_prompttùy chọn
Kiểustring
Mặc địnhBright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards
Lời nhắc phủ định dùng khi tạo video.
num_framestùy chọn
Kiểuinteger
Mặc định162
17 – 961
Số khung hình của đầu ra được tạo sinh.
num_inference_stepstùy chọn
Kiểuinteger
Mặc định40
8 – 50
Số bước suy luận được thực hiện trong quá trình tạo sinh video.
num_refine_inference_stepstùy chọn
Kiểuinteger
Mặc định40
8 – 50
Số bước suy luận được thực hiện trong quá trình tinh chỉnh.
guidance_scaletùy chọn
Kiểunumber
Mặc định4
1 – 10
Guidance scale áp dụng khi tạo video.
fpstùy chọn
Kiểuinteger
Mặc định30
1 – 60
Tốc độ khung hình của video đầu ra.
seedtùy chọn
Kiểuinteger | null
Giá trị seed khởi tạo quá trình tạo số ngẫu nhiên.
enable_prompt_expansiontùy chọn
Kiểuboolean
Mặc địnhfalse
Kiểm soát việc bật mở rộng lời nhắc.
enable_safety_checkertùy chọn
Kiểuboolean
Mặc địnhtrue
Công tắc kiểm tra an toàn phụ thuộc quyền tài khoản: các yêu cầu không được ủy quyền vẫn bắt buộc kiểm tra và cần có ủy quyền để tắt.
video_output_typetùy chọn
Kiểuenum
Mặc địnhX264 (.mp4)
X264 (.mp4)VP9 (.webm)PRORES4444 (.mov)GIF (.gif)
Loại đầu ra của video kết quả.
video_qualitytùy chọn
Kiểuenum
Mặc địnhhigh
lowmediumhighmaximum
Mức chất lượng của video kết quả.
video_write_modetùy chọn
Kiểuenum
Mặc địnhbalanced
fastbalancedsmall
Chế độ ghi của video kết quả.
accelerationtùy chọn
Kiểuenum
Mặc địnhregular
noneregular
Mức tăng tốc áp dụng trong quá trình tạo sinh video.
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": "longcat-video/image-to-video/720p",
  "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": 216,
    "usd": "0.216",
    "charged": 216,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "prompt": "First-person view from the cockpit of a Formula 1 car. The driver's gloved hands firmly grip the intricate, carbon-fiber steering wheel adorned with numerous colorful buttons and a vibrant digital display showing race data. Beyond the windshield, a sun-drenched racetrack stretches ahead, lined with cheering spectators in the grandstands. Several rival cars are visible in the distance, creating a dynamic sense of competition. The sky above is a clear, brilliant blue, reflecting the exhilarating atmosphere of a high-speed race. high resolution 4k",
    "seed": 42,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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
prompt
stringLời nhắc đã được dùng để tạo đầu ra.
seed
integerGiá trị seed được áp dụng trong quá trình tạo sinh.
video
object {url, content_type, file_name, file_size}Tệp video được tạo sinh.

Thêm mô hình: Hình ảnh sang video

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