Package com.openai.models
Class Image
-
- All Implemented Interfaces:
public final class Image
Represents the url or the content of an image generated by the OpenAI API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Image.Builder
A builder for Image.
-
Method Summary
Modifier and Type Method Description final Optional<String>
b64Json()
The base64-encoded JSON of the generated image, if response_format
isb64_json
.final Optional<String>
revisedPrompt()
The prompt that was used to generate the image, if there was any revision to the prompt. final Optional<String>
url()
The URL of the generated image, if response_format
isurl
(default).final JsonField<String>
_b64Json()
The base64-encoded JSON of the generated image, if response_format
isb64_json
.final JsonField<String>
_revisedPrompt()
The prompt that was used to generate the image, if there was any revision to the prompt. final JsonField<String>
_url()
The URL of the generated image, if response_format
isurl
(default).final Map<String, JsonValue>
_additionalProperties()
final Image
validate()
final Image.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Image.Builder
builder()
-
-
Method Detail
-
b64Json
final Optional<String> b64Json()
The base64-encoded JSON of the generated image, if
response_format
isb64_json
.
-
revisedPrompt
final Optional<String> revisedPrompt()
The prompt that was used to generate the image, if there was any revision to the prompt.
-
url
final Optional<String> url()
The URL of the generated image, if
response_format
isurl
(default).
-
_b64Json
final JsonField<String> _b64Json()
The base64-encoded JSON of the generated image, if
response_format
isb64_json
.
-
_revisedPrompt
final JsonField<String> _revisedPrompt()
The prompt that was used to generate the image, if there was any revision to the prompt.
-
_url
final JsonField<String> _url()
The URL of the generated image, if
response_format
isurl
(default).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Image.Builder toBuilder()
-
builder
final static Image.Builder builder()
-
-
-
-