Liking cljdoc? Tell your friends :D

saymaker.core

Generate images and video on SayMaker (https://saymaker.ai) from Clojure.

(require '[saymaker.core :as sm]) (sm/generate "a paper boat at sunrise, soft fog, 35mm film") ;; => "https://cdn.saymaker.ai/uploads/generations/image/....webp" (sm/generate-video "a fox trotting through fresh snow" {:duration 6})

One API key runs the whole shelf on your own credits: Veo 3.1, Kling 3.0, Seedance 2.0, MiniMax H3, Nano Banana 2, GPT Image 2.5, Seedream 5.0 and more. Pass :api-key or set SAYMAKER_API_KEY; create a key at https://saymaker.ai/settings/apikeys.

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

Generate images and video on SayMaker (https://saymaker.ai) from Clojure.

  (require '[saymaker.core :as sm])
  (sm/generate "a paper boat at sunrise, soft fog, 35mm film")
  ;; => "https://cdn.saymaker.ai/uploads/generations/image/....webp"
  (sm/generate-video "a fox trotting through fresh snow" {:duration 6})

One API key runs the whole shelf on your own credits: Veo 3.1, Kling 3.0,
Seedance 2.0, MiniMax H3, Nano Banana 2, GPT Image 2.5, Seedream 5.0 and
more. Pass :api-key or set SAYMAKER_API_KEY; create a key at
https://saymaker.ai/settings/apikeys.

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

generateclj

(generate prompt)
(generate prompt {:keys [model image-url aspect-ratio timeout-ms] :as opts})

Generates one image, or edits :image-url, and returns its URL.

opts: :model, :image-url (a public http(s) url; makes the call an edit), :aspect-ratio ("1:1" "16:9" "9:16" "4:3" "3:4"), :api-key, :timeout-ms. For an edit, the prompt names the change and what must stay.

Generates one image, or edits :image-url, and returns its URL.

opts: :model, :image-url (a public http(s) url; makes the call an edit),
:aspect-ratio ("1:1" "16:9" "9:16" "4:3" "3:4"), :api-key, :timeout-ms.
For an edit, the prompt names the change and what must stay.
raw docstring

generate-videoclj

(generate-video prompt)
(generate-video prompt
                {:keys [model image-url duration resolution aspect-ratio sound
                        timeout-ms]
                 :as opts})

Generates one clip, or animates :image-url as the first frame, and returns its URL.

opts: :model (default "minimax-h3-fast", the one a free account can run), :image-url, :duration (seconds), :resolution ("480p" "720p" "1080p"), :aspect-ratio (default "16:9"), :sound (default true), :api-key, :timeout-ms.

Generates one clip, or animates :image-url as the first frame, and returns its URL.

opts: :model (default "minimax-h3-fast", the one a free account can run),
:image-url, :duration (seconds), :resolution ("480p" "720p" "1080p"),
:aspect-ratio (default "16:9"), :sound (default true), :api-key, :timeout-ms.
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