Content updated: 2026-09-18
GPT Image
gpt-image-2 can be called with a compatible path via the OpenAI Images API:
Generate Image
Request Parameters
For compatibility with legacy DALL-E / OpenAI Images clients,
gpt-image-2 will also accept response_format=url, response_format=b64_json, quality=standard, and style=vivid/natural. Of these, response_format and style will not be forwarded to the upstream, quality=standard will be normalized to auto.
Parameter combinations that will still be rejected include: input_fidelity, background=transparent, output_format=png combined with output_compression.
Request Example
Streaming Generation
gpt-image-2 supports stream=true. If partial_images is included in the request, you must also enable stream, and its value range is 0-3.
cURL
Synchronous requests with
quality=high or the compatible format quality=hd may take a long time. For image generation business, please prioritize https://api.crazyrouter.com/v1. For high-quality requests, it is recommended to use stream=true, or ensure that your client timeout exceeds 180 seconds.Response Example
Edit Image
Request Parameters
Single Image Editing Example
Python
Multi-Image Reference Editing Example
Multi-image editing requests must usemultipart/form-data. It is recommended to use multiple image[] fields to send reference images; the server is also compatible with repeating the image field.
gpt-image-2 multi-image reference supports up to 16 images. Multi-image requests will be preferentially routed to the official OpenAI carrying channel that supports multi-image references.