Core namespace for interacting with the Supermaker AI Veo 3.1 video platform. Provides utility functions for URL generation and metadata handling.
Core namespace for interacting with the Supermaker AI Veo 3.1 video platform. Provides utility functions for URL generation and metadata handling.
(extract-video-id video-url)Extracts the video ID from a Veo 3.1 video URL.
Args: video-url: The URL of the Veo 3.1 video (string).
Returns: The video ID as a string, or nil if the URL is not a valid Veo 3.1 video URL.
Example: (extract-video-id "https://supermaker.ai/video/veo-3-1/def-456") ;=> "def-456" (extract-video-id "https://example.com/video/ghi-789") ;=> nil
Extracts the video ID from a Veo 3.1 video URL. Args: video-url: The URL of the Veo 3.1 video (string). Returns: The video ID as a string, or nil if the URL is not a valid Veo 3.1 video URL. Example: (extract-video-id "https://supermaker.ai/video/veo-3-1/def-456") ;=> "def-456" (extract-video-id "https://example.com/video/ghi-789") ;=> nil
(mock-video-metadata video-id title duration)Generates mock metadata for a Veo 3.1 video.
Args: video-id: The ID of the Veo 3.1 video (string or integer). title: The title of the video (string). duration: The duration of the video in seconds (integer).
Returns: A map containing mock metadata for the video.
Example: (mock-video-metadata "xyz-789" "My Awesome Video" 120) ;=> {:video-id "xyz-789", :title "My Awesome Video", :duration 120}
Generates mock metadata for a Veo 3.1 video.
Args:
video-id: The ID of the Veo 3.1 video (string or integer).
title: The title of the video (string).
duration: The duration of the video in seconds (integer).
Returns:
A map containing mock metadata for the video.
Example:
(mock-video-metadata "xyz-789" "My Awesome Video" 120)
;=> {:video-id "xyz-789", :title "My Awesome Video", :duration 120}(veo-video-url video-id)Generates a URL for a specific Veo 3.1 video given its ID.
Args: video-id: The ID of the Veo 3.1 video (string or integer).
Returns: A string representing the full URL to the video.
Example: (veo-video-url "abc-123") ;=> "https://supermaker.ai/video/veo-3-1/abc-123" (veo-video-url 456) ;=> "https://supermaker.ai/video/veo-3-1/456"
Generates a URL for a specific Veo 3.1 video given its ID. Args: video-id: The ID of the Veo 3.1 video (string or integer). Returns: A string representing the full URL to the video. Example: (veo-video-url "abc-123") ;=> "https://supermaker.ai/video/veo-3-1/abc-123" (veo-video-url 456) ;=> "https://supermaker.ai/video/veo-3-1/456"
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 |