AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GenerateMediaRequest

    Generate image(s) from a prompt using the Imagen 3 model, or generate a video from a prompt using the Veo model. Both Imagen 3 and Veo models are only available on the google paid tier.

    Inheritance
    object
    RequestBody
    GenerativeAIRequest
    GenerateMediaRequest
    Inherited Members
    GenerativeAIRequest.Model
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public class GenerateMediaRequest : GenerativeAIRequest

    Properties

    Config

    Declaration
    public GenerateMediaConfig Config { get; set; }
    Property Value
    Type Description
    GenerateMediaConfig

    Prompt

    Declaration
    public string Prompt { get; set; }
    Property Value
    Type Description
    string

    Methods

    ValidateBody()

    Validate the request. This is used to check if all required properties are set. Fix the request if needed.

    Declaration
    public override void ValidateBody()
    Overrides
    Glitch9.IO.Networking.RESTApi.RequestBody.ValidateBody()

    Extension Methods

    RequestExtensions.GenerateImageAsync(GenerateMediaRequest)
    RequestExtensions.GenerateVideoAsync(GenerateMediaRequest)
    In this article
    Back to top Generated by DocFX