Fetch a character.
client.videos.getCharacter(stringcharacterID, RequestOptionsoptions?): VideoGetCharacterResponse { id, created_at, name }
GET/videos/characters/{character_id}
Fetch a character.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted
});
const response = await client.videos.getCharacter('char_123');
console.log(response.id);{
"id": "id",
"created_at": 0,
"name": "name"
}Returns Examples
{
"id": "id",
"created_at": 0,
"name": "name"
}