Official Clojure SDK for AI GIF Maker (https://aigifmaker.ai): turn text into animated GIFs.
(require '[aigifmaker.core :as gif]) (gif/generate "a corgi in sunglasses dancing on a beach, looping") ;; => URL of the finished GIF (gif/credits)
Pass :api-key or set AIGIFMAKER_API_KEY; create a key at https://aigifmaker.ai/settings/apikeys. Each GIF costs 1 credit on your AI GIF Maker account, the same as on the website.
Options: :api-key, :base-url, :client (a configured io.github.hanshs474.aigifmaker.Aigifmaker), :timeout-ms (default 15 minutes), :poll-ms (default 3000).
Failures throw ex-info whose data carries :reason, one of :auth, :quota, :rejected, :failed, :timeout or :other.
Official Clojure SDK for AI GIF Maker (https://aigifmaker.ai): turn text into animated GIFs. (require '[aigifmaker.core :as gif]) (gif/generate "a corgi in sunglasses dancing on a beach, looping") ;; => URL of the finished GIF (gif/credits) Pass :api-key or set AIGIFMAKER_API_KEY; create a key at https://aigifmaker.ai/settings/apikeys. Each GIF costs 1 credit on your AI GIF Maker account, the same as on the website. Options: :api-key, :base-url, :client (a configured io.github.hanshs474.aigifmaker.Aigifmaker), :timeout-ms (default 15 minutes), :poll-ms (default 3000). Failures throw ex-info whose data carries :reason, one of :auth, :quota, :rejected, :failed, :timeout or :other.
(credits)(credits opts)The credits left on the account. Free to call.
The credits left on the account. Free to call.
(generate prompt)(generate prompt opts)Turns a prompt into an animated GIF and returns its URL: submits, waits, and returns when the GIF is ready.
Turns a prompt into an animated GIF and returns its URL: submits, waits, and returns when the GIF is ready.
(status id)(status id opts)Where a GIF stands: {:id :status ("pending" "processing" "success" "failed") :url :queued :error-message :raw}.
Where a GIF stands: {:id :status ("pending" "processing" "success"
"failed") :url :queued :error-message :raw}.(submit prompt)(submit prompt opts)Starts a GIF without waiting and returns its id; follow it with status.
Starts a GIF without waiting and returns its id; follow it with `status`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |