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

VideoProvider: Fal

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.

Run generation
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
promptprompt

Generation prompt describing the scene, action and direction.

Type
string
Default
—
Allowed
up to 4000 chars
aspectRatioaspectRatio
Type
string
Default
16:9
Allowed
16:9, 9:16, 1:1, auto
durationduration
Type
number
Default
6
Allowed
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Start imagestartImage

Asset input for the startImage slot.

Type
string
Default
—
Allowed
image · asset, https, data
Source videosourceVideo

Asset input for the sourceVideo slot.

Type
string
Default
—
Allowed
video · asset, https, data
Speech audiospeechAudio

Asset input for the speechAudio slot.

Type
string
Default
—
Allowed
voiceover · asset, https, data
providerOptionsproviderOptions
Type
object
Default
—
Allowed
object

Cost

from 15 tokens/s
Text_to_videodefault22.5 tk/s
Image_to_video22.5 tk/s
Video_edit15 tk/s

The variant is selected automatically from request fields, so you do not need to send it.

Capabilities

Modestext_to_videoimage_to_videovideo_edit
Asset slotsstartImage:imagesourceVideo:videospeechAudio:voiceover
Get API key

Where to use this model