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

creditsclj

(credits)
(credits opts)

The credits left on the account.

The credits left on the account.
sourceraw docstring

generate-videoclj

(generate-video prompt)
(generate-video prompt opts)

Generates one clip with sound and returns its URL. Parameters: :image-url (first frame, a public https URL), :duration (4/5/6/8/10/15), :resolution ("480p"/"768p"), :aspect-ratio ("16:9"/"9:16"/"1:1").

Generates one clip with sound and returns its URL. Parameters: :image-url
(first frame, a public https URL), :duration (4/5/6/8/10/15), :resolution
("480p"/"768p"), :aspect-ratio ("16:9"/"9:16"/"1:1").
sourceraw docstring

statusclj

(status id)
(status id opts)

Where a run stands: {:id :status ("pending" "processing" "success" "failed" "canceled") :videos :error-message :failure-code :queued :queue-eta :raw}.

Where a run stands: {:id :status ("pending" "processing" "success"
"failed" "canceled") :videos :error-message :failure-code :queued :queue-eta :raw}.
sourceraw docstring

submitclj

(submit prompt)
(submit prompt opts)

Starts a run without waiting and returns its task id; follow it with status.

Starts a run without waiting and returns its task id; follow it with `status`.
sourceraw 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