CreateVideoExtendRequest class

Request to extend a completed video.

Creates an extension of an existing completed video.

Example

final extended = await client.videos.createExtension(
  CreateVideoExtendRequest(
    prompt: 'Continue the scene with a slow zoom out',
    videoId: 'video-abc123',
    seconds: VideoSeconds.s8,
  ),
);
Annotations
  • @immutable

Constructors

CreateVideoExtendRequest({required String prompt, required String videoId, required VideoSeconds seconds})
Creates a CreateVideoExtendRequest.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
prompt String
Text prompt directing the extension generation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seconds VideoSeconds
Length of the extension in seconds (allowed: 4, 8, 12, 16, 20).
final
videoId String
The ID of the completed video to extend.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override