Class ReplicateCreatePredictionRequest
Request body for POST /v1/predictions (versioned model).
Inherited Members
Namespace: Glitch9.AIDevKit.Replicate
Assembly: Glitch9.AIDevKit.Provider.Replicate.dll
Syntax
public class ReplicateCreatePredictionRequest
Properties
| Edit this page View SourceInput
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> |
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 |