Create a character from an uploaded video.
videos.create_character(**kwargs) -> VideoCreateCharacterResponse
post /videos/characters
Create a character from an uploaded video.
Parameters
-
name: StringDisplay name for this API character.
-
video: StringVideo file used to create a character.
Returns
-
class VideoCreateCharacterResponse-
id: StringIdentifier for the character creation cameo.
-
created_at: IntegerUnix timestamp (in seconds) when the character was created.
-
name: StringDisplay name for the character.
-
Example
require "openai"
openai = OpenAI::Client.new(api_key: "My API Key")
response = openai.videos.create_character(name: "x", video: StringIO.new("Example data"))
puts(response)
Response
{
"id": "id",
"created_at": 0,
"name": "name"
}