Seedance Lite
Создание задачи
POST
https://gptunnel.ru/v1/media/create Асинхронный запрос вернёт задачу и её идентификатор — сохраните его для последующего получения ссылки на результат.
Пример запроса /create
import axios from 'axios'
const request = axios({ method: 'POST', url: 'https://gptunnel.ru/v1/media/create', headers: { Authorization: 'YOUR_API_KEY', }, data: { model: 'seedance-1-lite-480P-5s', ar: '9:16', prompt: 'Cinematic Olympic cycling final scene. The main character — a fit border collie in a professional suit and helmet — rides along a scenic track. Competitors include a raccoon, tiger, goat, and wolf. Scene 1: The camera smoothly follows the dog, focusing on his determined face and steady pedaling, wind flowing through his fur. Scene 2: Aerial shots show the dog picking up speed, leaving others behind as the camera accelerates with him, revealing beautiful landscapes. Scene 3: The dog crosses the finish line first. The camera captures his victory and the joy of the cheering crowd.', },})
request .then((result) => { console.log(result) }) .catch((error) => { console.error(error) })import requests
response = requests.post( "https://gptunnel.ru/v1/media/create", headers={ "Authorization": "YOUR_API_KEY", "Content-Type": "application/json", }, json={ "model": "seedance-1-lite-480P-5s", "ar": "9:16", "prompt": "Cinematic Olympic cycling final scene. The main character — a fit border collie in a professional suit and helmet — rides along a scenic track. Competitors include a raccoon, tiger, goat, and wolf. Scene 1: The camera smoothly follows the dog, focusing on his determined face and steady pedaling, wind flowing through his fur. Scene 2: Aerial shots show the dog picking up speed, leaving others behind as the camera accelerates with him, revealing beautiful landscapes. Scene 3: The dog crosses the finish line first. The camera captures his victory and the joy of the cheering crowd.", },)
print(response.json())curl --request POST \ --url https://gptunnel.ru/v1/media/create \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "model": "seedance-1-lite-480P-5s", "ar": "9:16", "prompt": "Cinematic Olympic cycling final scene. The main character — a fit border collie in a professional suit and helmet — rides along a scenic track. Competitors include a raccoon, tiger, goat, and wolf. Scene 1: The camera smoothly follows the dog, focusing on his determined face and steady pedaling, wind flowing through his fur. Scene 2: Aerial shots show the dog picking up speed, leaving others behind as the camera accelerates with him, revealing beautiful landscapes. Scene 3: The dog crosses the finish line first. The camera captures his victory and the joy of the cheering crowd." }'Параметры запроса
| Параметр | Тип | Описание |
|---|---|---|
model* | string | Уникальный ID модели |
prompt* | string | Промпт запроса |
images | Array<string> | Массив ссылок на изображения для контекста, принимает только 1 изображение (первый кадр) |
ar | string | Соотношение сторон, допустимые значения '1:1', '16:9', '9:16' |
Заголовки
| Параметр | Тип | Описание |
|---|---|---|
Authorization* | string | API ключ |
Пример ответа /create
{ "code": 0, "id": "687fbf7cea2350000177fbf8", "model": "seedance-1-lite-480P-5s", "prompt": "Cinematic Olympic cycling final scene. The main character — a fit border collie in a professional suit and helmet — rides along a scenic track. Competitors include a raccoon, tiger, goat, and wolf. Scene 1: The camera smoothly follows the dog, focusing on his determined face and steady pedaling, wind flowing through his fur. Scene 2: Aerial shots show the dog picking up speed, leaving others behind as the camera accelerates with him, revealing beautiful landscapes. Scene 3: The dog crosses the finish line first. The camera captures his victory and the joy of the cheering crowd. --ar 9:16", "created_at": 1753202556, "status": "idle", "url": null}Получение результата
POST
https://gptunnel.ru/v1/media/result После получения 24-значного идентификатора задачи вы можете вызвать метод для получения результата. Запрос можно вызвать как POST так и GET методом передав task_id в query либо в body.
Пример запроса /result
import axios from 'axios'
const request = axios({ method: 'POST', url: 'https://gptunnel.ru/v1/media/result', headers: { Authorization: 'YOUR_API_KEY', }, data: { task_id: '687fbf7cea2350000177fbf8', },})
request .then((result) => { console.log(result) }) .catch((error) => { console.error(error) })import requests
response = requests.post( "https://gptunnel.ru/v1/media/result", headers={ "Authorization": "YOUR_API_KEY", "Content-Type": "application/json", }, json={ "task_id": "687fbf7cea2350000177fbf8", },)
print(response.json())curl --request POST \ --url https://gptunnel.ru/v1/media/result \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "task_id": "687fbf7cea2350000177fbf8" }'Пример ответа /result
{ "code": 0, "id": "687fbf7cea2350000177fbf8", "model": "seedance-1-lite-480P-5s", "prompt": "Cinematic Olympic cycling final scene. The main character — a fit border collie in a professional suit and helmet — rides along a scenic track. Competitors include a raccoon, tiger, goat, and wolf. Scene 1: The camera smoothly follows the dog, focusing on his determined face and steady pedaling, wind flowing through his fur. Scene 2: Aerial shots show the dog picking up speed, leaving others behind as the camera accelerates with him, revealing beautiful landscapes. Scene 3: The dog crosses the finish line first. The camera captures his victory and the joy of the cheering crowd. --ar 9:16", "created_at": 1753202556, "status": "done", "url": "https://timenote.storage.yandexcloud.net/predication/687fbf7cea2350000177fbf8_result.mp4"}