Overview of legacy GPT-Image-1 / 1-mini / 1.5 models — model IDs, pricing, endpoints, and migration tips for moving to GPT-Image-2 / GPT-Image-2-All.
For new projects, use GPT-Image-2 (official) or GPT-Image-2-All (reverse channel, flat $0.03/image). This page keeps the essentials of the legacy versions so existing integrations can troubleshoot and migrate smoothly.
Drop-in migration: change model to gpt-image-2 or gpt-image-2-all. Parameters (size / quality / output_format, …) are largely compatible — no structural code changes required.
from openai import OpenAIclient = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.apiyi.com/v1")response = client.images.generate( model="gpt-image-1.5", {/* or gpt-image-1 / gpt-image-1-mini */} prompt="A professional product photo on white background, soft studio lighting", size="1024x1024", quality="high")print(response.data[0].url)