This cookbook shows how you can leverage the input_fidelity
parameter, available in the Image API and the Responses image generation tool, to preserve distinctive features from the input.
Setting input_fidelity="high"
is especially useful when editing images with faces, logos, or any other details that require high fidelity in the output.
If you're not already familiar with image generation using the OpenAI API, we recommend starting with our introductory image generation cookbook.