Liking cljdoc? Tell your friends :D

qy-upup.supermaker-ai-image-master.core


extract-prompt-from-urlclj

(extract-prompt-from-url url)

Extracts the prompt from a Supermaker AI image URL.

Params: url - The Supermaker AI image URL (string).

Returns: The prompt string extracted from the URL, or nil if not found.

Extracts the prompt from a Supermaker AI image URL.

Params:
  url - The Supermaker AI image URL (string).

Returns:
  The prompt string extracted from the URL, or nil if not found.
raw docstring

generate-image-urlclj

(generate-image-url prompt)
(generate-image-url prompt style)
(generate-image-url prompt style resolution)

Generates a Supermaker AI image URL based on provided parameters.

Params: prompt - The image prompt (string). style - The image style (string). Optional, defaults to "default". resolution - The image resolution (string). Optional, defaults to "512x512".

Returns: A string representing the complete Supermaker AI image URL.

Generates a Supermaker AI image URL based on provided parameters.

Params:
  prompt - The image prompt (string).
  style  - The image style (string). Optional, defaults to "default".
  resolution - The image resolution (string). Optional, defaults to "512x512".

Returns:
  A string representing the complete Supermaker AI image URL.
raw docstring

mock-image-dataclj

(mock-image-data)
(mock-image-data n)

Generates mock image data for testing or demonstration purposes.

Params: n - The number of mock image data entries to generate (integer). Optional, defaults to 1.

Returns: A vector of maps, where each map represents a mock image data entry. Each entry contains keys: :id, :prompt, :url, :created-at.

Generates mock image data for testing or demonstration purposes.

Params:
  n - The number of mock image data entries to generate (integer). Optional, defaults to 1.

Returns:
  A vector of maps, where each map represents a mock image data entry.
  Each entry contains keys: :id, :prompt, :url, :created-at.
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