Skip to content

Видеомодели

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

Две единицы тарификации: за клип и за секунду

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

  • За клип — одна цена за запрос, независимо от длительности. Выгоднее для длинных роликов.
  • За секунду — цена × длительность. Дешевле для коротких роликов, оплата по факту для длинных.

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

Меньшая цена за единицу ещё не значит меньшую итоговую сумму

Модель по ¥0.375 / секунда обойдётся в ¥5.625 за 15 секунд, а модель по ¥4.35 / клип останется ¥4.35 при любой длительности. Всегда пересчитывайте на нужную вам длительность перед сравнением.

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.

Получение видео

Когда status станет completed, скачайте ролик по адресу metadata.url из ответа. Адрес всегда такой:

bash
curl -L 'https://tian-shu.net/v1/videos/{task_id}/content' \
  -H 'Authorization: Bearer <ключ группы 视频专用>' \
  -o video.mp4

Возвращается video/mp4.

Готовые ролики хранятся ограниченное время

Скачайте и сохраните файл сразу после завершения. По истечении срока хранения адрес перестанет работать.

При ошибке в ответе нет metadata, только error.message — и списания не происходит.

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.