Skip to main content

GenerateImageParams

ug-js-sdk


ug-js-sdk / GenerateImageParams

Type Alias: GenerateImageParams

GenerateImageParams = object

Defined in: conversation-manager/types.ts:7

Parameters for image generation via the REST API. These parameters work with both Bria and Replicate providers.

Properties

prompt

prompt: string

Defined in: conversation-manager/types.ts:9

The text prompt describing the image to generate


provider

provider: "bria" | "replicate"

Defined in: conversation-manager/types.ts:11

The image generation provider to use


negative_prompt?

optional negative_prompt: string

Defined in: conversation-manager/types.ts:15

Text describing what to avoid in the generated image


aspect_ratio?

optional aspect_ratio: string

Defined in: conversation-manager/types.ts:17

Aspect ratio for the generated image (e.g., '16:9', '1:1')


seed?

optional seed: number

Defined in: conversation-manager/types.ts:19

Seed for reproducible generation


inference_steps?

optional inference_steps: number

Defined in: conversation-manager/types.ts:21

Number of inference steps for the generation process


generation_type?

optional generation_type: "fast" | "tailored"

Defined in: conversation-manager/types.ts:25

Generation type for Bria: 'fast' for quick generation, 'tailored' for higher quality


model?

optional model: string

Defined in: conversation-manager/types.ts:27

Specific model to use for generation


image?

optional image: Base64

Defined in: conversation-manager/types.ts:29

Base64 encoded image for image-to-image generation


strength?

optional strength: number

Defined in: conversation-manager/types.ts:31

Strength of the transformation for image-to-image (0.0 to 1.0)


guidance_scale?

optional guidance_scale: number

Defined in: conversation-manager/types.ts:33

Guidance scale for generation (higher = more adherence to prompt)


lora_weights?

optional lora_weights: string

Defined in: conversation-manager/types.ts:37

URL to LoRA weights for Replicate models


lora_scale?

optional lora_scale: number

Defined in: conversation-manager/types.ts:39

Scale factor for LoRA weights (typically -1 to 3)