Package com.openai.models
Class Image
-
- All Implemented Interfaces:
public final class ImageRepresents 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 classImage.Builder
-
Method Summary
Modifier and Type Method Description final Optional<String>b64Json()The base64-encoded JSON of the generated image, if response_formatisb64_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_formatisurl(default).final JsonField<String>_b64Json()The base64-encoded JSON of the generated image, if response_formatisb64_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_formatisurl(default).final Map<String, JsonValue>_additionalProperties()final Imagevalidate()final Image.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Image.Builderbuilder()-
-
Method Detail
-
b64Json
final Optional<String> b64Json()
The base64-encoded JSON of the generated image, if
response_formatisb64_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_formatisurl(default).
-
_b64Json
final JsonField<String> _b64Json()
The base64-encoded JSON of the generated image, if
response_formatisb64_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_formatisurl(default).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Image.Builder toBuilder()
-
builder
final static Image.Builder builder()
-
-
-
-