API reference

ReplicateProvider Class

Protected Properties

DefaultSupportedTypes : override InferenceType
[Get]
Signature
override InferenceType DefaultSupportedTypes

Properties

SupportsVision : bool
[Get]
Indicates whether this provider prepares single-image inputs for supported Replicate models.
Disable for text-only models or when the selected model ignores images.
See IChatTask and the model card on Replicate for vision capabilities.
Signature
bool SupportsVision

Methods

ChatAsync ( req , stream , ct )
Executes a text (or multimodal) prediction on Replicate and returns assistant text.
Handles model id vs specific version and chooses the simplest synchronous polling flow.
Signature
async Task< ChatResponse > ChatAsync(ChatRequest req, IProgress< ChatDelta > stream=null, CancellationToken ct=default)
Parameters
req: ChatRequest  Input message and optional images, validated against model parameters.
stream: IProgress< ChatDelta >  Optional partial callback; final text is returned after completion.
ct: CancellationToken  Cancellation token for HTTP and polling.
Returns
async Task< ChatResponse >  ChatResponse with extracted text and raw response for debugging.