Interface VariateImageResult

Result returned by variateImage.

interface VariateImageResult {
    images: GeneratedImage[];
    provider: string;
    model: string;
    usage: {
        costUSD?: number;
    };
}

Properties

images: GeneratedImage[]

Array of variation images.

provider: string

Provider identifier.

model: string

Model identifier.

usage: {
    costUSD?: number;
}

Token/credit usage reported by the provider.

Type declaration

  • Optional costUSD?: number