Liking cljdoc? Tell your friends :D

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

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