Last updated: 2026-06-06
GPT Image
gpt-image-2 uses the OpenAI-compatible Images API:
Generate Image
Request Parameters
For compatibility with older DALL-E / OpenAI Images clients,
gpt-image-2 accepts response_format=url, response_format=b64_json, quality=standard, and style=vivid/natural. response_format and style are not forwarded upstream; quality=standard is normalized to auto.
These combinations are still rejected: input_fidelity, background=transparent, and output_format=png with output_compression.
Request Examples
Streaming
gpt-image-2 supports stream=true. If you send partial_images, you must also set stream=true, and the value must be 0-3.
cURL
Synchronous
quality=high requests, including the compatibility value quality=hd, can take a long time. For image workloads, use https://api.crazyrouter.com/v1; for high-quality jobs, prefer stream=true or set your client timeout above 180 seconds.Response Example
Edit Image
Request Parameters
Single-Image Edit Example
Python
Multi-Reference Edit Example
Multi-image editing requests must usemultipart/form-data. Prefer multiple image[] fields for reference images; repeated image fields are also accepted.
gpt-image-2 supports up to 16 reference images. Multi-image requests are routed to carriers that support multi-reference image editing.