Seedance 2.0
Обзор
Идентификатор модели: seedance-2.0 · Результат: video · Режимы: Text to video, Reference images, Video reference
Аутентификация и endpoint
Все запросы отправляются на https://genjutsu.top. Передавайте API-ключ Genjutsu как bearer-токен. POST https://genjutsu.top/v1/media/generate · Authorization: Bearer $GENJUTSU_API_KEY · Необходимые права: generate, read, assets
Режимы и параметры
Text to video t2v
| Параметр | Тип | Обязательный | По умолчанию | Подробности |
|---|---|---|---|---|
prompt | string | Обязательный | - | Describe the shot. Use @Image1, @Image2, and so on to refer to attached images. |
duration | integer | Необязательный | 15 | |
aspect_ratio | одно из | Необязательный | "9:16" |
|
Минимальный запрос
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0",
"mode": "t2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}'Запрос с необязательными параметрами
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0",
"mode": "t2v",
"params": {
"audio": true,
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"duration": 15,
"resolution": "720p",
"aspect_ratio": "9:16"
}
}'Reference images i2v
| Параметр | Тип | Обязательный | По умолчанию | Подробности |
|---|---|---|---|---|
prompt | string | Обязательный | - | Describe the shot. Use @Image1, @Image2, and so on to refer to attached images. |
images_list | список ID ресурсов (image) | Обязательный | - | Up to 9 JPG, PNG, or WebP images, at most 20 MB each. The 12-file limit includes images, videos, and audio together. |
reference_audios | список ID ресурсов (audio) | Необязательный | - | Up to 3 clips with an image or video reference. Each must be at least 2 seconds. All reference audio together may total up to 15 seconds. |
duration | integer |
Video reference v2v
| Параметр | Тип | Обязательный | По умолчанию | Подробности |
|---|---|---|---|---|
prompt | string | Обязательный | - | Describe the shot. Use @Image1, @Image2, and so on to refer to attached images. |
images_list | список ID ресурсов (image) | Необязательный | - | Up to 9 JPG, PNG, or WebP images, at most 20 MB each. The 12-file limit includes images, videos, and audio together. |
reference_videos | список ID ресурсов (video) | Обязательный | - | Up to 3 videos, at most 50 MB each. Each must be at least 2 seconds. All reference videos together may total up to 15 seconds. |
reference_audios | список ID ресурсов (audio) |
Жизненный цикл задачи
Отправьте запрос на POST /v1/media/generate. Он отвечает 202 и task_id. Опрашивайте GET /v1/media/tasks/{task_id} каждые 5 секунд, пока is_final не станет true: состояние будет succeeded, failed или cancelled, а та же задача содержит результат (outputs) или ошибку (error_code и error_message). Повторная отправка с тем же Idempotency-Key возвращает исходную задачу. ID и URL в ответах приведены для примера.
# Needs curl and jq.
# 1. Submit. The response is 202 with task_id, state and credits_held.
ID=$(curl -s -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedance-2.0",
"mode": "t2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}' | jq -r .task_id)
echo "task: $ID"
# 2. Poll every 5 seconds until is_final is true (state is then succeeded, failed or cancelled).
while true; do
TASK=$(curl -s "https://genjutsu.top/v1/media/tasks/$ID" -H "Authorization: Bearer $GENJUTSU_API_KEY")
echo "state: $(echo "$TASK" | jq -r .state)"
[ "$(echo "$TASK" | jq -r .is_final)" = "true" ] && break
sleep 5
done
# 3. The final task carries the result: outputs[].url when succeeded, error_code and error_message when failed.
echo "$TASK" | jq '{state, outputs, error_code, error_message, credits}'Цена
Text to video
| Параметры | Итого |
|---|---|
Resolution: 480p | 5.000000 кредитов за запрос |
Resolution: 720p | 7.000000 кредитов за запрос |
Resolution: 1080p | 9.000000 кредитов за запрос |
Reference images
| Параметры | Итого |
|---|---|
Resolution: 480p | 5.000000 кредитов за запрос |
Resolution: 720p | 7.000000 кредитов за запрос |
Resolution: 1080p | 9.000000 кредитов за запрос |
Video reference
| Параметры | Итого |
|---|---|
Resolution: 480p | 5.000000 кредитов за запрос |
Resolution: 720p | 7.000000 кредитов за запрос |
Resolution: 1080p | 9.000000 кредитов за запрос |
Узнайте точную стоимость в Studio или через POST /v1/quotes.
Версия и заметки
Версия документации 4, опубликована 2026-11-27.