Liking cljdoc? Tell your friends :D

qy-upup.ai-minecraft-skin.core


extract-prompt-from-urlclj

(extract-prompt-from-url url)

Extracts the prompt from a Supermaker AI Minecraft Skin URL.

Takes a URL string as input and returns the prompt string used to generate the skin. Returns nil if the URL is not a valid Supermaker AI Minecraft Skin URL or if the prompt parameter is missing.

Example: (extract-prompt-from-url "https://supermaker.ai/image/ai-minecraft-skin/?prompt=A%20cool%20ninja%20skin") ;=> "A cool ninja skin"

(extract-prompt-from-url "https://supermaker.ai/image/ai-minecraft-skin/") ;=> nil

Extracts the prompt from a Supermaker AI Minecraft Skin URL.

Takes a URL string as input and returns the prompt string used to generate the skin.
Returns nil if the URL is not a valid Supermaker AI Minecraft Skin URL or if the
prompt parameter is missing.

Example:
(extract-prompt-from-url "https://supermaker.ai/image/ai-minecraft-skin/?prompt=A%20cool%20ninja%20skin")
;=> "A cool ninja skin"

(extract-prompt-from-url "https://supermaker.ai/image/ai-minecraft-skin/")
;=> nil
raw docstring

generate-skin-urlclj

(generate-skin-url prompt)

Generates a Supermaker AI Minecraft Skin URL based on a prompt.

Takes a prompt string as input and returns a URL string pointing to the Supermaker AI Minecraft Skin generator with the prompt encoded as a URL parameter.

Example: (generate-skin-url "A cool ninja skin") ;=> "https://supermaker.ai/image/ai-minecraft-skin/?prompt=A%20cool%20ninja%20skin"

Generates a Supermaker AI Minecraft Skin URL based on a prompt.

Takes a prompt string as input and returns a URL string pointing to the
Supermaker AI Minecraft Skin generator with the prompt encoded as a URL parameter.

Example:
(generate-skin-url "A cool ninja skin")
;=> "https://supermaker.ai/image/ai-minecraft-skin/?prompt=A%20cool%20ninja%20skin"
raw docstring

mock-skin-dataclj

(mock-skin-data prompt)

Generates mock data representing a Supermaker AI Minecraft skin result.

Takes a prompt string and returns a map containing the prompt and a placeholder image URL. This is useful for testing purposes when you don't want to actually generate a skin.

Example: (mock-skin-data "A steampunk robot") ;=> {:prompt "A steampunk robot", :image_url "https://example.com/mock-skin.png"}

Generates mock data representing a Supermaker AI Minecraft skin result.

Takes a prompt string and returns a map containing the prompt and a placeholder
image URL.  This is useful for testing purposes when you don't want to
actually generate a skin.

Example:
(mock-skin-data "A steampunk robot")
;=> {:prompt "A steampunk robot", :image_url "https://example.com/mock-skin.png"}
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