Documentation
¶
Index ¶
- Constants
- Variables
- func LoadInputImage(path string) ([]byte, error)
- func ResolveModel(model string, hasInput bool) string
- func SaveVideo(data []byte, outputDir, prompt string) (string, error)
- func ValidateAspectRatio(aspectRatio string) error
- func ValidateDuration(duration string) error
- func ValidateResolution(resolution string) error
- type InputImage
- type QueuedJob
- type Quote
- type Request
- type Retrieval
- type VeniceProvider
Constants ¶
View Source
const ( DefaultDuration = veniceDefaultDuration DefaultResolution = veniceDefaultResolution DefaultAspectRatio = veniceDefaultAspectRatio DefaultNegativePrompt = veniceDefaultNegativePrompt DefaultPollInterval = veniceDefaultPollInterval DefaultTimeout = veniceDefaultTimeout )
Variables ¶
View Source
var ( ValidDurations = []string{"5s", "10s"} ValidResolutions = []string{"480p", "720p", "1080p"} )
Functions ¶
func LoadInputImage ¶
func ResolveModel ¶
func ValidateAspectRatio ¶
func ValidateDuration ¶
func ValidateResolution ¶
Types ¶
type InputImage ¶
type VeniceProvider ¶
type VeniceProvider struct {
// contains filtered or unexported fields
}
func NewVeniceProvider ¶
func NewVeniceProvider(apiKey string) *VeniceProvider
Click to show internal directories.
Click to hide internal directories.