import type { PredictorService, PredictionService } from "../../services"; import type { Acceleration } from "../../types"; import type { ImageResponse } from "./types"; export type ImageSize = "auto" | "1024x1024" | "1536x1024" | "1024x1536" | "256x256" | "512x512" | "1792x1024" | "1024x1792"; export interface ImageCreateParams { /** * Text description of the desired image. */ prompt: string; /** * Image generation model tag. */ model: string; /** * Set transparency for the background of the generated image(s). */ background?: "auto" | "transparent" | "opaque"; /** * Number of images to generate. */ n?: number; /** * The format in which the generated images are returned. */ output_format?: "png" | "jpeg" | "webp" | "raw"; /** * The compression level for the generated images in range `[0, 100]`. */ output_compression?: number; /** * The size of the generated images. */ size?: ImageSize; /** * Prediction acceleration. */ acceleration?: Acceleration; } export declare class ImageService { private readonly predictors; private readonly predictions; private readonly cache; constructor(predictors: PredictorService, predictions: PredictionService); /** * Create an image given a prompt. */ create({ model: tag, prompt, background, n, output_format, output_compression, size, acceleration }: ImageCreateParams): Promise; private createDelegate; }