Help us shape the future of Go! Take the 2026 Go Developer Survey

venice

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package venice provides Venice.ai API integration for media generation. This handles image, video, upscaling, and image-to-video generation that cannot work through function calling (uncensored models).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMediaCommand

func ParseMediaCommand(message string) (string, string, map[string]interface{}, bool)

ParseMediaCommand parses a message for media generation commands. Returns (type, prompt, params, isMediaCommand)

Types

type Config

type Config struct {
	APIKey  string
	BaseURL string
	Model   string // For image generation: fluently-xl, pixart-a, etc.
}

Config holds Venice.ai API configuration.

type MediaResponse

type MediaResponse struct {
	Success   bool   `json:"success"`
	URL       string `json:"url,omitempty"`
	Path      string `json:"path,omitempty"`
	Error     string `json:"error,omitempty"`
	MediaType string `json:"media_type"`
}

MediaResponse represents the response from media generation.

func GenerateImage

func GenerateImage(config Config, prompt string, params map[string]interface{}) (*MediaResponse, error)

GenerateImage generates an image using Venice.ai.

func GenerateVideo

func GenerateVideo(config Config, prompt string, params map[string]interface{}) (*MediaResponse, error)

GenerateVideo generates a video using Venice.ai.

func ImageToVideo

func ImageToVideo(config Config, imagePath string, params map[string]interface{}) (*MediaResponse, error)

ImageToVideo converts an image to video using Venice.ai.

func UpscaleImage

func UpscaleImage(config Config, imagePath string, params map[string]interface{}) (*MediaResponse, error)

UpscaleImage upscales an image using Venice.ai.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL