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 {
    model: `${string}/${string}:${string}`;
    apiKey?: string;
    input?: {
        [key: string]: string | number | boolean;
    };
    promptKey?: string;
}

Implemented by

Properties

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

Type declaration

  • [key: string]: string | number | boolean
promptKey?: string

The key used to pass prompts to the model.

Generated using TypeDoc