Retrieve a character
client.videos.getCharacter(stringcharacterID , RequestOptionsoptions ?): VideoGetCharacterResponse { id, created_at, name }
GET
/videos/characters/{character_id}Fetch a character.
Retrieve 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);200 — Example
{
"id": "id",
"created_at": 0,
"name": "name"
}Returns Examples
200 — Example
{
"id": "id",
"created_at": 0,
"name": "name"
}