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

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Director, Clinical Data Science

@ Aura | Remote USA

Research Scientist, AI (PhD)

@ Meta | Menlo Park, CA | New York City