Bỏ qua đến nội dung

LongCat Video · Text to Video · 720p

Tích hợp

Id mô hình longcat-video/text-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/text-to-video/720p?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"
  }'

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

•bắt buộc

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

aspect_ratio mặc định 16:9

Tỷ lệ khung hình của video đầu ra.

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/text-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/text-to-video/720p?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"
  }'

# 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 · Text to Video · 720p

Tạo video từ lời nhắc, thêm một lượt tinh chỉnh được đặt bởi `num_refine_inference_steps` (8 đến 50). `aspect_ratio` là 16:9, 9:16 hoặc 1:1, `num_frames` nằm trong khoảng từ 17 đến 961 (mặc định 162) ở mức mặc định 30 fps. Mô hình cũng nhận lời nhắc phủ định và `guidance_scale` từ 1 đến 10. Đầu ra có thể là mp4, webm, ProRes mov hoặc GIF.

Tham số

TênKiểu Mặc địnhĐược phép Mô tả
promptbắt buộc
Kiểustring
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.
aspect_ratiotùy chọn
Kiểuenum
Mặc định16:9
16:99:161:1
Tỷ lệ khung hình của video đầu ra.
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

Đầu ra

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "longcat-video/text-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": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "prompt": "realistic filming style, a person wearing a dark helmet, a deep-colored jacket, blue jeans, and bright yellow shoes rides a skateboard along a winding mountain road. The skateboarder starts in a standing position, then gradually lowers into a crouch, extending one hand to touch the road surface while maintaining a low center of gravity to navigate a sharp curve. After completing the turn, the skateboarder rises back to a standing position and continues gliding forward. The background features lush green hills flanking both sides of the road, with distant snow-capped mountain peaks rising against a clear, bright blue sky. The camera follows closely from behind, smoothly tracking the skateboarder’s movements and capturing the dynamic scenery along the route. The scene is shot in natural daylight, highlighting the vivid outdoor environment and the skateboarder’s fluid actions.",
    "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: Văn bản 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/text-to-video/720p.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt