Free image to video AI with no daily cap: start with no sign-up, keep going on a free account. Every video comes with sound and no watermark. This is the official R SDK for Free Image to Video.
Turn a prompt into a video clip (free text to video AI), or animate a photo as the first frame (image to video AI with sound), using MiniMax H3 from R.
install.packages(
"freeimagetovideo",
repos = c("https://hanshs474.r-universe.dev", "https://cloud.r-project.org")
)
Imports curl and jsonlite.
Create an API key at freeimagetovideo.ai/settings/apikeys and export it:
export FREEIMAGETOVIDEO_API_KEY=sk-...
API runs draw on your plan's daily full-speed allowance, then wait in the relaxed queue (pricing).
library(freeimagetovideo)
# Text to video
clip <- fitv_generate_video("a paper lantern drifting over a night river")
clip # URL of the finished MP4
# Image to video
moved <- fitv_generate_video(
"the camera slowly orbits the statue",
image_url = "https://example.com/statue.jpg",
options = list(duration = 6, resolution = "480p", aspect_ratio = "16:9")
)
Options: duration (4, 5, 6, 8, 10, 15), resolution ("480p", "768p"), aspect_ratio ("16:9", "9:16", "1:1").
id <- fitv_submit("a fox trotting through fresh snow")
fitv_status(id)$status # pending | processing | success | failed | canceled
fitv_credits() # remaining credits
Failures signal a condition inheriting from fitv_error:
fitv_auth: missing or invalid API keyfitv_quota: insufficient creditsfitv_plan: paid plan required for API runsfitv_busy: too many concurrent runsfitv_rejected: content filter refusal or active cooldownfitv_failed: run accepted and failed or canceledfitv_timeout: polling deadline exceededfitv_api: other request or validation failure