import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The quality tier of the generated image. Higher tiers may incur higher latency or cost. 'auto' lets the gateway pick a sensible value per model. 'standard' and 'hd' are accepted as legacy aliases. */ export declare const Quality: { readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; readonly Auto: "auto"; readonly Standard: "standard"; readonly Hd: "hd"; }; /** * The quality tier of the generated image. Higher tiers may incur higher latency or cost. 'auto' lets the gateway pick a sensible value per model. 'standard' and 'hd' are accepted as legacy aliases. */ export type Quality = ClosedEnum; /** * The format in which the generated images are returned. 'url' returns a URL to the image, 'b64_json' returns the image as a base64-encoded JSON string. Defaults to 'url'. */ export declare const ImageGenerationRequestResponseFormat: { readonly Url: "url"; readonly B64Json: "b64_json"; }; /** * The format in which the generated images are returned. 'url' returns a URL to the image, 'b64_json' returns the image as a base64-encoded JSON string. Defaults to 'url'. */ export type ImageGenerationRequestResponseFormat = ClosedEnum; /** * The size of the generated image. 'auto' defers to the model's default. */ export declare const Size: { readonly TwoHundredAndFiftySixx256: "256x256"; readonly FiveHundredAndTwelvex512: "512x512"; readonly OneThousandAndTwentyFourx1024: "1024x1024"; readonly OneThousandAndTwentyFourx1536: "1024x1536"; readonly OneThousandFiveHundredAndThirtySixx1024: "1536x1024"; readonly OneThousandSevenHundredAndNinetyTwox1024: "1792x1024"; readonly OneThousandAndTwentyFourx1792: "1024x1792"; readonly Auto: "auto"; }; /** * The size of the generated image. 'auto' defers to the model's default. */ export type Size = ClosedEnum; /** * The style of the generated image. 'vivid' leans toward hyper-real and dramatic. 'natural' produces more naturalistic results. Conditionally supported. */ export declare const Style: { readonly Vivid: "vivid"; readonly Natural: "natural"; }; /** * The style of the generated image. 'vivid' leans toward hyper-real and dramatic. 'natural' produces more naturalistic results. Conditionally supported. */ export type Style = ClosedEnum; /** * Output file format. Conditionally supported. */ export declare const OutputFormat: { readonly Png: "png"; readonly Webp: "webp"; readonly Jpeg: "jpeg"; }; /** * Output file format. Conditionally supported. */ export type OutputFormat = ClosedEnum; /** * Request parameters for generating images. Creates one or more images from a text prompt. */ export type ImageGenerationRequest = { /** * The model to use for image generation. Defaults to 'auto'. */ model?: string | undefined; /** * A text description of the desired image(s). The maximum length is 1000 characters. */ prompt: string; /** * The number of images to generate. Must be between 1 and 10. Defaults to 1. */ n?: number | undefined; /** * The quality tier of the generated image. Higher tiers may incur higher latency or cost. 'auto' lets the gateway pick a sensible value per model. 'standard' and 'hd' are accepted as legacy aliases. */ quality?: Quality | undefined; /** * The format in which the generated images are returned. 'url' returns a URL to the image, 'b64_json' returns the image as a base64-encoded JSON string. Defaults to 'url'. */ responseFormat?: ImageGenerationRequestResponseFormat | undefined; /** * The size of the generated image. 'auto' defers to the model's default. */ size?: Size | undefined; /** * The style of the generated image. 'vivid' leans toward hyper-real and dramatic. 'natural' produces more naturalistic results. Conditionally supported. */ style?: Style | undefined; /** * Output file format. Conditionally supported. */ outputFormat?: OutputFormat | undefined; /** * A unique identifier representing your end-user, which can help monitor and detect abuse. */ user?: string | undefined; }; /** @internal */ export declare const Quality$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Quality$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ImageGenerationRequestResponseFormat$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ImageGenerationRequestResponseFormat$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Size$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Size$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Style$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Style$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputFormat$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const OutputFormat$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ImageGenerationRequest$inboundSchema: z.ZodType; /** @internal */ export type ImageGenerationRequest$Outbound = { model: string; prompt: string; n: number; quality: string; response_format: string; size: string; style: string; output_format?: string | undefined; user?: string | undefined; }; /** @internal */ export declare const ImageGenerationRequest$outboundSchema: z.ZodType; export declare function imageGenerationRequestToJSON(imageGenerationRequest: ImageGenerationRequest): string; export declare function imageGenerationRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=imagegenerationrequest.d.ts.map