Class VideoCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class VideoCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
prompt
final VideoCreateParams.Body.Builder prompt(String prompt)
Text prompt that describes the video to generate.
-
prompt
final VideoCreateParams.Body.Builder prompt(MultipartField<String> prompt)
Sets Builder.prompt to an arbitrary multipart value.
You should usually call Builder.prompt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputReference
final VideoCreateParams.Body.Builder inputReference(InputStream inputReference)
Optional image reference that guides generation.
-
inputReference
final VideoCreateParams.Body.Builder inputReference(MultipartField<InputStream> inputReference)
Sets Builder.inputReference to an arbitrary multipart value.
You should usually call Builder.inputReference with a well-typed InputStream value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputReference
final VideoCreateParams.Body.Builder inputReference(ByteArray inputReference)
Optional image reference that guides generation.
-
inputReference
final VideoCreateParams.Body.Builder inputReference(Path path)
Optional image reference that guides generation.
-
model
final VideoCreateParams.Body.Builder model(VideoModel model)
The video generation model to use. Defaults to
sora-2.
-
model
final VideoCreateParams.Body.Builder model(MultipartField<VideoModel> model)
Sets Builder.model to an arbitrary multipart value.
You should usually call Builder.model with a well-typed VideoModel value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
seconds
final VideoCreateParams.Body.Builder seconds(VideoSeconds seconds)
Clip duration in seconds. Defaults to 4 seconds.
-
seconds
final VideoCreateParams.Body.Builder seconds(MultipartField<VideoSeconds> seconds)
Sets Builder.seconds to an arbitrary multipart value.
You should usually call Builder.seconds with a well-typed VideoSeconds value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
size
final VideoCreateParams.Body.Builder size(VideoSize size)
Output resolution formatted as width x height. Defaults to 720x1280.
-
size
final VideoCreateParams.Body.Builder size(MultipartField<VideoSize> size)
Sets Builder.size to an arbitrary multipart value.
You should usually call Builder.size with a well-typed VideoSize value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final VideoCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VideoCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VideoCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VideoCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VideoCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VideoCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.prompt()
-
-
-
-