Aug. 21, 2023, 8:35 a.m. | Antonio Perrone

DEV Community dev.to

(Originally published on https://foojay.io/today/images-generation-with-quarkus-and-openai/)





Introduction


In this article, we explore how to integrate OpenAI API with Quarkus. We will create a Quarkus application using the new REST Client Reactive to invoke the OpenAI DALL.E API





OpenAI API Overview


Before jumping into the code, let’s explore the OpenAI Create Image API and how it works.





Create Image Request


The body request is made of the following parameters:




  • prompt: the only required parameter is the description of the desired image …

api application article client code dall explore image introduction java openai openai api overview quarkus rest

Senior Machine Learning Engineer

@ GPTZero | Toronto, Canada

ML/AI Engineer / NLP Expert - Custom LLM Development (x/f/m)

@ HelloBetter | Remote

Doctoral Researcher (m/f/div) in Automated Processing of Bioimages

@ Leibniz Institute for Natural Product Research and Infection Biology (Leibniz-HKI) | Jena

Seeking Developers and Engineers for AI T-Shirt Generator Project

@ Chevon Hicks | Remote

Principal Data Architect - Azure & Big Data

@ MGM Resorts International | Home Office - US, NV

GN SONG MT Market Research Data Analyst 11

@ Accenture | Bengaluru, BDC7A