fal's Motion to Code turns a clip into editable code
The two hosted endpoints rebuild a reference clip of up to 15 seconds as one HTML page or a looping GLSL shader, priced from $0.20 a second.

Key takeaways
- fal's Motion to Code delivers editable code: one self-contained HTML page driven by a single GSAP 3 timeline, or a Shadertoy-style GLSL fragment shader.
- A reference video must be 15 seconds or shorter, the loop runs from 1 to 15 seconds, and fal's own schema says flat motion design works best.
- The GSAP and GLSL endpoints cost $0.30 per second when MiniMax H3 Max animates your prompt or image first and $0.20 per second when they rebuild your own video, with a 5-second minimum.
- fal published no blog post or changelog entry for Motion to Code, and no independent hands-on test of the output had appeared as of October 30.
fal published Motion to Code on October 29, a pair of hosted endpoints that hand back editable code rather than a rendered video.
The GSAP endpoint writes a motion design animation as one self-contained HTML page, with inline SVG animated by a single GSAP 3 timeline. The GLSL endpoint writes one Shadertoy-style fragment shader, in GLSL ES 3.00 with a single pass and no textures, which fal says loops seamlessly over the duration.
It takes a prompt of up to 4,000 characters, a reference video, or an image, and refuses a video and an image together. fal's schema caps a supplied video at 15 seconds and states that flat motion design works best. With a prompt or an image, MiniMax H3 Max first animates it into a reference clip, and fal's code rebuilds that clip. The extra animation step is why prompt and image input cost more.
The loop runs from 1 to 15 seconds and defaults to 6. A supplied video sets its own length, and the duration field is ignored with one. Aspect ratio is 16:9, 9:16 or 1:1, also ignored when a video or an image sets the shape. refine_rounds is 0 or 1 and defaults to 1, the pass where the model compares its render with the reference and fixes the code. A safety checker runs by default. The response carries the code, an HTML page to save and open, an MP4 preview rendered from the code, and a contact sheet of reference and render side by side at the same timestamps.
Pricing is $0.30 per second of animation when H3 Max makes the reference clip and $0.20 per second from your own video, with a 5-second minimum. fal's own examples: a 6-second loop from a prompt costs $1.80, and a 10-second clip rebuilt from your own video costs $2.00. Both model pages are marked for commercial use. Neither carries a weights or repository link, and fal lists both as inference-only, so you reach Motion to Code through the hosted API with a FAL_KEY.
fal posted no blog entry and no changelog line for Motion to Code, and no independent hands-on test of the output had appeared as of October 30. The schema sets two limits: refine_rounds allows one correction pass rather than a loop, and the note that flat motion design works best marks what a reconstruction can match. The contact sheet compares the render with the reference at the same timestamps, so it shows how close the code got, not whether the motion is the one you wanted.
Motion to Code is live on fal now. You need a fal account and a FAL_KEY to call either endpoint.
Sources
- fal.ai - official GSAP model page: description, pricing, spec
- fal.ai - official GLSL model page: description, pricing, spec
- fal.ai - official input and output schema: duration range, refine_rounds, safety checker, outputs
- fal.ai - official schema for the GLSL endpoint
- fal.ai - fal's pricing page, checked for a Motion to Code listing
- blog.fal.ai - fal's blog, checked for a launch post
- fal.ai - fal's changelog, checked for an entry