Class VideoGenerationReferenceImage
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
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a VideoGenerationReferenceImage object.
public static VideoGenerationReferenceImage? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- VideoGenerationReferenceImage
The deserialized VideoGenerationReferenceImage object, or null if deserialization fails.