Liking cljdoc? Tell your friends :D

fitv.core

Official Clojure SDK for Free Image to Video (https://freeimagetovideo.ai). 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.

(require '[fitv.core :as fitv]) (fitv/generate-video "a paper lantern drifting over a night river") ;; => URL of the finished MP4 (fitv/generate-video "the camera slowly orbits the statue" {:image-url "https://example.com/statue.jpg" :duration 6 :resolution "768p" :aspect-ratio "9:16"}) (fitv/credits)

Pass :api-key or set FREEIMAGETOVIDEO_API_KEY; create a key at https://freeimagetovideo.ai/settings/apikeys. API runs need a paid plan: each run draws on the plan's full-speed allowance, then waits in the relaxed queue.

Options: :api-key, :image-url, :client (a configured io.github.hanshs474.freeimagetovideo.FreeImageToVideo), :timeout-ms (default 30 minutes), :poll-ms (default 10 seconds). Every other key is sent as an option, with hyphens turned into underscores (:aspect-ratio -> aspect_ratio).

Failures throw ex-info whose data carries :reason, one of :auth, :quota, :plan, :busy, :rejected, :generation, :timeout or :api.

Official Clojure SDK for Free Image to Video (https://freeimagetovideo.ai).
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.

  (require '[fitv.core :as fitv])
  (fitv/generate-video "a paper lantern drifting over a night river")
  ;; => URL of the finished MP4
  (fitv/generate-video "the camera slowly orbits the statue"
                       {:image-url "https://example.com/statue.jpg"
                        :duration 6 :resolution "768p" :aspect-ratio "9:16"})
  (fitv/credits)

Pass :api-key or set FREEIMAGETOVIDEO_API_KEY; create a key at
https://freeimagetovideo.ai/settings/apikeys. API runs need a paid plan:
each run draws on the plan's full-speed allowance, then waits in the
relaxed queue.

Options: :api-key, :image-url, :client (a configured
io.github.hanshs474.freeimagetovideo.FreeImageToVideo), :timeout-ms (default
30 minutes), :poll-ms (default 10 seconds). Every other key is sent as an
option, with hyphens turned into underscores (:aspect-ratio -> aspect_ratio).

Failures throw ex-info whose data carries :reason, one of :auth, :quota,
:plan, :busy, :rejected, :generation, :timeout or :api.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close