Liking cljdoc? Tell your friends :D
Clojure only.

veida.core

Generate AI images from Clojure with no API key and no account.

(require '[veida.core :as veida]) (veida/generate "a paper boat at sunrise, soft light") ;; => {:url "https://cdn.veida.ai/uploads/kie/image/....webp" :watermarked? true}

Calls the anonymous tier of https://veida.ai, so the first call works on a machine with nothing configured: 4 credits per client id, 4 per image, 30 per IP per day. Free output is 1K and watermarked.

Failures throw ex-info whose data carries :reason, one of :quota, :rejected, :timeout or :other, so a caller can tell waiting from rewording.

Generate AI images from Clojure with no API key and no account.

  (require '[veida.core :as veida])
  (veida/generate "a paper boat at sunrise, soft light")
  ;; => {:url "https://cdn.veida.ai/uploads/kie/image/....webp" :watermarked? true}

Calls the anonymous tier of https://veida.ai, so the first call works on a
machine with nothing configured: 4 credits per client id, 4 per image, 30 per
IP per day. Free output is 1K and watermarked.

Failures throw ex-info whose data carries :reason, one of :quota, :rejected,
:timeout or :other, so a caller can tell waiting from rewording.
raw docstring

generateclj

(generate prompt)
(generate prompt opts)

Turns prompt into an image and returns {:url :watermarked?}.

opts: :aspect-ratio ("1:1" "16:9" "9:16" "4:3" "3:4", default "1:1"), :timeout-ms, :poll-ms, :http-client (a java.net.http.HttpClient, for a proxy).

Name the light, the material and the composition. "matte black ceramic mug on pale oak, soft window light from the left" gives the model a picture, "a product photo of a mug" does not.

Turns prompt into an image and returns {:url :watermarked?}.

opts: :aspect-ratio ("1:1" "16:9" "9:16" "4:3" "3:4", default "1:1"),
:timeout-ms, :poll-ms, :http-client (a java.net.http.HttpClient, for a proxy).

Name the light, the material and the composition. "matte black ceramic mug
on pale oak, soft window light from the left" gives the model a picture,
"a product photo of a mug" does not.
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