Class SynchronousApi<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>

java.lang.Object
bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage<R>
bg.codexio.ai.openai.api.sdk.images.SynchronousApi<R>
All Implemented Interfaces:
ImagesPromptStage<SynchronousExecutor<R>>, RuntimeExecutor

public class SynchronousApi<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest> extends ImageConfigurationStage<R> implements RuntimeExecutor, ImagesPromptStage<SynchronousExecutor<R>>
Synchronous API to add a final instruction and proceed with the HTTP call.
  • Method Details

    • generate

      public SynchronousExecutor<R> generate(String prompt)
      Specified by:
      generate in interface ImagesPromptStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest>
      Parameters:
      prompt - the instruction for the model, most important and mandatory part of the configuration
      Returns:
      SynchronousExecutor to handle the HTTP response