Skip to content

ImageGenArgsSchema

This content is not available in your language yet.

const ImageGenArgsSchema: z.ZodObject<{
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
model: z.ZodOptional<z.ZodString>;
n: z.ZodOptional<z.ZodNumber>;
negativePrompt: z.ZodOptional<z.ZodString>;
prompt: z.ZodEffects<z.ZodString, string, string>;
seed: z.ZodOptional<z.ZodNumber>;
size: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
imageUrls?: string[];
model?: string;
n?: number;
negativePrompt?: string;
prompt: string;
seed?: number;
size?: string;
}, {
imageUrls?: string[];
model?: string;
n?: number;
negativePrompt?: string;
prompt: string;
seed?: number;
size?: string;
}>;

ImageGen 工具参数 schema:模型(可省,取授权集首项)、正负提示词、尺寸、张数、种子与可选输入图。