Interface RecontextImageConfig

Configuration for recontextualizing an image.

interface RecontextImageConfig {
    abortSignal?: AbortSignal;
    addWatermark?: boolean;
    baseSteps?: number;
    enhancePrompt?: boolean;
    httpOptions?: HttpOptions;
    numberOfImages?: number;
    outputCompressionQuality?: number;
    outputGcsUri?: string;
    outputMimeType?: string;
    personGeneration?: PersonGeneration;
    safetyFilterLevel?: SafetyFilterLevel;
    seed?: number;
}

Properties

abortSignal?: AbortSignal

Abort signal which can be used to cancel the request.

NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.

addWatermark?: boolean

Whether to add a SynthID watermark to the generated images.

baseSteps?: number

The number of sampling steps. A higher value has better image quality, while a lower value has better latency.

enhancePrompt?: boolean

Whether to use the prompt rewriting logic.

httpOptions?: HttpOptions

Used to override HTTP request options.

numberOfImages?: number

Number of images to generate.

outputCompressionQuality?: number

Compression quality of the generated image (for image/jpeg only).

outputGcsUri?: string

Cloud Storage URI used to store the generated images.

outputMimeType?: string

MIME type of the generated image.

personGeneration?: PersonGeneration

Whether allow to generate person images, and restrict to specific ages.

safetyFilterLevel?: SafetyFilterLevel

Filter level for safety filtering.

seed?: number

Random seed for image generation.