AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class FluentAPIExtensions

    Inheritance
    object
    FluentAPIExtensions
    Namespace: Glitch9.AIDevKit.Google
    Assembly: .dll
    Syntax
    public static class FluentAPIExtensions

    Methods

    SetAspectRatio<TTask>(TTask, AspectRatio)

    Sets the aspect ratio of the generated image (Gemini only).

    Declaration
    public static TTask SetAspectRatio<TTask>(this TTask task, AspectRatio aspectRatio) where TTask : IGENTask
    Parameters
    Type Name Description
    TTask task
    AspectRatio aspectRatio
    Returns
    Type Description
    TTask
    Type Parameters
    Name Description
    TTask

    SetPersonGeneration<TTask>(TTask, PersonGeneration)

    Sets the person generation option (Gemini only).

    Declaration
    public static TTask SetPersonGeneration<TTask>(this TTask task, PersonGeneration personGeneration) where TTask : IGENTask
    Parameters
    Type Name Description
    TTask task
    PersonGeneration personGeneration
    Returns
    Type Description
    TTask
    Type Parameters
    Name Description
    TTask
    In this article
    Back to top Generated by DocFX