@@ -14,10 +14,11 @@ class VideoCreateParams < OpenAI::Internal::Type::BaseModel
1414 required :prompt , String
1515
1616 # @!attribute input_reference
17- # Optional multipart reference asset that guides generation.
17+ # Optional reference object that guides generation. Provide exactly one of
18+ # `image_url` or `file_id`.
1819 #
19- # @return [Pathname, StringIO, IO, String, OpenAI::FilePart , nil]
20- optional :input_reference , OpenAI ::Internal :: Type :: FileInput
20+ # @return [OpenAI::Models::VideoCreateParams::InputReference , nil]
21+ optional :input_reference , -> { OpenAI ::VideoCreateParams :: InputReference }
2122
2223 # @!attribute model
2324 # The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults
@@ -45,7 +46,8 @@ class VideoCreateParams < OpenAI::Internal::Type::BaseModel
4546 #
4647 # @param prompt [String] Text prompt that describes the video to generate.
4748 #
48- # @param input_reference [Pathname, StringIO, IO, String, OpenAI::FilePart] Optional multipart reference asset that guides generation.
49+ # @param input_reference [OpenAI::Models::VideoCreateParams::InputReference] Optional reference object that guides generation. Provide exactly one of
50+ # `image\_
4951 #
5052 # @param model [String, Symbol, OpenAI::Models::VideoModel] The video generation model to use (allowed values: sora-2, sora-2-pro). Defaults
5153 #
@@ -54,6 +56,27 @@ class VideoCreateParams < OpenAI::Internal::Type::BaseModel
5456 # @param size [Symbol, OpenAI::Models::VideoSize] Output resolution formatted as width x height (allowed values: 720x1280, 1280x72
5557 #
5658 # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
59+
60+ class InputReference < OpenAI ::Internal ::Type ::BaseModel
61+ # @!attribute file_id
62+ #
63+ # @return [String, nil]
64+ optional :file_id , String
65+
66+ # @!attribute image_url
67+ # A fully qualified URL or base64-encoded data URL.
68+ #
69+ # @return [String, nil]
70+ optional :image_url , String
71+
72+ # @!method initialize(file_id: nil, image_url: nil)
73+ # Optional reference object that guides generation. Provide exactly one of
74+ # `image_url` or `file_id`.
75+ #
76+ # @param file_id [String]
77+ #
78+ # @param image_url [String] A fully qualified URL or base64-encoded data URL.
79+ end
5780 end
5881 end
5982end
0 commit comments