Documentation
¶
Index ¶
Constants ¶
View Source
const ( ImageInference TaskType = "imageInference" Base64Data OutputType = "base64Data" DataURI OutputType = "dataURI" URL OutputType = "URL" PNG OutputFormat = "PNG" JPG OutputFormat = "JPEG" WEBP OutputFormat = "WEBP" SD_Height Definition = 512 SD_Width Definition = 512 SD_Portrait3_4Height Definition = 1024 SD_Portrait3_4Width Definition = 768 SD_Portrait9_16Height Definition = 1152 SD_Portrait9_16Width Definition = 640 SD_Landscape4_3Height Definition = 768 SD_Landscape4_3Width Definition = 1024 SD_Landscape16_9Height Definition = 640 SD_Landscape16_9Width Definition = 1152 HD_Height Definition = 1024 HD_Width Definition = 1024 HD_Portrait3_4Height Definition = 1536 HD_Portrait3_4Width Definition = 1152 HD_Portrait9_16Height Definition = 1728 HD_Portrait9_16Width Definition = 960 HD_Landscape4_3Height Definition = 1152 HD_Landscape4_3Width Definition = 1536 HD_Landscape16_9Height Definition = 960 HD_Landscape16_9Width Definition = 1728 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition uint16
type GenerateImagesV1 ¶
type GenerateImagesV1 interface { Config(data []map[string]any) GenerateImagesV1 GenerateV1() (*[]RunwareSuccessResponseBody, error) }
Interface definition
func NewGenerateImagesV1 ¶
func NewGenerateImagesV1(apiKey string) GenerateImagesV1
type OutputFormat ¶
type OutputFormat string
type OutputType ¶
type OutputType string
type RunwareOptions ¶
type RunwareOptions struct { TaskType TaskType `json:"taskType"` TaskUUID string `json:"taskUUID"` Prompt string `json:"prompt"` Model string `json:"model"` UploadEndpoint string `json:"uploadEndpoint"` OutputType OutputType `json:"outputType"` OutputFormat OutputFormat `json:"outputFormat"` Width Definition `json:"width"` Height Definition `json:"height"` NumberOfResults uint8 `json:"numberOfResults"` CheckNSFW bool `json:"checkNSFW"` IncludeCost bool `json:"includeCost"` }
type RunwareResponseBody ¶
type RunwareResponseBody struct { Data []RunwareSuccessResponseBody Errors []RunwareErrorResponseBody }
type RunwareSuccessResponseBody ¶
type RunwareSuccessResponseBody struct { TaskType string `json:"taskType"` TaskUUID string `json:"taskUUID"` ImageUUID string `json:"imageUUID"` ImageUrl string `json:"imageUrl"` ImageBase64Data string `json:"imageBase64Data"` ImageDataURI string `json:"imageDataURI"` Seed int `json:"seed"` Cost float64 `json:"cost"` NSFWContent bool `json:"nsfwContent"` }
Click to show internal directories.
Click to hide internal directories.