Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/image-generation-openai-api-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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