import type * as Hedra from "../index.js"; /** * Model-specific inputs for `grok-imagine`. * * Accepted field combinations (one per input mode): * (1) requires: images, prompt; must omit: aspect_ratio, resolution; accepts quality: standard * (2) requires: aspect_ratio, images, prompt, resolution; accepts quality: quality * (3) requires: aspect_ratio, prompt, resolution; must omit: images; accepts aspect_ratio: 2:1 | 20:9 | 19.5:9 | 16:9 | 4:3 | 3:2 | 1:1 | 2:3 | 3:4 | 9:16 | 9:19.5 | 9:20 | 1:2; quality: quality * (4) requires: aspect_ratio, prompt; must omit: images, resolution; accepts aspect_ratio: 2:1 | 20:9 | 19.5:9 | 16:9 | 4:3 | 3:2 | 1:1 | 2:3 | 3:4 | 9:16 | 9:19.5 | 9:20 | 1:2; quality: standard */ export interface InputGrokImagine { /** Generation prompt. At most 8000 characters. */ 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; /** Images to edit or blend. 1 to 3 images, each at most 30 MB. */ images?: Hedra.InputGrokImagineImagesItem[] | undefined; /** Output image format. */ output_format?: InputGrokImagine.OutputFormat | undefined; /** Output aspect ratio. */ aspect_ratio?: InputGrokImagine.AspectRatio | undefined; /** Output resolution. */ resolution?: InputGrokImagine.Resolution | undefined; /** Quality level to generate at. `standard` — the base tier, at a flat rate whatever the output size. `quality` — xAI's higher-fidelity tier, and the only one offering 2k. */ quality?: InputGrokImagine.Quality | undefined; } export declare namespace InputGrokImagine { /** Output image format. */ const OutputFormat: { readonly Jpeg: "jpeg"; readonly Png: "png"; readonly Webp: "webp"; }; type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat]; /** Output aspect ratio. */ const AspectRatio: { readonly Auto: "auto"; readonly Two1: "2:1"; readonly Twenty9: "20:9"; readonly Nineteen59: "19.5:9"; readonly Sixteen9: "16:9"; readonly Four3: "4:3"; readonly Three2: "3:2"; readonly One1: "1:1"; readonly Two3: "2:3"; readonly Three4: "3:4"; readonly Nine16: "9:16"; readonly Nine195: "9:19.5"; readonly Nine20: "9:20"; readonly One2: "1:2"; }; type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio]; /** Output resolution. */ const Resolution: { readonly OneK: "1k"; readonly TwoK: "2k"; }; type Resolution = (typeof Resolution)[keyof typeof Resolution]; /** Quality level to generate at. `standard` — the base tier, at a flat rate whatever the output size. `quality` — xAI's higher-fidelity tier, and the only one offering 2k. */ const Quality: { readonly Standard: "standard"; readonly Quality: "quality"; }; type Quality = (typeof Quality)[keyof typeof Quality]; }