/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as OctoAI from "../../../index"; export declare namespace ImageGen { interface Options { environment?: core.Supplier; apiKey?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; abortSignal?: AbortSignal; } } export declare class ImageGen { protected readonly _options: ImageGen.Options; constructor(_options?: ImageGen.Options); /** * Generate images in response to the given request. * * @param {OctoAI.imageGen.ImageGenerationRequest} request * @param {ImageGen.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.imageGen.UnprocessableEntityError} * * @example * await client.imageGen.generateControlnetSdxl({ * prompt: "prompt" * }) */ generateControlnetSdxl(request: OctoAI.imageGen.ImageGenerationRequest, requestOptions?: ImageGen.RequestOptions): Promise; /** * Generate images in response to the given request. * * @param {OctoAI.imageGen.ImageGenerationRequest} request * @param {ImageGen.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.imageGen.UnprocessableEntityError} * * @example * await client.imageGen.generateFluxDev({ * prompt: "prompt" * }) */ generateFluxDev(request: OctoAI.imageGen.ImageGenerationRequest, requestOptions?: ImageGen.RequestOptions): Promise; /** * Generate images in response to the given request. * * @param {OctoAI.imageGen.ImageGenerationRequest} request * @param {ImageGen.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.imageGen.UnprocessableEntityError} * * @example * await client.imageGen.generateFluxSchnell({ * prompt: "prompt" * }) */ generateFluxSchnell(request: OctoAI.imageGen.ImageGenerationRequest, requestOptions?: ImageGen.RequestOptions): Promise; /** * Generate images in response to the given request. * * @param {OctoAI.imageGen.ImageGenerationRequest} request * @param {ImageGen.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.imageGen.UnprocessableEntityError} * * @example * await client.imageGen.generateSd3({ * prompt: "prompt" * }) */ generateSd3(request: OctoAI.imageGen.ImageGenerationRequest, requestOptions?: ImageGen.RequestOptions): Promise; /** * Generate images in response to the given request. * * @param {OctoAI.imageGen.ImageGenerationRequest} request * @param {ImageGen.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.imageGen.UnprocessableEntityError} * * @example * await client.imageGen.generateSdxl({ * prompt: "prompt" * }) */ generateSdxl(request: OctoAI.imageGen.ImageGenerationRequest, requestOptions?: ImageGen.RequestOptions): Promise; /** * Generate videos in response to the given request. * * @param {OctoAI.imageGen.VideoGenerationRequest} request * @param {ImageGen.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link OctoAI.imageGen.UnprocessableEntityError} * * @example * await client.imageGen.generateSvd({ * image: "image" * }) */ generateSvd(request: OctoAI.imageGen.VideoGenerationRequest, requestOptions?: ImageGen.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }