Package com.openai.models
Class Image.Builder
-
- All Implemented Interfaces:
public final class Image.Builder
A builder for Image.
-
-
Method Summary
Modifier and Type Method Description final Image.Builder
b64Json(String b64Json)
The base64-encoded JSON of the generated image, if response_format
isb64_json
.final Image.Builder
b64Json(JsonField<String> b64Json)
The base64-encoded JSON of the generated image, if response_format
isb64_json
.final Image.Builder
revisedPrompt(String revisedPrompt)
The prompt that was used to generate the image, if there was any revision to the prompt. final Image.Builder
revisedPrompt(JsonField<String> revisedPrompt)
The prompt that was used to generate the image, if there was any revision to the prompt. final Image.Builder
url(String url)
The URL of the generated image, if response_format
isurl
(default).final Image.Builder
url(JsonField<String> url)
The URL of the generated image, if response_format
isurl
(default).final Image.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final Image.Builder
putAdditionalProperty(String key, JsonValue value)
final Image.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final Image.Builder
removeAdditionalProperty(String key)
final Image.Builder
removeAllAdditionalProperties(Set<String> keys)
final Image
build()
-
-
Method Detail
-
b64Json
final Image.Builder b64Json(String b64Json)
The base64-encoded JSON of the generated image, if
response_format
isb64_json
.
-
b64Json
final Image.Builder b64Json(JsonField<String> b64Json)
The base64-encoded JSON of the generated image, if
response_format
isb64_json
.
-
revisedPrompt
final Image.Builder revisedPrompt(String revisedPrompt)
The prompt that was used to generate the image, if there was any revision to the prompt.
-
revisedPrompt
final Image.Builder revisedPrompt(JsonField<String> revisedPrompt)
The prompt that was used to generate the image, if there was any revision to the prompt.
-
url
final Image.Builder url(String url)
The URL of the generated image, if
response_format
isurl
(default).
-
url
final Image.Builder url(JsonField<String> url)
The URL of the generated image, if
response_format
isurl
(default).
-
additionalProperties
final Image.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Image.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Image.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Image.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Image.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-