NAME
OpenAPI::Client::OpenAI::Path::videos-extensions - Documentation for the /videos/extensions path.
OPERATIONS
POST /videos/extensions
CreateVideoExtend
$client->create_video_extend({
body => { ... },
});
Create an extension of a completed video.
Responses
200 - Success
Content-Type: application/json
Example:
{
"completed_at" : 0,
"created_at" : 0,
"error" : {
"code" : "string",
"message" : "string"
},
"expires_at" : 0,
"id" : "string",
"model" : null,
"object" : "video",
"progress" : 0,
"prompt" : "string",
"remixed_from_video_id" : "string",
"seconds" : "string",
"size" : null,
"status" : null
}
SCHEMAS
CreateVideoExtendJsonBody
Properties:
prompt(string, required) - Updated text prompt that directs the extension generation.seconds(VideoSeconds, required) - Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20).See "VideoSeconds" below for shape.
video(VideoReferenceInputParam, required) - Reference to the completed video to extend.See "VideoReferenceInputParam" below for shape.
CreateVideoExtendMultipartBody
Properties:
prompt(string, required) - Updated text prompt that directs the extension generation.seconds(VideoSeconds, required) - Length of the newly generated extension segment in seconds (allowed values: 4, 8, 12, 16, 20).See "VideoSeconds" below for shape.
video(oneOf, required)
VideoModel
See https://platform.openai.com/docs/api-reference for details.
VideoReferenceInputParam
Properties:
id(string, required) - The identifier of the completed video.
VideoResource
Properties:
completed_at(anyOf, required)created_at(integer, required) - Unix timestamp (seconds) for when the job was created.error(anyOf, required)expires_at(anyOf, required)id(string, required) - Unique identifier for the video job.model(VideoModel, required) - The video generation model that produced the job.See "VideoModel" below for shape.
object(string, required) - The object type, which is alwaysvideo.Allowed values: video
Default: video
progress(integer, required) - Approximate completion percentage for the generation task.prompt(anyOf, required)remixed_from_video_id(anyOf, required)seconds(string, required) - Duration of the generated clip in seconds. For extensions, this is the stitched total duration.size(VideoSize, required) - The resolution of the generated video.See "VideoSize" below for shape.
status(VideoStatus, required) - Current lifecycle status of the video job.See "VideoStatus" below for shape.
VideoSeconds
See https://platform.openai.com/docs/api-reference for details.
VideoSize
See https://platform.openai.com/docs/api-reference for details.
VideoStatus
See https://platform.openai.com/docs/api-reference for details.
SEE ALSO
COPYRIGHT AND LICENSE
Copyright (C) 2023-2026 by Nelson Ferraz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.