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
    GoogleGeminiRequest
    PredictionRequest
    Implements
    IJsonRequest
    IValidatable
    Inherited Members
    GoogleGeminiRequest.Model
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Google
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    [JsonConverter(typeof(PredictionRequestConverter))]
    public class PredictionRequest : GoogleGeminiRequest, IJsonRequest, IValidatable

    Properties

    | Edit this page View Source

    Config

    Declaration
    [JsonProperty("config")]
    public PredictionConfigBase Config { get; set; }
    Property Value
    Type Description
    PredictionConfigBase
    | Edit this page View Source

    Prompt

    Declaration
    [JsonProperty("prompt")]
    public string Prompt { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    IsValid()

    Declaration
    public bool IsValid()
    Returns
    Type Description
    bool
    | Edit this page View Source

    Validate()

    Validates the object's parameters and throws if invalid.

    Declaration
    public void Validate()

    Implements

    IJsonRequest
    IValidatable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation