All tools
O
by OpenAI
Create an image
Generates images from a text prompt; GPT image models return them base64-encoded.
Updated Sep 26, 2026Available asCLIAPI
create-image.md
Create an image
Generates images from a text prompt; GPT image models return them base64-encoded.
Set up
Use the first option your agent supports.
CLI (official)
Install the command, then confirm it runs.
brew install openai/tools/openai
openai --version
Run openai images generate.
Set $OPENAI_API_KEY in your environment first (get a key: https://platform.openai.com/api-keys).
API (official)
- Base URL: https://api.openai.com/v1
- Endpoint:
POST /images/generations - Auth: send the header
Authorization: Bearer $OPENAI_API_KEY - Get a key: https://platform.openai.com/api-keys
- Docs: https://developers.openai.com/api/reference/overview
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.
Ways in
Workflows using Create an image
No workflows yet
No published workflow uses Create an image yet.