Liking cljdoc? Tell your friends :D

emaki.core

Official SDK for emaki (https://emaki.ai), the Japanese-language AI video generator for Seedance 2.5 and Seedance 2.0.

(require '[emaki.core :as emaki]) (emaki/generate-video "a paper lantern drifting down a night river") ;; => URL of the finished MP4 (emaki/generate-video "a street drummer in the rain" {:model "seedance_2_5" :duration 8 :resolution "720p"}) (emaki/generate-image "a ramen stall in the rain, neon reflections") (emaki/credits)

Pass :api-key or set EMAKI_API_KEY; create a key at https://emaki.ai/settings/apikeys. Every run costs credits on your emaki account, the same price as on the website.

Options: :model, :api-key, :client (a configured io.github.hanshs474.emaki.Emaki), :timeout-ms (default 15 minutes), :poll-ms (default 5000). Every other key is sent as a model parameter, with hyphens turned into underscores (:aspect-ratio -> aspect_ratio).

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

Official SDK for emaki (https://emaki.ai), the Japanese-language AI video
generator for Seedance 2.5 and Seedance 2.0.

  (require '[emaki.core :as emaki])
  (emaki/generate-video "a paper lantern drifting down a night river")
  ;; => URL of the finished MP4
  (emaki/generate-video "a street drummer in the rain"
                        {:model "seedance_2_5" :duration 8 :resolution "720p"})
  (emaki/generate-image "a ramen stall in the rain, neon reflections")
  (emaki/credits)

Pass :api-key or set EMAKI_API_KEY; create a key at
https://emaki.ai/settings/apikeys. Every run costs credits on your emaki
account, the same price as on the website.

Options: :model, :api-key, :client (a configured
io.github.hanshs474.emaki.Emaki), :timeout-ms (default 15 minutes),
:poll-ms (default 5000). Every other key is sent as a model parameter,
with hyphens turned into underscores (:aspect-ratio -> aspect_ratio).

Failures throw ex-info whose data carries :reason, one of :auth, :quota,
:plan, :busy, :rejected, :validation, :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

generate-imageclj

(generate-image prompt)
(generate-image prompt opts)

Generates one image and returns its URL. Default model "nano_banana_2_lite", the cheapest run on the site. Parameters: :aspect-ratio, and :resolution or :quality where the model has them.

Generates one image and returns its URL. Default model
"nano_banana_2_lite", the cheapest run on the site. Parameters:
:aspect-ratio, and :resolution or :quality where the model has them.
sourceraw docstring

generate-videoclj

(generate-video prompt)
(generate-video prompt opts)

Generates one clip and returns its URL. Default model "seedance_2_5" (5 seconds, 480p, 16:9, with sound). Parameters: :duration, :resolution, :aspect-ratio, :generate-audio, :image (first frame, a public https URL), :last-frame-image.

Generates one clip and returns its URL. Default model "seedance_2_5"
(5 seconds, 480p, 16:9, with sound). Parameters: :duration, :resolution,
:aspect-ratio, :generate-audio, :image (first frame, a public https URL),
:last-frame-image.
sourceraw docstring

statusclj

(status id)
(status id opts)

Where a run stands: {:id :status ("generating" "completed" "failed") :video-url :failure-code :raw}.

Where a run stands: {:id :status ("generating" "completed" "failed")
:video-url :failure-code :raw}.
sourceraw docstring

submitclj

(submit prompt)
(submit prompt opts)

Starts a run without waiting and returns its id; follow it with status. Default model "seedance_2_5".

Starts a run without waiting and returns its id; follow it with `status`.
Default model "seedance_2_5".
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