Class Image.Builder
-
- All Implemented Interfaces:
public final class Image.BuilderA builder for Image.
-
-
Method Summary
Modifier and Type Method Description final Image.Builderb64Json(String b64Json)The base64-encoded JSON of the generated image. final Image.Builderb64Json(JsonField<String> b64Json)Sets Builder.b64Json to an arbitrary JSON value. final Image.BuilderrevisedPrompt(String revisedPrompt)For dall-e-3only, the revised prompt that was used to generate the image.final Image.BuilderrevisedPrompt(JsonField<String> revisedPrompt)Sets Builder.revisedPrompt to an arbitrary JSON value. final Image.Builderurl(String url)When using dall-e-2ordall-e-3, the URL of the generated image ifresponse_formatis set tourl(default value).final Image.Builderurl(JsonField<String> url)Sets Builder.url to an arbitrary JSON value. final Image.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Image.BuilderputAdditionalProperty(String key, JsonValue value)final Image.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Image.BuilderremoveAdditionalProperty(String key)final Image.BuilderremoveAllAdditionalProperties(Set<String> keys)final Imagebuild()Returns an immutable instance of Image. -
-
Method Detail
-
b64Json
final Image.Builder b64Json(String b64Json)
The base64-encoded JSON of the generated image. Default value for
gpt-image-1, and only present ifresponse_formatis set tob64_jsonfordall-e-2anddall-e-3.
-
b64Json
final Image.Builder b64Json(JsonField<String> b64Json)
Sets Builder.b64Json to an arbitrary JSON value.
You should usually call Builder.b64Json with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
revisedPrompt
final Image.Builder revisedPrompt(String revisedPrompt)
For
dall-e-3only, the revised prompt that was used to generate the image.
-
revisedPrompt
final Image.Builder revisedPrompt(JsonField<String> revisedPrompt)
Sets Builder.revisedPrompt to an arbitrary JSON value.
You should usually call Builder.revisedPrompt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final Image.Builder url(String url)
When using
dall-e-2ordall-e-3, the URL of the generated image ifresponse_formatis set tourl(default value). Unsupported forgpt-image-1.
-
url
final Image.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
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)
-
-
-
-