Motion to Code · GSAP
Создаёт редактируемую SVG-анимацию на GSAP по описанию, изображению или видео. Результат — MP4 и HTML с исходным кодом.
Стоимость
от 15 токенов/с
Попробовать Motion to Code · GSAP в Givon AI
Открой рабочий проект для обычной генерации или Playground, чтобы проверить точные параметры модели.
Использовать через API
Поля запроса, ограничения и готовые примеры для разработчиков. Пользовательский запуск находится выше.
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
-H "Authorization: Bearer $GIVON_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"video","model":"motion-to-code-gsap","input":{"prompt":"кинематографичный пролёт дрона над ночным городом","aspectRatio":"16:9","duration":6}}'Входные поля
* — обязательное| Поле | Тип | По умолчанию | Допустимо |
|---|---|---|---|
prompt promptGeneration prompt describing the scene, action and direction. | string | — | до 4000 симв. |
aspectRatio aspectRatio | string | 16:9 | 16:9, 9:16, 1:1, auto |
duration duration | number | 6 | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 |
Start image startImageAsset input for the startImage slot. | string | — | image · asset, https, data |
Source video sourceVideoAsset input for the sourceVideo slot. | string | — | video · asset, https, data |
Speech audio speechAudioAsset input for the speechAudio slot. | string | — | voiceover · asset, https, data |
providerOptions providerOptions | object | — | object |
promptGeneration prompt describing the scene, action and direction.
- Тип
- string
- По умолчанию
- —
- Допустимо
- до 4000 симв.
aspectRatio- Тип
- string
- По умолчанию
- 16:9
- Допустимо
- 16:9, 9:16, 1:1, auto
duration- Тип
- number
- По умолчанию
- 6
- Допустимо
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
startImageAsset input for the startImage slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- image · asset, https, data
sourceVideoAsset input for the sourceVideo slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- video · asset, https, data
speechAudioAsset input for the speechAudio slot.
- Тип
- string
- По умолчанию
- —
- Допустимо
- voiceover · asset, https, data
providerOptions- Тип
- object
- По умолчанию
- —
- Допустимо
- object
Стоимость
от 15 токенов/сВариант подбирается по полям запроса автоматически — указывать его не нужно.
Возможности
text_to_videoimage_to_videovideo_editstartImage:imagesourceVideo:videospeechAudio:voiceover