AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class PredictionRequest

    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
    RESTRequestBody
    GenerativeAIRequest
    PredictionRequest
    Inherited Members
    GenerativeAIRequest.Model
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public class PredictionRequest : 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

    ValidateRequestBody()

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

    Declaration
    public override void ValidateRequestBody()
    Overrides
    Glitch9.IO.Networking.RESTApi.RESTRequestBody.ValidateRequestBody()

    Extension Methods

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