Liking cljdoc? Tell your friends :D
Clojure only.

llm.sdk.image

Driver for image generation requests — the image counterpart to sdk/complete, sdk/embed, sdk/moderate, and sdk/rerank.

Resolves the profile, picks up its :profile/image-transport-constructor, builds and sends the request, returns a canonical ImageGenResponse. Providers without image support throw a clear ex-info.

Driver for image generation requests — the image counterpart to
sdk/complete, sdk/embed, sdk/moderate, and sdk/rerank.

Resolves the profile, picks up its
:profile/image-transport-constructor, builds and sends the request,
returns a canonical ImageGenResponse. Providers without image
support throw a clear ex-info.
raw docstring

generate-imageclj

(generate-image provider-id request & {:keys [config]})

Send a canonical ImageGenRequest, return an ImageGenResponse.

Required: :image/prompt. Optional: :image/model, :image/n, :image/size, :image/quality, :image/style, :image/response-format (:url or :b64_json), :image/user, :image/provider-options.

The canonical response includes :image/images — a vector of {:image/url? :image/b64? :image/revised-prompt?}.

Send a canonical ImageGenRequest, return an ImageGenResponse.

Required: :image/prompt. Optional: :image/model, :image/n,
:image/size, :image/quality, :image/style,
:image/response-format (:url or :b64_json), :image/user,
:image/provider-options.

The canonical response includes :image/images — a vector of
{:image/url? :image/b64? :image/revised-prompt?}.
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