API reference
API reference
Select your platform
No SDKs available
No versions available

ReplicateProvider Class

Properties

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.
override InferenceType DefaultSupportedTypes[Get]
Unique identifier for this provider type (e.g., "OpenAI", "LlamaApi").
Used to store and retrieve credentials from the central CredentialStorage.
When true, this provider asset uses its own API key instead of the central storage.

Member Functions

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.See IChatTask. Docs: https://replicate.com/docs/reference/http
Parameters
req
Input message and optional images, validated against model parameters.
stream
Optional partial callback; final text is returned after completion.
ct
Cancellation token for HTTP and polling.
Returns
ChatResponse with extracted text and raw response for debugging.