Table of Contents

Class VideoGenerationReferenceImage

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

A reference image for video generation.

public record VideoGenerationReferenceImage : IEquatable<VideoGenerationReferenceImage>
Inheritance
VideoGenerationReferenceImage
Implements
Inherited Members

Properties

Image

The reference image.

[JsonPropertyName("image")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Image? Image { get; set; }

Property Value

Image

ReferenceType

The type of the reference image, which defines how the reference image will be used to generate the video.

[JsonPropertyName("referenceType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VideoGenerationReferenceType? ReferenceType { get; set; }

Property Value

VideoGenerationReferenceType?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a VideoGenerationReferenceImage object.

public static VideoGenerationReferenceImage? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

VideoGenerationReferenceImage

The deserialized VideoGenerationReferenceImage object, or null if deserialization fails.