Class OpenaiImageResponse

java.lang.Object
com.intellijava.core.model.BaseRemoteModel
com.intellijava.core.model.OpenaiImageResponse

public class OpenaiImageResponse extends BaseRemoteModel
OpenaiImageResponse is a model class used to parse the response from the OpenAI image API. The class contains a nested call Data
Author:
github.com/Barqawiz
  • Constructor Details

    • OpenaiImageResponse

      public OpenaiImageResponse()
      OpenaiImageResponse default constructor.
  • Method Details

    • getCreated

      public long getCreated()
      Get the timestamp when the response was created
      Returns:
      the timestamp when the response was created
    • getData

      public List<OpenaiImageResponse.Data> getData()
      Get the list of data objects contained in the API response
      Returns:
      the list of data objects contained in the API response