OpenAI

fun ImageGeneration.Companion.OpenAI(apiKey: ApiKey, http: HttpHandler = JavaHttpClient(), org: OpenAIApi.Org? = null): ImageGeneration(source)

OpenAI ImageGeneration interface for using with the real OpenAI API endpoints


fun ImageGeneration.Companion.OpenAI(openAICompatibleClient: OpenAICompatibleClient): ImageGeneration(source)

ImageGeneration interface for any OpenAI-compatible client