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.
(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?}.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |