Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/picture.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env python
"""
Example script demonstrating image generation using DALL-E 3.

This script generates an image from a text prompt using OpenAI's DALL-E 3 model
and prints the response containing a URL to the generated image.
"""

from openai import OpenAI

Expand Down
6 changes: 6 additions & 0 deletions examples/video.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env -S poetry run python
"""
Example script demonstrating video generation using Sora.

This async script generates a video from a text prompt using OpenAI's Sora model
and polls until the video generation is complete.
"""

import asyncio

Expand Down