Interface defining the structure of the input data for the Replicate class. It includes details about the model to be used, any additional input parameters, and the API key for the Replicate service.

interface ReplicateInput {
    apiKey?: string;
    input?: {
        [key: string]: string | number | boolean;
    };
    model: `${string}/${string}:${string}`;
    promptKey?: string;
}

Implemented by

Properties

apiKey?: string
input?: {
    [key: string]: string | number | boolean;
}
model: `${string}/${string}:${string}`
promptKey?: string

The key used to pass prompts to the model.