# Generate a video
generate_video("A golden retriever playing in the snow")
```

The trace will show the full video generation workflow including the video creation, polling, download, and the generated video as an attachment:

<Frame>
  <img src="https://files.buildwithfern.com/https://opik.docs.buildwithfern.com/docs/opik/2026-01-30T17:33:07.444Z/img/tracing/openai_video_integration.png" />
</Frame>

<Tip>
  The `videos.retrieve` method is intentionally not tracked because the `poll` method makes many retrieve calls internally, which would create excessive noise in your traces. If you need to track retrieve calls (e.g. if you don't use `poll` and check the progress manually), you can decorate the method yourself:

  ```python
  tracked_client.videos.retrieve = opik.track(name="videos.retrieve")(
      tracked_client.videos.retrieve
  )
  ```
</Tip>

## Supported OpenAI methods

The `track_openai` wrapper supports the following OpenAI methods:

* `openai_client.chat.completions.create()`, including support for stream=True mode.
* `openai_client.beta.chat.completions.parse()`
* `openai_client.beta.chat.completions.stream()`
* `openai_client.responses.create()`
* `openai_client.videos.create()`
* `openai_client.videos.create_and_poll()`
* `openai_client.videos.poll()`
* `openai_client.videos.download_content()`
* `openai_client.videos.list()`
* `openai_client.videos.delete()`

If you would like to track another OpenAI method, please let us know by opening an issue on [GitHub](https://github.com/comet-ml/opik/issues).