Skip to content

Mô hình video

The 视频专用 group covers Seedance, Veo, Kling, MiniMax, Grok and other video models, all called through the same video API.

Hai cách tính phí: theo video và theo giây

This is the one thing to check before picking a model:

  • Theo video — một giá cho mỗi yêu cầu, không phụ thuộc độ dài. Lợi hơn với video dài.
  • Theo giây — đơn giá × thời lượng. Rẻ hơn với video ngắn, trả theo mức dùng với video dài.

Cards in the Model Marketplace state / clip or / second directly, and the Pricing type filter on the left lets you view just one kind.

Đơn giá thấp không có nghĩa tổng tiền thấp

Mô hình ghi ¥0.375 / giây sẽ tốn ¥5.625 cho 15 giây, còn mô hình ghi ¥4.35 / video vẫn là ¥4.35 ở mọi độ dài. Hãy quy đổi theo thời lượng bạn thực sự cần rồi mới so sánh.

Calling it

Video is an async job: submit, get a task_id, then poll for the result. Use a token from the 视频专用 group.

bash
curl 'https://tian-shu.net/v1/videos' \
  -H 'Authorization: Bearer <your 视频专用 group key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "seedance-2.0-fast",
    "prompt": "neon street on a rainy night, slow dolly in, cinematic",
    "aspect_ratio": "16:9"
  }'

Then poll GET /v1/videos/{task_id}; fetch the result once status becomes completed.

Lấy video

Khi status chuyển thành completed, tải video từ metadata.url trong phản hồi. Địa chỉ này luôn là:

bash
curl -L 'https://tian-shu.net/v1/videos/{task_id}/content' \
  -H 'Authorization: Bearer <khóa nhóm 视频专用 của bạn>' \
  -o video.mp4

Trả về video/mp4.

Video chỉ được lưu trong thời gian giới hạn

Hãy tải và tự lưu tệp ngay khi tạo xong. Sau thời hạn lưu trữ, địa chỉ sẽ không còn dùng được.

Khi thất bại, phản hồi không có metadata, chỉ có error.message — và không bị tính phí.

Parameters differ per model

Supported durations, resolutions and reference-image / first-last-frame capabilities vary a lot between models. Click the Docs button on a model card to see that model's own endpoint reference, parameter table and copy-ready samples — see Using the Marketplace.