diff --git a/generate-images-openai/README.md b/generate-images-openai/README.md index fb3f157399..0be91222f1 100644 --- a/generate-images-openai/README.md +++ b/generate-images-openai/README.md @@ -11,7 +11,7 @@ $ python --version Python 3.14.6 $ python -m venv venv $ source venv/bin/activate -(venv) $ python -m pip install openai==3.13.0 +(venv) $ python -m pip install openai==3.46.0 ``` You need to be on Python 3.10 or higher. @@ -39,6 +39,6 @@ Note that `convert.py` and `edit.py` read a saved response from the `responses/` ## A Note on Models -The GPT Image models replaced DALL·E, which OpenAI [retired on May 12, 2026](https://developers.openai.com/api/docs/deprecations) along with the image variations endpoint. These scripts call `gpt-image-2.5-flare`. +The GPT Image models replaced DALL·E, which OpenAI [retired on May 12, 2026](https://developers.openai.com/api/docs/deprecations) along with the image variations endpoint. These scripts call `gpt-image-2.6-flare`. -OpenAI retires image models on a regular schedule, so if a script starts failing with a message like `The model 'gpt-image-2.5-flare' does not exist`, then check the deprecations page and swap the model name. +OpenAI retires image models on a regular schedule, so if a script starts failing with a message like `The model 'gpt-image-2.6-flare' does not exist`, then check the deprecations page and swap the model name. diff --git a/generate-images-openai/create.py b/generate-images-openai/create.py index 0648e17392..08cd4f7163 100644 --- a/generate-images-openai/create.py +++ b/generate-images-openai/create.py @@ -11,7 +11,7 @@ DATA_DIR.mkdir(exist_ok=True) response = client.images.generate( - model="gpt-image-2.5-flare", + model="gpt-image-2.6-flare", prompt=PROMPT, n=1, size="1024x1024", diff --git a/generate-images-openai/create_png.py b/generate-images-openai/create_png.py index 260c916a8d..06d1868328 100644 --- a/generate-images-openai/create_png.py +++ b/generate-images-openai/create_png.py @@ -7,7 +7,7 @@ PROMPT = "A vaporwave computer" response = client.images.generate( - model="gpt-image-2.5-flare", + model="gpt-image-2.6-flare", prompt=PROMPT, n=1, size="1024x1024", diff --git a/generate-images-openai/edit.py b/generate-images-openai/edit.py index f0efc77068..a2afd9e709 100644 --- a/generate-images-openai/edit.py +++ b/generate-images-openai/edit.py @@ -15,7 +15,7 @@ image_data = b64decode(saved_response["data"][0]["b64_json"]) response = client.images.edit( - model="gpt-image-2.5-flare", + model="gpt-image-2.6-flare", image=("image.png", image_data), prompt=EDIT_PROMPT, n=3, diff --git a/generate-images-openai/requirements.txt b/generate-images-openai/requirements.txt index 474b71ac1d..976f6a4744 100644 --- a/generate-images-openai/requirements.txt +++ b/generate-images-openai/requirements.txt @@ -1,14 +1,14 @@ annotated-types==0.8.0 -anyio==4.15.1 +anyio==4.16.0 h11==0.16.0 -httpcore2==2.12.0 -httpx2==2.12.0 -idna==3.19 -jiter==0.17.0 -openai==3.13.0 -pydantic-core==2.46.5 -pydantic==2.13.5 +httpcore2==2.16.0 +httpx2==2.16.0 +idna==3.20 +jiter==0.19.0 +openai==3.46.0 +pydantic-core==2.50.4 +pydantic==2.14.3 sniffio==1.3.1 -truststore==0.10.4 +truststore==0.10.5 typing-extensions==4.16.0 -typing-inspection==0.4.4 +typing-inspection==0.4.5