Liking cljdoc? Tell your friends :D

aigifmaker.core

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.
raw docstring

creditsclj

(credits)
(credits opts)

The credits left on the account. Free to call.

The credits left on the account. Free to call.
sourceraw docstring

generateclj

(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.
sourceraw docstring

statusclj

(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}.
sourceraw docstring

submitclj

(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`.
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