(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.
(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.
(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.
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 |