Skip to content

Examples and guides for using the OpenAI API

docs: update transparent image assets for GPT Image 2.5 (#3085)

Konstantine Kahadze93efae399983
diff --git a/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations.ipynb b/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations.ipynb
index fda99b3d..33dff915 100644
--- a/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations.ipynb
+++ b/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations.ipynb
@@ -7,7 +7,7 @@
"source": [
"# Generate Transparent Image Assets for Campaigns and Presentations\n",
"\n",
- "A great image should work on any background. Transparent image assets (in preview) make it easy to reuse the same visuals across campaigns, websites, presentations, and product catalogs without white boxes or manual background removal.\n",
+ "A great image should work on any background. Transparent image assets make it easy to reuse the same visuals across campaigns, websites, presentations, and product catalogs without white boxes or manual background removal.\n",
"\n",
"This cookbook covers four customer use cases:\n",
"\n",
@@ -26,9 +26,11 @@
"\n",
"Install the Python packages with `pip install openai pillow`, and set `OPENAI_API_KEY` in your environment. You will also need access to a transparency-capable image model and Codex to build the website.\n",
"\n",
- "This example uses `gpt-image-2` and requests PNG output with `background=\"transparent\"`.\n",
+ "This example uses `gpt-image-2.5-flare` and requests PNG output with `background=\"transparent\"`. To compare a model optimized for demanding quality requirements, set `IMAGE_MODEL` to `\"gpt-image-2.5-sunburst\"`. Both models support transparent backgrounds. Keep the prompts, sizes, and `quality=\"high\"` unchanged for the first comparison, then inspect transparency, fine edges, and text before tuning quality or latency.\n",
"\n",
- "For more background, see the [GPT Image Generation Models Prompting Guide](https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide), the [OpenAI models page](https://developers.openai.com/api/docs/models), and the [image generation guide](https://developers.openai.com/api/docs/guides/image-generation)."
+ "The images and screenshots below are retained from the original GPT Image 2 version of this cookbook. They illustrate the workflows, not measured GPT Image 2.5 results. Save a copy of those assets before rerunning the generation cells, which write to the same filenames.\n",
+ "\n",
+ "For more background, see the [image prompting guide](https://developers.openai.com/api/docs/guides/image-prompting), the [OpenAI models page](https://developers.openai.com/api/docs/models), and the [image generation guide](https://developers.openai.com/api/docs/guides/image-generation)."
]
},
{
@@ -48,7 +50,7 @@
"if not os.getenv(\"OPENAI_API_KEY\"):\n",
" raise RuntimeError(\"Set OPENAI_API_KEY before running this notebook.\")\n",
"\n",
- "IMAGE_MODEL = \"gpt-image-2\"\n",
+ "IMAGE_MODEL = \"gpt-image-2.5-flare\"\n",
"\n",
"client = OpenAI()\n",
"asset_dir = Path(\"images/transparent-image-assets\")\n",