OpenAI Images Compatibility

This set of models uses a unified image entry route and is compatible with the OpenAI Images style externally; the actual model is determined by the model field.

Supported Models

Model NameDescriptionGenerationEditingDefault QualityDefault Size
gpt-image-1The primary model explicitly handled in the current unified image entrypointSupportedSupportedautoDetermined by upstream
dall-e-3DALL·E 3 compatible modelSupportedDepends on the channelstandard1024x1024
dall-e-2DALL·E 2 compatible modelSupportedDepends on the channelNo enforced default1024x1024
dall-eLegacy DALL·E aliasSupportedDepends on the channelNo enforced default1024x1024

Supported Capabilities

CapabilityEntrypointDescription
Text-to-image/v1/images/generationsStandard generation entrypoint
Image editing/v1/images/editsEditing entrypoint
Image editing alias/v1/editsLegacy alias
Image variations/v1/images/variationsRoute retained, currently not implemented

Supported Modes

ModeDetection ConditionEntrypoint
Text-to-imageOnly prompt is provided, with no editing material/v1/images/generations
Image editingimage or multi-image references are provided, together with prompt/v1/images/edits or /v1/edits
Inpaintingmask is additionally provided in the editing request/v1/images/edits or /v1/edits

Output Constraints

FieldConstraint
response_formatCommon values are url and b64_json
nWhen omitted or explicitly set to 0, the unified layer falls back to 1
sizedall-e-2 only allows 256x256, 512x512, and 1024x1024
sizedall-e-3 only allows 1024x1024, 1024x1792, and 1792x1024

Unified Entrypoint Notes

  • The unified layer first parses the request in the OpenAI Images style, then dispatches it to the specific image channel.
  • model is a required field; the unified layer will first validate whether it exists.
  • watermark is carried as a pointer field; explicitly passing false is semantically different from omitting it.
  • When requesting b64_json or base64, the response will use Base64 image data instead.

Subpage Entries

Image Generation

POST /v1/images/generations

Image Editing

POST /v1/images/edits and POST /v1/edits
  1. Image Generation
  2. Image Editing
  3. Upload Images