openai · OpenAI Platform Docs
Image generation | OpenAI API
Explains how to integrate image generation capabilities into applications using the OpenAI API, covering prompt engineering for images and implementation patterns.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Image generation | OpenAI API
Explains how to integrate image generation capabilities into applications using the OpenAI API, covering prompt engineering for images and implementation patterns.
When To Use
Use when you need to implement automated image creation workflows or integrate DALL-E capabilities into an existing software application.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/image-generation-openai-api-workflow-guide.md | A guide detailing usage, tool options, and prompting tips for generating images using OpenAI API models. | Questions about a guide detailing usage, tool options, and prompting tips for generating images using OpenAI API models. |
examples/image-generation-openai-api-openai-api-image-generation-nodejs.text | A Node.js code example demonstrating how to use the OpenAI API to generate an image using the image generation tool. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the OpenAI API to generate an image using the image generation tool. |
examples/image-generation-openai-api-openai-api-image-generation-python-gpt-5-5-t.text | A Python code example demonstrating how to use the OpenAI client to generate an image using the gpt-5.5 model with the imagegeneration tool. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the OpenAI client to generate an image using the gpt-5.5 model with th... |
examples/image-generation-openai-api-openai-api-image-generation-response.text | A JSON representation of a completed image generation API response containing the revised prompt and image result. | Exact payloads, commands, or snippets shown in A JSON representation of a completed image generation API response containing the revised prompt and image result. |
examples/image-generation-openai-api-openai-api-image-generation-nodejs-2.text | A Node.js code example demonstrating how to use the OpenAI API to generate an image of a cat and an otter using the image generation tool. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the OpenAI API to generate an image of a cat and an otter using the i... |
examples/image-generation-openai-api-openai-api-python-image-generation-tool-call.text | A Python code example demonstrating how to use the OpenAI client to generate an image using a tool call with a text prompt. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the OpenAI client to generate an image using a tool call with a text p... |
examples/image-generation-openai-api-openai-api-image-generation-nodejs-request.text | A Node.js code snippet demonstrating how to use the OpenAI client to generate an image using a text prompt and the image generation tool. | Exact payloads, commands, or snippets shown in A Node.js code snippet demonstrating how to use the OpenAI client to generate an image using a text prompt and the im... |
examples/image-generation-openai-api-openai-api-image-generation-gpt-model-tool-c.text | A Python code snippet demonstrating how to use the image generation tool within a model response request. | Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the image generation tool within a model response request. |
examples/image-generation-openai-api-openai-images-generate-nodejs-streaming.text | A Node.js code example demonstrating how to use the OpenAI API to generate images with streaming enabled. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the OpenAI API to generate images with streaming enabled. |
examples/image-generation-openai-api-openai-api-image-generation-python-streaming.text | A Python code example demonstrating how to use the OpenAI client to generate images with streaming enabled. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the OpenAI client to generate images with streaming enabled. |
What This Skill Covers
- The image generation tool allows you to generate images using a text prompt, and optionally image inputs. It uses GPT Image models, including gpt-image-2 , g...
- Main sections:
Usage,Tool options,Revised prompt,Prompting tips,Multi-turn editing.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.openai.com/api/docs/guides/tools-image-generation
