import type * as Hedra from "../index.js"; /** * Model-specific inputs for `qwen-image-2`. * * Accepted field combinations (one per input mode): * (1) requires: aspect_ratio, images, prompt, resolution * (2) requires: aspect_ratio, prompt, resolution; must omit: images */ export interface InputQwenImage2 { /** Generation prompt. At least 1 character. */ prompt: string; /** Number of outputs generated per job. Only 1 is supported. */ num_outputs?: number | undefined; /** Rewrite the prompt before generation. An LLM expands it into a fuller description and the model receives that text instead of the submitted one; the result's `prompt` reports what ran. */ enhance_prompt?: boolean | undefined; /** Output aspect ratio. */ aspect_ratio: InputQwenImage2.AspectRatio; /** Output resolution. */ resolution: InputQwenImage2.Resolution; /** Output image format. */ output_format?: InputQwenImage2.OutputFormat | undefined; /** What to avoid in the generated image. At most 500 characters. */ negative_prompt?: string | undefined; /** Images to edit or blend. 1 to 3 images, each at most 30 MB. */ images?: Hedra.InputQwenImage2ImagesItem[] | undefined; /** Seed for reproducible output; omit for a random seed. From 0 to 2147483647. */ seed?: number | undefined; /** Quality level to generate at. `standard` — tuned for speed, for rapid iteration. `pro` — the higher-fidelity tier, for fine detail and in-image text accuracy. */ quality?: InputQwenImage2.Quality | undefined; } export declare namespace InputQwenImage2 { /** Output aspect ratio. */ const AspectRatio: { readonly Sixteen9: "16:9"; readonly Nine16: "9:16"; readonly Four3: "4:3"; readonly Three4: "3:4"; readonly One1: "1:1"; }; type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio]; /** Output resolution. */ const Resolution: { readonly FiveHundredFortyP: "540p"; readonly SevenHundredTwentyP: "720p"; readonly OneThousandEightyP: "1080p"; readonly OneThousandFourHundredFortyP2KQhd: "1440p (2K QHD)"; }; type Resolution = (typeof Resolution)[keyof typeof Resolution]; /** Output image format. */ const OutputFormat: { readonly Jpeg: "jpeg"; readonly Png: "png"; readonly Webp: "webp"; }; type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat]; /** Quality level to generate at. `standard` — tuned for speed, for rapid iteration. `pro` — the higher-fidelity tier, for fine detail and in-image text accuracy. */ const Quality: { readonly Standard: "standard"; readonly Pro: "pro"; }; type Quality = (typeof Quality)[keyof typeof Quality]; }