freeimagetovideo (R SDK)

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

install.packages(
  "freeimagetovideo",
  repos = c("https://hanshs474.r-universe.dev", "https://cloud.r-project.org")
)

Imports curl and jsonlite.

API key

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).

Quick start

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").

Submit now, collect later

id <- fitv_submit("a fox trotting through fresh snow")
fitv_status(id)$status  # pending | processing | success | failed | canceled
fitv_credits()          # remaining credits

Error classes

Failures signal a condition inheriting from fitv_error: