Skip to content

ImagePromptParts

Namespace: Vercel.AI.Operations

public sealed class ImagePromptParts

Normalized image prompt fields.

Inheritance: object

View source

ImagePromptParts(string?, IReadOnlyList<ImageModelFile>?, ImageModelFile?)

Section titled “ImagePromptParts(string?, IReadOnlyList<ImageModelFile>?, ImageModelFile?)”
public ImagePromptParts(string? prompt, IReadOnlyList<ImageModelFile>? files, ImageModelFile? mask)

Creates normalized prompt fields.

Parameters

Name Type Description
prompt string
files IReadOnlyList<ImageModelFile>
mask ImageModelFile

View source

public IReadOnlyList<ImageModelFile>? Files { get; }

Reference files.

Value: IReadOnlyList<ImageModelFile>

View source

public ImageModelFile? Mask { get; }

Mask file.

Value: ImageModelFile

View source

public string? Prompt { get; }

Prompt text.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product