import type * as Hedra from "../index.js"; /** * Model-specific inputs for `krea-2`. */ export interface InputKrea2 { /** Generation prompt. From 1 to 5000 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; /** Output aspect ratio. */ aspect_ratio: InputKrea2.AspectRatio; /** How loosely the model may read the prompt. 'raw' stays closest to it; 'high' drifts furthest for a more inventive result. Omit for Krea's own default ('medium'). */ creativity?: InputKrea2.Creativity | undefined; /** Reference images whose style — palette, lighting, texture, art direction — the generated image takes on. A reference with no clear subject of its own can crowd out the one you prompted for; lower `style_strength` to hold it back. Omit them to render from the prompt alone. 1 to 10 images, each at most 30 MB. */ images?: Hedra.InputKrea2ImagesItem[] | undefined; /** How strongly the reference images pull the render toward their style, applied to every one of them. Krea pulls as hard as it can unless you say otherwise; lower this to leave more of the prompt's own subject, and 0 to ignore the references' style entirely. From 0 to 1. */ style_strength?: number | undefined; /** Seed passed to Krea. It does not make a render repeatable — Krea returns a different image each time from the same seed. */ seed?: number | undefined; /** Quality level to generate at. `medium` — the smaller model, strongest on illustration, anime and painting. `large` — the larger model, for photorealism and the effects that sell it — motion blur, grain, low dynamic range. */ quality?: InputKrea2.Quality | undefined; } export declare namespace InputKrea2 { /** Output aspect ratio. */ const AspectRatio: { readonly One1: "1:1"; readonly Four3: "4:3"; readonly Three2: "3:2"; readonly Sixteen9: "16:9"; readonly Two351: "2.35:1"; readonly Four5: "4:5"; readonly Two3: "2:3"; readonly Nine16: "9:16"; }; type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio]; /** How loosely the model may read the prompt. 'raw' stays closest to it; 'high' drifts furthest for a more inventive result. Omit for Krea's own default ('medium'). */ const Creativity: { readonly Raw: "raw"; readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; }; type Creativity = (typeof Creativity)[keyof typeof Creativity]; /** Quality level to generate at. `medium` — the smaller model, strongest on illustration, anime and painting. `large` — the larger model, for photorealism and the effects that sell it — motion blur, grain, low dynamic range. */ const Quality: { readonly Medium: "medium"; readonly Large: "large"; }; type Quality = (typeof Quality)[keyof typeof Quality]; }