Search Results for

    Show / Hide Table of Contents

    Class ReplicateCreatePredictionRequest

    Request body for POST /v1/predictions (versioned model).

    Inheritance
    object
    ReplicateCreatePredictionRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Replicate
    Assembly: Glitch9.AIDevKit.Provider.Replicate.dll
    Syntax
    public class ReplicateCreatePredictionRequest

    Properties

    | Edit this page View Source

    Input

    Model-specific input parameters, serialized as a flat JSON object under the "input" key.

    Replicate is a model marketplace ??every model defines its own input schema, so there is no single typed request class that works across models. This dictionary is populated by BuildInput(ImageGenerationRequest) with the parameters appropriate for the target model (e.g. prompt, width, height, seed).

    Example (SDXL pixel art model):

    {
      "prompt": "pixel art knight, RPG sprite",
      "width": 512,
      "height": 512,
      "num_inference_steps": 30,
      "guidance_scale": 7.5,
      "lora_scale": 0.6
    }

    To see the exact schema for a given model, call: GET https://api.replicate.com/v1/models/{owner}/{model} and inspect .latest_version.openapi_schema.components.schemas.Input.

    Declaration
    [JsonProperty("input")]
    public Dictionary<string, object> Input { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>
    | Edit this page View Source

    Version

    64-character hex string identifying the exact model version. Omit when using the model-based endpoint (POST /v1/models/{owner}/{model}/predictions).

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

    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