Motion to Code · GSAP
Creates an editable SVG animation with a GSAP timeline from a prompt, image or video, with an MP4 preview and downloadable HTML source.
Cost
from 15 tokens/s
Try Motion to Code · GSAP in Givon AI
Open a working project for regular creation, or use Playground to inspect the model parameters.
Use through API
Request fields, constraints, and ready-to-use examples for developers. The user workflow starts above.
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":"cinematic drone shot over a city at night","aspectRatio":"16:9","duration":6}}'Input fields
* required| Field | Type | Default | Allowed |
|---|---|---|---|
prompt promptGeneration prompt describing the scene, action and direction. | string | — | up to 4000 chars |
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.
- Type
- string
- Default
- —
- Allowed
- up to 4000 chars
aspectRatio- Type
- string
- Default
- 16:9
- Allowed
- 16:9, 9:16, 1:1, auto
duration- Type
- number
- Default
- 6
- Allowed
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
startImageAsset input for the startImage slot.
- Type
- string
- Default
- —
- Allowed
- image · asset, https, data
sourceVideoAsset input for the sourceVideo slot.
- Type
- string
- Default
- —
- Allowed
- video · asset, https, data
speechAudioAsset input for the speechAudio slot.
- Type
- string
- Default
- —
- Allowed
- voiceover · asset, https, data
providerOptions- Type
- object
- Default
- —
- Allowed
- object
Cost
from 15 tokens/sThe variant is selected automatically from request fields, so you do not need to send it.
Capabilities
text_to_videoimage_to_videovideo_editstartImage:imagesourceVideo:videospeechAudio:voiceover