UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

60 lines (55 loc) 1.86 kB
/** * Alibaba Cloud Model Studio Node - Version 1 * Discriminator: resource=image, operation=generate */ interface Credentials { alibabaCloudApi: CredentialReference; } /** Creates an image from a text prompt */ export type LcAlibabaCloudV1ImageGenerateParams = { resource: 'image'; operation: 'generate'; /** * The model to use for image generation * @default z-image-turbo */ modelId?: 'qwen-image' | 'qwen-image-max' | 'qwen-image-plus' | 'wan2.6-t2i' | 'z-image-turbo' | Expression<string>; /** * The text prompt describing the image to generate */ prompt: string | Expression<string> | PlaceholderValue; /** * Whether to download the generated image as binary data. When disabled, only the image URL is returned. * @default true */ downloadImage?: boolean | Expression<boolean>; /** * Options * @default {} */ imageOptions?: { /** The size of the generated image * @displayOptions.show { /modelId: ["z-image-turbo", "wan2.6-t2i"] } * @default 1024*1024 */ size?: '1024*1024' | '720*1280' | '1280*720' | Expression<string>; /** The size of the generated image * @displayOptions.show { /modelId: ["qwen-image", "qwen-image-plus", "qwen-image-max"] } * @default 1664*928 */ size?: '1104*1472' | '1328*1328' | '1472*1104' | '1664*928' | '928*1664' | Expression<string>; /** Whether to automatically extend and enhance the prompt * @default false */ promptExtend?: boolean | Expression<boolean>; }; }; export interface LcAlibabaCloudV1ImageGenerateSubnodeConfig { tools?: ToolInstance[]; } export type LcAlibabaCloudV1ImageGenerateNode = { type: '@n8n/n8n-nodes-langchain.alibabaCloud'; version: 1; credentials?: Credentials; config: NodeConfig<LcAlibabaCloudV1ImageGenerateParams> & { subnodes?: LcAlibabaCloudV1ImageGenerateSubnodeConfig }; };