python/resources/videos/methods/get_character/index.md +0 −52 deleted
File Deleted View Diff
1## Fetch a character.
2
3`videos.get_character(strcharacter_id) -> VideoGetCharacterResponse`
4
5**get** `/videos/characters/{character_id}`
6
7Fetch a character.
8
9### Parameters
10
11- `character_id: str`
12
13### Returns
14
15- `class VideoGetCharacterResponse: …`
16
17 - `id: Optional[str]`
18
19 Identifier for the character creation cameo.
20
21 - `created_at: int`
22
23 Unix timestamp (in seconds) when the character was created.
24
25 - `name: Optional[str]`
26
27 Display name for the character.
28
29### Example
30
31```python
32import os
33from openai import OpenAI
34
35client = OpenAI(
36 api_key=os.environ.get("OPENAI_API_KEY"), # This is the default and can be omitted
37)
38response = client.videos.get_character(
39 "char_123",
40)
41print(response.id)
42```
43
44#### Response
45
46```json
47{
48 "id": "id",
49 "created_at": 0,
50 "name": "name"
51}
52```