File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,31 @@ Generate an image from a text prompt using OpenAI's image models.
1212uv run https://tools.simonwillison.net/python/openai_image.py \
1313 ' A racoon eating cheese wearing an inappropriate hat'
1414```
15- Use ` --help ` to see all available options.
15+ Use ` --help ` to see all available options:
1616
17+ ```
18+ Usage: openai_image.py [OPTIONS] PROMPT OUTFILE
19+
20+ Generate an image with OpenAI image models.
21+
22+ Positional args: PROMPT Text prompt describing the image to generate.
23+ OUTFILE Output file path (default: /tmp/image-XXXXXX.png)
24+
25+ Options:
26+ -m, --model TEXT Model to use (known: dall-e-2, dall-e-3,
27+ gpt-image-1, gpt-image-1-mini) [default:
28+ gpt-image-1-mini]
29+ --background [transparent|opaque|auto]
30+ background.
31+ --moderation [low|auto] moderation.
32+ --output-format [png|jpeg|webp]
33+ output format.
34+ --quality [standard|hd|low|medium|high|auto]
35+ quality.
36+ --size [auto|1024x1024|1536x1024|1024x1536|256x256|512x512|1792x1024|1024x1792]
37+ size.
38+ -h, --help Show this message and exit.
39+ ```
1740## codex_to_markdown.py
1841
1942Convert a Codex CLI session JSONL log into Markdown.
You can’t perform that action at this time.
0 commit comments