SpyBara
Go Premium

python/resources/videos/methods/get_character/index.md 2026-06-09 06:34 UTC to 2026-06-10 15:48 UTC

This page contains 52 additions and 0 deletions.

2026
Wed 10 15:48

Fetch a character.

videos.get_character(strcharacter_id) -> VideoGetCharacterResponse

get /videos/characters/{character_id}

Fetch a character.

Parameters

  • character_id: str

Returns

  • class VideoGetCharacterResponse: …

    • id: Optional[str]

      Identifier for the character creation cameo.

    • created_at: int

      Unix timestamp (in seconds) when the character was created.

    • name: Optional[str]

      Display name for the character.

Example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("OPENAI_API_KEY"),  # This is the default and can be omitted
)
response = client.videos.get_character(
    "char_123",
)
print(response.id)

Response

{
  "id": "id",
  "created_at": 0,
  "name": "name"
}