MCPcopy
hub / github.com/openai/openai-python / main

Function main

examples/video.py:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10async def main() -> None:
11 video = await client.videos.create_and_poll(
12 model="sora-2",
13 prompt="A video of the words 'Thank you' in sparkling letters",
14 )
15
16 if video.status == "completed":
17 print("Video successfully completed: ", video)
18 else:
19 print("Video creation failed. Status: ", video.status)
20
21
22asyncio.run(main())

Callers 1

video.pyFile · 0.70

Calls 1

create_and_pollMethod · 0.45

Tested by

no test coverage detected